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 PokedexStoragecreatePokedex(net.minecraft.resources.ResourceKey<Pokedex> key) net.minecraft.world.entity.player.PlayergetOwner()Gets the player that owns this Pokedex.Gets the unique identifier for this Pokedex.voidload(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.RegistryAccess registryAccess) Loads the Pokedex data from a CompoundTag.voidSets the Pokémon as caught.voidSets the Pokémon as seen.voidsetStatus(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, unlockSectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:PokedexStorageGets 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:PokedexStorageGets the player that owns this Pokedex.- Returns:
- The player that owns this Pokedex.
-
setCaught
Description copied from interface:PokedexStorageSets the Pokémon as caught.
This method will not change the status if the Pokémon has already been caught or seen.- Specified by:
setCaughtin interfacePokedexStorage- Overrides:
setCaughtin 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:PokedexStorageLoads 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:PokedexStorageSets the Pokémon as seen.
This method will not change the status if the Pokémon has already been caught or seen.- Specified by:
setSeenin interfacePokedexStorage- Overrides:
setSeenin classStoredPokedex- Parameters:
pokemon- The Pokémon to set as seen.
-
createPokedex
- Specified by:
createPokedexin classStoredPokedex
-
setStatus
@Internal public void setStatus(net.minecraft.resources.ResourceKey<Pokedex> pokedexType, PokemonBase dexId, PokedexState status, int seenCount, int caughtCount) -
getAvailablePokedexes
- Specified by:
getAvailablePokedexesin classStoredPokedex
-