Class EntityTeleportEvent.EnderPearl
- 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.EnderPearl
-
- Enclosing class:
- EntityTeleportEvent
public static class EntityTeleportEvent.EnderPearl extends EntityTeleportEvent
EntityTeleportEvent.EnderPearl is fired before an Entity is teleported from an EnderPearlEntity.
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 float
attackDamage
private EnderPearlEntity
pearlEntity
private ServerPlayerEntity
player
-
Fields inherited from class net.minecraftforge.event.entity.living.EntityTeleportEvent
targetX, targetY, targetZ
-
-
Constructor Summary
Constructors Constructor Description EnderPearl(ServerPlayerEntity entity, double targetX, double targetY, double targetZ, EnderPearlEntity pearlEntity, float attackDamage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getAttackDamage()
EnderPearlEntity
getPearlEntity()
ServerPlayerEntity
getPlayer()
void
setAttackDamage(float attackDamage)
-
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
-
player
private final ServerPlayerEntity player
-
pearlEntity
private final EnderPearlEntity pearlEntity
-
attackDamage
private float attackDamage
-
-
Constructor Detail
-
EnderPearl
public EnderPearl(ServerPlayerEntity entity, double targetX, double targetY, double targetZ, EnderPearlEntity pearlEntity, float attackDamage)
-
-
Method Detail
-
getPearlEntity
public EnderPearlEntity getPearlEntity()
-
getPlayer
public ServerPlayerEntity getPlayer()
-
getAttackDamage
public float getAttackDamage()
-
setAttackDamage
public void setAttackDamage(float attackDamage)
-
-