Class ExpandServerPlayer

java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.player.ExpandServerPlayer

@ZenRegister public class ExpandServerPlayer extends Object
  • Constructor Details

    • ExpandServerPlayer

      public ExpandServerPlayer()
  • Method Details

    • getAdvancements

      public static net.minecraft.server.PlayerAdvancements getAdvancements(net.minecraft.server.level.ServerPlayer internal)
      Gets the PlayerAdvancements for this player.
      Returns:
      The PlayerAdvancements for this player.
    • getPersistentData

      public static MapData getPersistentData(net.minecraft.server.level.ServerPlayer internal)
      Gets the persistent NBT data for this player.

      Persistent data is kept through deaths

      Returns:
      The persistent data for this Entity.
    • updatePersistentData

      public static void updatePersistentData(net.minecraft.server.level.ServerPlayer internal, MapData data)
      Updates the persistent NBT data for this player.

      Persistent data is kept through deaths

      Parameters:
      data - The custom data to store.
      DocParam:
      data {custom: "data"}