Class EntityTeleportEvent.TeleportCommand
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.living.EntityTeleportEvent
-
- net.minecraftforge.event.entity.living.EntityTeleportEvent.TeleportCommand
-
- Enclosing class:
- EntityTeleportEvent
public static class EntityTeleportEvent.TeleportCommand extends EntityTeleportEvent
EntityTeleportEvent.TeleportCommand is fired before a living entity is teleported from use ofTeleportCommand
.
This event isCancelable
.
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 theMinecraftForge.EVENT_BUS
.
This event is only fired on theLogicalSide.SERVER
side.
If this event is canceled, the entity will not be teleported.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.EntityTeleportEvent
EntityTeleportEvent.ChorusFruit, EntityTeleportEvent.EnderEntity, EntityTeleportEvent.EnderPearl, EntityTeleportEvent.SpreadPlayersCommand, EntityTeleportEvent.TeleportCommand
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Field Summary
-
Fields inherited from class net.minecraftforge.event.entity.living.EntityTeleportEvent
targetX, targetY, targetZ
-
-
Constructor Summary
Constructors Constructor Description TeleportCommand(Entity entity, double targetX, double targetY, double targetZ)
-
Method Summary
-
Methods inherited from class net.minecraftforge.event.entity.living.EntityTeleportEvent
getPrev, getPrevX, getPrevY, getPrevZ, getTarget, getTargetX, getTargetY, getTargetZ, setTargetX, setTargetY, setTargetZ
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Constructor Detail
-
TeleportCommand
public TeleportCommand(Entity entity, double targetX, double targetY, double targetZ)
-
-