Class PlayerEvent.Clone

Enclosing class:

public static class PlayerEvent.Clone extends PlayerEvent
Fired when the EntityPlayer is cloned, typically caused by the network sending a RESPAWN_PLAYER event. Either caused by death, or by traveling from the End to the overworld.
  • Field Details

    • original

      private final PlayerEntity original
    • wasDeath

      private final boolean wasDeath
  • Constructor Details

  • Method Details

    • getOriginal

      public PlayerEntity getOriginal()
      The old EntityPlayer that this new entity is a clone of.
    • isWasDeath

      public boolean isWasDeath()
      True if this event was fired because the player died. False if it was fired because the entity switched dimensions.