Package dev.latvian.mods.kubejs.player
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 Summary
ConstructorsConstructorDescriptionInventoryKubeEvent(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.AbstractContainerMenu menu) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.player.Playernet.minecraft.world.inventory.AbstractContainerMenuMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.entity.KubeEntityEvent
getLevelMethods inherited from interface dev.latvian.mods.kubejs.event.KubeEvent
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, successMethods inherited from interface dev.latvian.mods.kubejs.level.KubeLevelEvent
getRegistries, getServerMethods inherited from interface dev.latvian.mods.kubejs.player.KubePlayerEvent
getPlayer
-
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:
getEntityin interfaceKubeEntityEvent- Specified by:
getEntityin interfaceKubeLivingEntityEvent- Specified by:
getEntityin interfaceKubePlayerEvent
-
getInventoryContainer
@Info("Gets the container that was opened or closed.") public net.minecraft.world.inventory.AbstractContainerMenu getInventoryContainer()
-