Class ChestKubeEvent

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

@Info("Invoked when a player opens a chest.\n\nSame as `PlayerEvents.inventoryOpened`, but only for chests.\n") public class ChestKubeEvent extends InventoryKubeEvent
  • Constructor Details

    • ChestKubeEvent

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

    • getInventory

      @Info("Gets the chest inventory.") public net.minecraft.world.Container getInventory()
    • getBlock

      @Nullable @Info("Gets the chest block.") public @Nullable LevelBlock getBlock()