Class PlayerEvent.Clone

  • Enclosing class:
    PlayerEvent

    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 Detail

      • wasDeath

        private final boolean wasDeath
    • Method Detail

      • 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.