Package dev.latvian.mods.kubejs.player
Class PlayerClonedKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.player.PlayerClonedKubeEvent
- All Implemented Interfaces:
KubeEntityEvent,KubeLivingEntityEvent,KubeEvent,KubeLevelEvent,KubePlayerEvent
@Info("Invoked when a player respawns.\n\nThe reason of respawn can be either death or returning from the end.\n")
public class PlayerClonedKubeEvent
extends Object
implements KubePlayerEvent
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerClonedKubeEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.server.level.ServerPlayer oldPlayer, boolean keepData) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayerbooleannet.minecraft.server.level.ServerPlayerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.entity.KubeEntityEvent
getLevelMethods inherited from interface dev.latvian.mods.kubejs.event.KubeEvent
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, successMethods inherited from interface dev.latvian.mods.kubejs.level.KubeLevelEvent
getRegistries, getServerMethods inherited from interface dev.latvian.mods.kubejs.player.KubePlayerEvent
getPlayer
-
Constructor Details
-
PlayerClonedKubeEvent
public PlayerClonedKubeEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.server.level.ServerPlayer oldPlayer, boolean keepData)
-
-
Method Details
-
getEntity
- Specified by:
getEntityin interfaceKubeEntityEvent- Specified by:
getEntityin interfaceKubeLivingEntityEvent- Specified by:
getEntityin interfaceKubePlayerEvent
-
getOldPlayer
@Info("Gets the player that was before respawn. Note that this entity is already removed from the world.") public net.minecraft.server.level.ServerPlayer getOldPlayer() -
getKeepData
@Info("Gets whether the player\'s data was kept, e.g. when returning from the end.") public boolean getKeepData()
-