Class ClientStoredPokedex

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

public class ClientStoredPokedex extends StoredPokedex
  • Constructor Details

    • ClientStoredPokedex

      public ClientStoredPokedex(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.world.entity.player.Player getOwner()
      Description copied from interface: PokedexStorage
      Gets the player that owns this Pokedex.
      Returns:
      The player that owns this Pokedex.
    • setCaught

      public void setCaught(Pokemon pokemon, String cause)
      Description copied from interface: PokedexStorage
      Sets the Pokémon as caught.
      This method will not change the status if the Pokémon has already been caught or seen.
      Specified by:
      setCaught in interface PokedexStorage
      Overrides:
      setCaught in class StoredPokedex
      Parameters:
      pokemon - The Pokémon to set as caught.
    • 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.
    • setSeen

      public void setSeen(Pokemon pokemon, String cause)
      Description copied from interface: PokedexStorage
      Sets the Pokémon as seen.
      This method will not change the status if the Pokémon has already been caught or seen.
      Specified by:
      setSeen in interface PokedexStorage
      Overrides:
      setSeen in class StoredPokedex
      Parameters:
      pokemon - The Pokémon to set as seen.
    • createPokedex

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

      @Internal public void setStatus(net.minecraft.resources.ResourceKey<Pokedex> pokedexType, PokemonBase dexId, PokedexState status, int seenCount, int caughtCount)
    • getAvailablePokedexes

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