Class ServerStoredPokedex
java.lang.Object
com.pixelmonmod.pixelmon.api.pokedex.StoredPokedex
com.pixelmonmod.pixelmon.api.pokedex.ServerStoredPokedex
- 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 TypeMethodDescriptionvoid
clear()
Gets the type of the Pokedex.protected @NonNull PokedexStorage
createPokedex
(net.minecraft.resources.ResourceKey<Pokedex> key) net.minecraft.server.level.ServerPlayer
getOwner()
Gets the player that owns this Pokedex.Gets the unique identifier for this Pokedex.void
initialize
(net.minecraft.world.entity.player.Player player) Initializes the Pokedex for a player.void
load
(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.RegistryAccess registryAccess) Loads the Pokedex data from a CompoundTag.Methods inherited from class com.pixelmonmod.pixelmon.api.pokedex.StoredPokedex
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, setCaught, setSeen, 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, unlockSection, unlockSections, unlockSections, unlockSections, unlockSections
-
Constructor Details
-
ServerStoredPokedex
-
-
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.server.level.ServerPlayer getOwner()Description copied from interface:PokedexStorage
Gets the player that owns this Pokedex.- Returns:
- The player that owns this Pokedex.
-
createPokedex
- Specified by:
createPokedex
in classStoredPokedex
-
getAvailablePokedexes
- Specified by:
getAvailablePokedexes
in classStoredPokedex
-
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 interfacePokedexStorage
- Overrides:
clear
in classStoredPokedex
-