Class ClientStoredPokedex
java.lang.Object
com.pixelmonmod.pixelmon.api.pokedex.StoredPokedex
com.pixelmonmod.pixelmon.api.pokedex.ClientStoredPokedex
- All Implemented Interfaces:
PokedexStorage
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.pokedex.StoredPokedex
defaultPokedexKey, pokedexes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull PokedexStorage
createPokedex
(net.minecraft.resources.ResourceKey<Pokedex> key) net.minecraft.world.entity.player.Player
getOwner()
Gets the player that owns this Pokedex.Gets the unique identifier for this Pokedex.void
load
(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.RegistryAccess registryAccess) Loads the Pokedex data from a CompoundTag.void
Sets the Pokémon as caught.void
Sets the Pokémon as seen.void
setStatus
(net.minecraft.resources.ResourceKey<Pokedex> pokedexType, PokemonBase dexId, PokedexState status, int seenCount, int caughtCount) Methods inherited from class com.pixelmonmod.pixelmon.api.pokedex.StoredPokedex
clear, countCaught, countCaught, countSeen, countSeen, getCaughtCount, getCaughtCount, getCaughtCount, getCaughtCount, getLargest, getLargest, getPercentage, getPercentage, getPercentage, getPercentage, getPokedex, getSeenCount, getSeenCount, getSeenCount, getSeenCount, getSmallest, getSmallest, getStatus, getStatus, getStatus, getStatus, getUnlockedSections, getUnlockedSections, hasCaught, hasCaught, hasSeen, hasSeen, hasUnlocked, save, unlockSection, unlockSection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.pokedex.PokedexStorage
getCaughtCount, getLargest, getSeenCount, getSmallest, getUnlockedSections, hasCaught, hasCaught, hasSeen, hasSeen, hasUnlocked, hasUnlocked, initialize, unlockSection, unlockSections, unlockSections, unlockSections, unlockSections
-
Constructor Details
-
ClientStoredPokedex
-
-
Method Details
-
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
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 interfacePokedexStorage
- Overrides:
setCaught
in classStoredPokedex
- 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
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 interfacePokedexStorage
- Overrides:
setSeen
in classStoredPokedex
- Parameters:
pokemon
- The Pokémon to set as seen.
-
createPokedex
- Specified by:
createPokedex
in classStoredPokedex
-
setStatus
@Internal public void setStatus(net.minecraft.resources.ResourceKey<Pokedex> pokedexType, PokemonBase dexId, PokedexState status, int seenCount, int caughtCount) -
getAvailablePokedexes
- Specified by:
getAvailablePokedexes
in classStoredPokedex
-