Class NPCPartyStorage
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.PokemonStorage
com.pixelmonmod.pixelmon.api.storage.PartyStorage
com.pixelmonmod.pixelmon.api.storage.NPCPartyStorage
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.storage.PartyStorage
cachePosition, MAX_PARTY, party, PARTY_BOX_INDEX, tempParty, tempPartyColor
Fields inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
hasChanged, shouldSendUpdates, storageType, trackingPlayers, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNPC()
Gets the unique identifier of the Pokemon storage
Note that this will likely be the owning player's UUID in the case of a player storage, such as thePlayerPartyStorage
orPCStorage
void
sendCacheToPlayer
(net.minecraft.server.level.ServerPlayer player) Sends the Pokemon to the client for editingMethods inherited from class com.pixelmonmod.pixelmon.api.storage.PartyStorage
clear, copyToTemporaryMode, countAblePokemon, decode, encode, enterTemporaryMode, enterTemporaryMode, findFirst, findFirstPokemon, get, get, get, getAll, getAllPositions, getAndSendOutFirstAblePokemon, getAverageLevel, getFirstAblePokemon, getFirstBattleReadyPokemon, getFirstEmptyPosition, getHighestLevel, getLowestLevel, getOriginalParty, getPosition, getSlot, getSlot, getTeam, getTeam, getTempPartyColor, heal, inTemporaryMode, isOldGen, iterator, maxSize, readFromNBT, set, set, setInTemporaryMode, setInTemporaryModeClient, setOriginal, setOriginal, setTempPartyColor, swap, swap, writeToNBT
Methods inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
add, addAndGetPosition, canTransfer, clone, countAll, countEggs, countEmpty, countPokemon, find, findAll, findAll, findAllPositions, findAllPositions, findOne, findOne, getCurryData, getOwner, getShouldSave, getStorageType, hasSpace, initialize, isTracking, notifyListeners, open, retrieveAll, setHasChanged, setNeedsSaving, shouldSendUpdates, shouldSendUpdates, toString, track, trackingPlayers, transfer, untrack, updateSingleCurryData, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
trainer
-
-
Constructor Details
-
NPCPartyStorage
-
NPCPartyStorage
-
-
Method Details
-
getUniqueId
Description copied from class:PokemonStorage
Gets the unique identifier of the Pokemon storage
Note that this will likely be the owning player's UUID in the case of a player storage, such as thePlayerPartyStorage
orPCStorage
- Overrides:
getUniqueId
in classPokemonStorage
- Returns:
- the unique identifier of the Pokemon storage
-
getNPC
-
sendCacheToPlayer
public void sendCacheToPlayer(net.minecraft.server.level.ServerPlayer player) Description copied from class:PartyStorage
Sends the Pokemon to the client for editing- Overrides:
sendCacheToPlayer
in classPartyStorage
- Parameters:
player
- The player to send the Pokemon to
-