Class ServerStoredPokedex

java.lang.Object
com.pixelmonmod.pixelmon.api.pokedex.StoredPokedex
com.pixelmonmod.pixelmon.api.pokedex.ServerStoredPokedex
All Implemented Interfaces:
PokedexStorage

public class ServerStoredPokedex extends StoredPokedex
  • Constructor Details

    • ServerStoredPokedex

      public ServerStoredPokedex(UUID playerId)
  • Method Details

    • getUniqueId

      public UUID getUniqueId()
      Description copied from interface: PokedexStorage
      Gets the unique identifier for this Pokedex.
      Returns:
      The unique identifier for this Pokedex.
    • getOwner

      public net.minecraft.server.level.ServerPlayer getOwner()
      Description copied from interface: PokedexStorage
      Gets the player that owns this Pokedex.
      Returns:
      The player that owns this Pokedex.
    • createPokedex

      protected @NonNull PokedexStorage createPokedex(net.minecraft.resources.ResourceKey<Pokedex> key)
      Specified by:
      createPokedex in class StoredPokedex
    • getAvailablePokedexes

      protected List<net.minecraft.core.Holder.Reference<Pokedex>> getAvailablePokedexes()
      Specified by:
      getAvailablePokedexes in class StoredPokedex
    • load

      public void load(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.RegistryAccess registryAccess)
      Description copied from interface: PokedexStorage
      Loads the Pokedex data from a CompoundTag.
      Parameters:
      nbt - The CompoundTag containing the Pokedex data.
      registryAccess - The registry access for loading.
    • initialize

      public void initialize(net.minecraft.world.entity.player.Player player)
      Description copied from interface: PokedexStorage
      Initializes the Pokedex for a player.
      This method is called when the player first joins the game
      Parameters:
      player - The player to initialize the Pokedex for.
    • clear

      public void clear()
      Description copied from interface: PokedexStorage
      Gets the type of the Pokedex.
      Specified by:
      clear in interface PokedexStorage
      Overrides:
      clear in class StoredPokedex