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
Fields inherited from class com.pixelmonmod.pixelmon.api.storage.PCStorage
boxes, cachePosition, lastBox, playerName, playerUUID
Fields inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
hasChanged, shouldSendUpdates, storageType, trackingPlayers, uuid
-
Constructor Summary
ConstructorDescriptionPCStorageSearch
(int width, int height, AdvancedPCSearchScreen advancedSearch) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTransfer
(StoragePosition from, StoragePosition to) int
void
query()
void
void
rearrangeBoxes
(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, getShouldSave, iterator, maxSize, open, readFromNBT, sendContents, set, set, setBoxCount, setHasChanged, setLastBox, setPlayer, setPlayerName, setPlayerUUID, swap, swap, swapBoxes, writeToNBT
Methods inherited from class com.pixelmonmod.pixelmon.api.storage.PokemonStorage
add, addAndGetPosition, clone, countAll, countEggs, countEmpty, countPokemon, find, findAll, findAll, findAllPositions, findAllPositions, findOne, findOne, getCurryData, getOwner, getStorageType, getUniqueId, hasSpace, initialize, isTracking, notifyListeners, retrieveAll, 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
-
lastTextBoxQuery
-
searchId
public int searchId
-
-
Constructor Details
-
PCStorageSearch
-
-
Method Details
-
query
public void query() -
query
-
rearrangeBoxes
-
getLastBox
public int getLastBox()- Overrides:
getLastBox
in classPCStorage
-
canTransfer
- Overrides:
canTransfer
in 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.
-