Class EnderTeleportEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.EnderTeleportEvent
Deprecated.
Event for when an Enderman/Shulker teleports or an ender pearl is used. Can be used to either modify the target position, or cancel the teleport outright.
- Author:
- Mithion
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
Deprecated.private double
Deprecated.private double
Deprecated.private double
Deprecated. -
Constructor Summary
ConstructorDescriptionEnderTeleportEvent
(LivingEntity entity, double targetX, double targetY, double targetZ, float attackDamage) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.void
setAttackDamage
(float attackDamage) Deprecated.void
setTargetX
(double targetX) Deprecated.void
setTargetY
(double targetY) Deprecated.void
setTargetZ
(double targetZ) Deprecated.Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
targetX
private double targetXDeprecated. -
targetY
private double targetYDeprecated. -
targetZ
private double targetZDeprecated. -
attackDamage
private float attackDamageDeprecated.
-
-
Constructor Details
-
EnderTeleportEvent
public EnderTeleportEvent(LivingEntity entity, double targetX, double targetY, double targetZ, float attackDamage) Deprecated.
-
-
Method Details
-
getTargetX
public double getTargetX()Deprecated. -
setTargetX
public void setTargetX(double targetX) Deprecated. -
getTargetY
public double getTargetY()Deprecated. -
setTargetY
public void setTargetY(double targetY) Deprecated. -
getTargetZ
public double getTargetZ()Deprecated. -
setTargetZ
public void setTargetZ(double targetZ) Deprecated. -
getAttackDamage
public float getAttackDamage()Deprecated. -
setAttackDamage
public void setAttackDamage(float attackDamage) Deprecated.
-
EntityTeleportEvent.EnderEntity
orEntityTeleportEvent.EnderPearl
.