Package org.purpurmc.purpur.event.entity
Class EntityTeleportHinderedEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.purpurmc.purpur.event.entity.EntityTeleportHinderedEvent
@NullMarked
@Deprecated(since="1.21.10")
public class EntityTeleportHinderedEvent
extends EntityEvent
Deprecated.
no longer needed
Fired when an entity is hindered from teleporting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Reason for hindrance in teleports.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity -
Constructor Summary
ConstructorsConstructorDescriptionEntityTeleportHinderedEvent(Entity what, EntityTeleportHinderedEvent.Reason reason, @Nullable PlayerTeleportEvent.TeleportCause teleportCause) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Calls the event and tests if should retry.static HandlerListDeprecated.Deprecated.Deprecated.Deprecated.voidsetShouldRetry(boolean retry) Deprecated.Sets whether the teleport should be retried.booleanDeprecated.Whether the teleport should be retried.Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityTypeMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
EntityTeleportHinderedEvent
@Internal public EntityTeleportHinderedEvent(Entity what, EntityTeleportHinderedEvent.Reason reason, @Nullable PlayerTeleportEvent.TeleportCause teleportCause) Deprecated.
-
-
Method Details
-
getReason
Deprecated.- Returns:
- why the teleport was hindered.
-
getTeleportCause
Deprecated.- Returns:
- why the teleport occurred if cause was given, otherwise
null.
-
shouldRetry
public boolean shouldRetry()Deprecated.Whether the teleport should be retried.Note that this can put the server in a never-ending loop of trying to teleport someone resulting in a stack overflow. Do not retry more than necessary.
- Returns:
- whether the teleport should be retried.
-
setShouldRetry
public void setShouldRetry(boolean retry) Deprecated.Sets whether the teleport should be retried.Note that this can put the server in a never-ending loop of trying to teleport someone resulting in a stack overflow. Do not retry more than necessary.
- Parameters:
retry- whether the teleport should be retried.
-
callEvent
public boolean callEvent()Deprecated.Calls the event and tests if should retry. -
getHandlers
Deprecated.- Specified by:
getHandlersin classEvent
-
getHandlerList
Deprecated.
-