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
EntityTeleportEvent.EnderPearl is fired before an Entity is teleported from an EnderPearlEntity.
This event is
If the event is not canceled, the entity will be teleported.
This event does not have a result.
This event is fired on the
This event is only fired on the
If this event is canceled, the entity will not be teleported.
This event is
Cancelable
.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
MinecraftForge.EVENT_BUS
.This event is only fired on the
LogicalSide.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
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
private final EnderPearlEntity
private final ServerPlayerEntity
Fields inherited from class net.minecraftforge.event.entity.living.EntityTeleportEvent
targetX, targetY, targetZ
-
Constructor Summary
ConstructorDescriptionEnderPearl
(ServerPlayerEntity entity, double targetX, double targetY, double targetZ, EnderPearlEntity pearlEntity, float attackDamage) -
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
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
player
-
pearlEntity
-
attackDamage
private float attackDamage
-
-
Constructor Details
-
EnderPearl
public EnderPearl(ServerPlayerEntity entity, double targetX, double targetY, double targetZ, EnderPearlEntity pearlEntity, float attackDamage)
-
-
Method Details
-
getPearlEntity
-
getPlayer
-
getAttackDamage
public float getAttackDamage() -
setAttackDamage
public void setAttackDamage(float attackDamage)
-