Package dev.latvian.mods.kubejs.item
Class ItemEntityInteractedKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.item.ItemEntityInteractedKubeEvent
- All Implemented Interfaces:
KubeEntityEvent,KubeLivingEntityEvent,KubeEvent,KubeLevelEvent,KubePlayerEvent
@Info("Invoked when a player right clicks on an entity.\n")
public class ItemEntityInteractedKubeEvent
extends Object
implements KubePlayerEvent
-
Constructor Summary
ConstructorsConstructorDescriptionItemEntityInteractedKubeEvent(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack item) -
Method Summary
Methods 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
-
ItemEntityInteractedKubeEvent
public ItemEntityInteractedKubeEvent(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack item)
-
-
Method Details
-
getEntity
@Info("The player that interacted with the entity.") public net.minecraft.world.entity.player.Player getEntity()- Specified by:
getEntityin interfaceKubeEntityEvent- Specified by:
getEntityin interfaceKubeLivingEntityEvent- Specified by:
getEntityin interfaceKubePlayerEvent
-
getHand
@Info("The hand that was used to interact with the entity.") public net.minecraft.world.InteractionHand getHand() -
getItem
@Info("The item that was used to interact with the entity.") public net.minecraft.world.item.ItemStack getItem() -
getTarget
-