Class EntityTeleportEvent.TeleportCommand

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.TeleportCommand
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
EntityTeleportEvent

public static class EntityTeleportEvent.TeleportCommand extends EntityTeleportEvent implements net.neoforged.bus.api.ICancellableEvent
EntityTeleportEvent.TeleportCommand is fired before a living entity is teleported from use of TeleportCommand.
This event is ICancellableEvent.
If the event is not canceled, the entity will be teleported.
This event does not have a result. Event.HasResult

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.
  • Constructor Details

    • TeleportCommand

      public TeleportCommand(Entity entity, double targetX, double targetY, double targetZ)