Class PCStorageSearch
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.PokemonStorage
com.pixelmonmod.pixelmon.api.storage.PCStorage
com.pixelmonmod.pixelmon.api.storage.PCStorageSearch
Might switch to positions rather than pokémon. But it works for now.
-
Field Summary
FieldsFields inherited from class com.pixelmonmod.pixelmon.api.storage.PCStorage
boxes, cachePosition, lastBox, playerName, playerUUIDFields inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
hasChanged, shouldSendUpdates, storageType, trackingPlayers, uuid -
Constructor Summary
ConstructorsConstructorDescriptionPCStorageSearch(int width, int height, AdvancedPCSearchScreen advancedSearch) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransfer(StoragePosition from, StoragePosition to) intvoidquery()voidvoidrearrangeBoxes(List<Pokemon> pokemon) Methods inherited from class com.pixelmonmod.pixelmon.api.storage.PCStorage
clear, decode, encode, get, get, getAll, getAllPositions, getBox, getBoxCount, getBoxes, getFirstEmptyPosition, getPlayer, getPlayerName, getPlayerUUID, getPosition, getRawAll, getShouldSave, iterator, maxSize, open, readFromNBT, sendContents, set, set, setBoxCount, setHasChanged, setLastBox, setPlayer, setPlayerName, setPlayerUUID, swap, swap, swapBoxes, writeToNBTMethods inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
add, addAndGetPosition, clone, countAll, countAll, countAll, countEggs, countEmpty, countPokemon, find, findAll, findAll, findAllPositions, findAllPositions, findOne, findOne, getAllNonNull, getCurryData, getOwner, getStorageType, getUniqueId, hasSpace, initialize, isTracking, notifyListeners, retrieveAll, setNeedsSaving, shouldSendUpdates, shouldSendUpdates, toString, track, trackingPlayers, 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
-
Field Details
-
lastTextBoxQuery
-
searchId
public int searchId
-
-
Constructor Details
-
PCStorageSearch
-
-
Method Details
-
query
public void query() -
query
-
rearrangeBoxes
-
getLastBox
public int getLastBox()- Overrides:
getLastBoxin classPCStorage
-
canTransfer
- Overrides:
canTransferin classPokemonStorage- Returns:
- Whether the first position is in this storage and it's full and the second position is in the party and it's empty, or vice-versa.
-