Interface PlayerEvents.Clone

Record Components:
died - true after death, false when coming back from the End
Enclosing class:
PlayerEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PlayerEvents.Clone
The game made a new player object for a player who died or came back from the End, and is copying them over: the place to carry over what the game doesn't (attachments kept through death already are).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClone(net.minecraft.server.level.ServerPlayer original, net.minecraft.server.level.ServerPlayer player, boolean died)
     
  • Method Details

    • onClone

      void onClone(net.minecraft.server.level.ServerPlayer original, net.minecraft.server.level.ServerPlayer player, boolean died)