Class DrainPlayerFromWorldEvent

java.lang.Object
com.hypixel.hytale.server.core.event.events.player.DrainPlayerFromWorldEvent
All Implemented Interfaces:
IAsyncEvent<String>, IBaseEvent<String>

public class DrainPlayerFromWorldEvent extends Object implements IAsyncEvent<String>
Fired for each player removed from a world that is shutting down, before the player is added to the target world. The drain waits for the dispatch to complete, so listeners may load the target world asynchronously and call setDestinationWorld(World) once it is available.
  • Constructor Details

    • DrainPlayerFromWorldEvent

      public DrainPlayerFromWorldEvent(@Nonnull Holder<EntityStore> holder, @Nonnull World sourceWorld, @Nonnull World destinationWorld, @Nullable Transform transform, @Nullable Message message, boolean isRemovalExceptional)
  • Method Details

    • getHolder

      @Nonnull public Holder<EntityStore> getHolder()
    • getSourceWorld

      @Nonnull public World getSourceWorld()
    • getDestinationWorld

      @Nonnull public World getDestinationWorld()
    • setDestinationWorld

      public void setDestinationWorld(@Nonnull World destinationWorld)
    • getTransform

      @Nullable public Transform getTransform()
    • setTransform

      public void setTransform(@Nullable Transform transform)
    • getMessage

      @Nullable public Message getMessage()
    • setMessage

      public void setMessage(@Nullable Message message)
    • isRemovalExceptional

      public boolean isRemovalExceptional()
    • toString

      public String toString()
      Overrides:
      toString in class Object