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.
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 TypeMethodDescriptionvoidonClone(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)
-