Package dev.latvian.mods.kubejs.item
Class ItemDestroyedKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.item.ItemDestroyedKubeEvent
- All Implemented Interfaces:
KubeEntityEvent,KubeLivingEntityEvent,KubeEvent,KubeLevelEvent,KubePlayerEvent
-
Constructor Summary
ConstructorsConstructorDescriptionItemDestroyedKubeEvent(net.neoforged.neoforge.event.entity.player.PlayerDestroyItemEvent e) -
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
-
ItemDestroyedKubeEvent
public ItemDestroyedKubeEvent(net.neoforged.neoforge.event.entity.player.PlayerDestroyItemEvent e)
-
-
Method Details
-
getEntity
public net.minecraft.world.entity.player.Player getEntity()- Specified by:
getEntityin interfaceKubeEntityEvent- Specified by:
getEntityin interfaceKubeLivingEntityEvent- Specified by:
getEntityin interfaceKubePlayerEvent
-
getHand
@Nullable public @Nullable net.minecraft.world.InteractionHand getHand() -
getItem
public net.minecraft.world.item.ItemStack getItem()
-