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, entity, 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 TypeMethodDescriptionnet.minecraft.world.entity.Entity
getNPC()
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 editingvoid
setEntity
(net.minecraft.world.entity.Entity entity) Methods 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
-
getEntity
public net.minecraft.world.entity.Entity getEntity()- Overrides:
getEntity
in classPartyStorage
-
setEntity
public void setEntity(net.minecraft.world.entity.Entity entity) - Overrides:
setEntity
in classPartyStorage
-
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
-