Class EntityTeleportEvent.EnderEntity
- 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.EnderEntity
-
- Enclosing class:
- EntityTeleportEvent
public static class EntityTeleportEvent.EnderEntity extends EntityTeleportEvent
EntityTeleportEvent.EnderEntity is fired before an Enderman or Shulker randomly teleports.
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 Modifier and Type Field Description private LivingEntity
entityLiving
-
Fields inherited from class net.minecraftforge.event.entity.living.EntityTeleportEvent
targetX, targetY, targetZ
-
-
Constructor Summary
Constructors Constructor Description EnderEntity(LivingEntity entity, double targetX, double targetY, double targetZ)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LivingEntity
getEntityLiving()
-
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
-
-
-
-
Field Detail
-
entityLiving
private final LivingEntity entityLiving
-
-
Constructor Detail
-
EnderEntity
public EnderEntity(LivingEntity entity, double targetX, double targetY, double targetZ)
-
-
Method Detail
-
getEntityLiving
public LivingEntity getEntityLiving()
-
-