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, wallpaperFields inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
hasChanged, shouldSendUpdates, storageType, trackingPlayers, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the first position where there is no pokemon in the storagevoidset(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, getRawAll, getSlot, iterator, maxSize, readFromNBT, sendChangesToServer, sendContents, set, setName, setWallpaper, shouldSendUpdates, swap, swap, trackingPlayers, writeToNBTMethods inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
add, addAndGetPosition, canTransfer, clone, countAll, countAll, countAll, countEggs, countEmpty, countPokemon, find, findAll, findAll, findAllPositions, findAllPositions, findOne, findOne, getAllNonNull, getCurryData, getOwner, getShouldSave, getStorageType, getUniqueId, hasSpace, initialize, isTracking, notifyListeners, open, retrieveAll, setHasChanged, setNeedsSaving, shouldSendUpdates, toString, track, transfer, untrack, updateSingleCurryData, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PCBoxSearch
-
-
Method Details
-
getWallpaper
- Overrides:
getWallpaperin 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:PokemonStorageGets the first position where there is no pokemon in the storage- Overrides:
getFirstEmptyPositionin classPCBox- Returns:
- the first empty position in the storage
-