Class EntityTeleportEvent.ItemConsumption
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.EntityTeleportEvent
net.neoforged.neoforge.event.entity.EntityTeleportEvent.ItemConsumption
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
EntityTeleportEvent
public static class EntityTeleportEvent.ItemConsumption
extends EntityTeleportEvent
implements net.neoforged.bus.api.ICancellableEvent
EntityTeleportEvent.ChorusFruit is fired before a LivingEntity is teleported due to consuming Chorus Fruit.
This event is
If the event is not canceled, the entity will be teleported.
This event is fired on the
This event is only fired on the
If this event is canceled, the entity will not be teleported.
This event is
ICancellableEvent.If the event is not canceled, the entity will be teleported.
This event is fired on the
NeoForge.EVENT_BUS.This event is only fired on the
LogicalSide.SERVER side.If this event is canceled, the entity will not be teleported.
-
Nested Class Summary
Nested classes/interfaces inherited from class EntityTeleportEvent
EntityTeleportEvent.EnderEntity, EntityTeleportEvent.EnderPearl, EntityTeleportEvent.ItemConsumption, EntityTeleportEvent.SpreadPlayersCommand, EntityTeleportEvent.TeleportCommandNested classes/interfaces inherited from class EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size -
Field Summary
FieldsFields inherited from class EntityTeleportEvent
targetX, targetY, targetZ -
Constructor Summary
ConstructorsConstructorDescriptionItemConsumption(LivingEntity entity, ItemStack itemStack, double targetX, double targetY, double targetZ) -
Method Summary
Methods inherited from class EntityTeleportEvent
getPrev, getPrevX, getPrevY, getPrevZ, getTarget, getTargetX, getTargetY, getTargetZ, setTargetX, setTargetY, setTargetZMethods inherited from class EntityEvent
getEntityMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
entityLiving
-
itemStack
-
-
Constructor Details
-
ItemConsumption
public ItemConsumption(LivingEntity entity, ItemStack itemStack, double targetX, double targetY, double targetZ)
-
-
Method Details
-
getEntityLiving
-
getConsumedItem
-