public class PartyStorage extends PokemonStorage
Modifier and Type | Field and Description |
---|---|
protected StoragePosition |
cachePosition |
static int |
MAX_PARTY |
protected Pokemon[] |
party |
hasChanged, shouldSendUpdates, uuid
Constructor and Description |
---|
PartyStorage(java.util.UUID uuid) |
Modifier and Type | Method and Description |
---|---|
int |
countAblePokemon() |
Pokemon |
get(int slot) |
Pokemon |
get(StoragePosition position) |
Pokemon |
get(java.util.UUID pokemonUUID) |
Pokemon[] |
getAll()
Gets a array of all pokemon within this storage.
|
EntityPixelmon |
getAndSendOutFirstAblePokemon(net.minecraft.entity.Entity parent) |
int |
getAverageLevel() |
java.io.File |
getFile() |
Pokemon |
getFirstAblePokemon() |
StoragePosition |
getFirstEmptyPosition() |
int |
getHighestLevel() |
int |
getLowestLevel() |
java.util.List<net.minecraft.entity.player.EntityPlayerMP> |
getPlayersToUpdate() |
StoragePosition |
getPosition(Pokemon pokemon) |
int |
getSlot(Pokemon pokemon) |
int |
getSlot(java.util.UUID pokemonUUID) |
java.util.List<Pokemon> |
getTeam() |
void |
heal() |
Quadstate |
isOldGen(int dimension) |
PartyStorage |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
set(int slot,
Pokemon pokemon) |
void |
set(StoragePosition position,
Pokemon pokemon) |
void |
swap(int slot1,
int slot2) |
void |
swap(StoragePosition position1,
StoragePosition position2) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
add, canTransfer, countAll, countEggs, countPokemon, doWithoutSendingUpdates, find, findAll, findAll, findOne, findOne, getCurryData, getShouldSave, getShouldSendUpdates, hasSpace, notifyListener, notifyListeners, retrieveAll, setHasChanged, setNeedsSaving, toString, transfer, updateSingleCurryData, validate
public static final int MAX_PARTY
protected Pokemon[] party
protected transient StoragePosition cachePosition
public Pokemon[] getAll()
PokemonStorage
getAll
in class PokemonStorage
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT
in class PokemonStorage
public PartyStorage readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT
in class PokemonStorage
@Nullable public StoragePosition getFirstEmptyPosition()
getFirstEmptyPosition
in class PokemonStorage
public void set(StoragePosition position, Pokemon pokemon)
set
in class PokemonStorage
public void set(int slot, Pokemon pokemon)
@Nullable public Pokemon get(StoragePosition position)
get
in class PokemonStorage
@Nullable public Pokemon get(int slot)
public Pokemon get(java.util.UUID pokemonUUID)
public int getSlot(Pokemon pokemon)
public int getSlot(java.util.UUID pokemonUUID)
public java.util.List<Pokemon> getTeam()
public void heal()
public void swap(StoragePosition position1, StoragePosition position2)
swap
in class PokemonStorage
public void swap(int slot1, int slot2)
public StoragePosition getPosition(Pokemon pokemon)
getPosition
in class PokemonStorage
public java.util.List<net.minecraft.entity.player.EntityPlayerMP> getPlayersToUpdate()
getPlayersToUpdate
in class PokemonStorage
public java.io.File getFile()
getFile
in class PokemonStorage
public int countAblePokemon()
public int getHighestLevel()
public int getAverageLevel()
public int getLowestLevel()
public Pokemon getFirstAblePokemon()
public EntityPixelmon getAndSendOutFirstAblePokemon(net.minecraft.entity.Entity parent)
public Quadstate isOldGen(int dimension)