Class PCBoxSearch
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.PokemonStorage
com.pixelmonmod.pixelmon.api.storage.PCBox
com.pixelmonmod.pixelmon.api.storage.PCBoxSearch
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.storage.PCBox
boxNumber, cachePosition, hasChangedClientSide, name, pc, pokemon, POKEMON_PER_BOX, wallpaper
Fields inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
hasChanged, shouldSendUpdates, storageType, trackingPlayers, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the first position where there is no pokemon in the storagevoid
set
(StoragePosition position, Pokemon pokemon) This prevents the super method from changing the Pokemon's StoragePosition, which is needed by the GuiPC to retrieve the original position.Methods inherited from class com.pixelmonmod.pixelmon.api.storage.PCBox
clear, decode, encode, get, get, getAll, getAllPositions, getBoxNumber, getName, getPC, getPosition, getSlot, iterator, maxSize, readFromNBT, sendChangesToServer, sendContents, set, setName, setWallpaper, shouldSendUpdates, swap, swap, trackingPlayers, 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, getUniqueId, hasSpace, initialize, isTracking, notifyListeners, open, retrieveAll, setHasChanged, setNeedsSaving, shouldSendUpdates, toString, track, 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
-
Constructor Details
-
PCBoxSearch
-
-
Method Details
-
getWallpaper
- Overrides:
getWallpaper
in classPCBox
-
set
This prevents the super method from changing the Pokemon's StoragePosition, which is needed by the GuiPC to retrieve the original position. Can be removed when PCStorageSearch will use StoragePositions instead of actual Pokemon objects -
getFirstEmptyPosition
Description copied from class:PokemonStorage
Gets the first position where there is no pokemon in the storage- Overrides:
getFirstEmptyPosition
in classPCBox
- Returns:
- the first empty position in the storage
-