Class InventoryKubeEvent

java.lang.Object
dev.latvian.mods.kubejs.player.InventoryKubeEvent
All Implemented Interfaces:
KubeEntityEvent, KubeLivingEntityEvent, KubeEvent, KubeLevelEvent, KubePlayerEvent
Direct Known Subclasses:
ChestKubeEvent

@Info("Invoked when a player opens or closes a container.\n") public class InventoryKubeEvent extends Object implements KubePlayerEvent
  • Constructor Details

    • InventoryKubeEvent

      public InventoryKubeEvent(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu menu)
  • Method Details

    • getEntity

      @Info("Gets the player that opened or closed the container.") public net.minecraft.world.entity.player.Player getEntity()
      Specified by:
      getEntity in interface KubeEntityEvent
      Specified by:
      getEntity in interface KubeLivingEntityEvent
      Specified by:
      getEntity in interface KubePlayerEvent
    • getInventoryContainer

      @Info("Gets the container that was opened or closed.") public net.minecraft.world.inventory.AbstractContainerMenu getInventoryContainer()