public class WrapperLink extends PokemonLink
PixelmonWrapper object to get or update data.| Constructor and Description |
|---|
WrapperLink(PixelmonWrapper pixelmon)
The Pokémon to link to.
|
| Modifier and Type | Method and Description |
|---|---|
void |
adjustFriendship(int change)
Changes the friendship of the Pokémon.
|
boolean |
doesLevel()
Checks if the Pokémon can gain experience and pokemonLevel up.
|
Ability |
getAbility()
Gets the Pokémon's Ability.
|
BattleController |
getBattleController()
Gets the battle controller for the battle the Pokémon is in.
|
int |
getEggCycles()
Gets the number of Egg cycles need to hatchEgg an Egg.
|
PixelmonEntity |
getEntity()
Gets the Pokémon entity.
|
int |
getExp()
Gets the Pokémon's experience.
|
int |
getExpToNextLevel()
Gets the amount of experience needed for the Pokémon to pokemonLevel up.
|
java.lang.String |
getForm()
Gets the Pokémon's form name.
|
int |
getFriendship()
Gets the Pokémon's friendship.
|
Gender |
getGender()
Gets the Pokémon's gender.
|
int |
getHealth()
Gets the Pokémon's current hp.
|
HeldItem |
getHeldItem()
Gets the Pokémon's held item.
|
int |
getMaxHealth()
Gets the Pokémon's maximum hp.
|
int |
getMaxHealth(boolean ignoreDynamax) |
Moveset |
getMoveset()
Gets the Pokémon's moves.
|
Nature |
getNature()
Gets the Pokémon's Nature.
|
net.minecraft.util.text.ITextComponent |
getNickname()
Gets the Pokémon's nickname.
|
java.lang.String |
getOriginalTrainer()
Gets the name of the Pokémon's original Trainer.
|
int |
getPartyPosition()
Gets the position of the Pokémon in the owner's party.
|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayerOwner()
Gets the player who owns the Pokémon.
|
Pokemon |
getPokemon() |
int |
getPokemonLevel()
Gets the Pokémon's pokemonLevel.
|
java.util.UUID |
getPokemonUUID()
Gets the ID of the Pokémon.
|
PixelmonWrapper |
getPokemonWrapper()
Gets the
PixelmonWrapper wrapped by the object. |
java.util.Optional<Pokerus> |
getPokerus() |
net.minecraft.util.math.BlockPos |
getPos()
Gets the world position of the Pokémon.
|
StatusPersist |
getPrimaryStatus()
Gets the non-volatile status on the Pokémon.
|
net.minecraft.util.text.ITextComponent |
getRealNickname()
Gets the Pokémon's nickname, ignoring Illusion.
|
PermanentStats |
getStats()
Gets the numerical stats of the Pokémon.
|
PartyStorage |
getStorage()
Gets the storage of the Pokémon's owner.
|
java.util.List<Element> |
getType()
Gets the Pokémon's type.
|
net.minecraft.world.World |
getWorld()
Gets the world that the Pokémon is in.
|
boolean |
hasOwner()
Checks if the Pokémon has an owner.
|
boolean |
isEgg()
Checks if the Pokémon is an Egg.
|
boolean |
removeStatuses(StatusType... statuses)
Removes the specified statuses from the Pokémon.
|
void |
sendMessage(java.lang.String langKey,
java.lang.Object... data)
Sends a message to the client.
|
void |
setExp(int experience)
Sets the Pokémon's experience.
|
void |
setHealth(int health)
Sets the Pokémon's current hp.
|
void |
setHealthDirect(int health)
Directly sets the Pokémon's current hp, ignoring damage/heal processing.
|
void |
setHeldItem(net.minecraft.item.ItemStack item)
Sets the Pokémon's held item.
|
void |
setLevel(int level)
Sets the Pokémon's pokemonLevel.
|
void |
setScale(float scale)
Sets the model scale of the Pokémon.
|
void |
update(EnumUpdateType... updateTypes)
Updates the Pokémon client-side.
|
void |
updateLevelUp(PixelmonStatsData stats)
Updates the Pokémon when it levels up.
|
void |
updateStats()
Updates the Pokémon's stats client-side.
|
getBall, getBaseStats, getGrowth, getHeldItemStack, getSpecies, isFainted, isShiny, toStringpublic WrapperLink(PixelmonWrapper pixelmon)
public Pokemon getPokemon()
getPokemon in class PokemonLinkpublic PermanentStats getStats()
PokemonLinkgetStats in class PokemonLinkpublic HeldItem getHeldItem()
PokemonLinkgetHeldItem in class PokemonLinkpublic void setHeldItem(net.minecraft.item.ItemStack item)
PokemonLinksetHeldItem in class PokemonLinkitem - The Pokémon's new held item.public int getHealth()
PokemonLinkgetHealth in class PokemonLinkpublic int getMaxHealth()
PokemonLinkgetMaxHealth in class PokemonLinkpublic int getMaxHealth(boolean ignoreDynamax)
getMaxHealth in class PokemonLinkpublic void setHealth(int health)
PokemonLinksetHealth in class PokemonLinkhealth - The Pokémon's current hp.public void setHealthDirect(int health)
PokemonLinksetHealthDirect in class PokemonLinkhealth - The Pokémon's current hp.public int getPokemonLevel()
PokemonLinkgetPokemonLevel in class PokemonLinkpublic void setLevel(int level)
PokemonLinksetLevel in class PokemonLinklevel - The Pokémon's pokemonLevel.public int getExp()
PokemonLinkgetExp in class PokemonLinkpublic void setExp(int experience)
PokemonLinksetExp in class PokemonLinkexperience - The Pokémon's experience.public int getFriendship()
PokemonLinkgetFriendship in class PokemonLinkpublic boolean doesLevel()
PokemonLinkdoesLevel in class PokemonLinkpublic net.minecraft.entity.player.ServerPlayerEntity getPlayerOwner()
PokemonLinkgetPlayerOwner in class PokemonLinkpublic net.minecraft.util.text.ITextComponent getRealNickname()
PokemonLinkgetRealNickname in class PokemonLinkpublic BattleController getBattleController()
PokemonLinkgetBattleController in class PokemonLinkpublic Moveset getMoveset()
PokemonLinkgetMoveset in class PokemonLinkpublic java.util.UUID getPokemonUUID()
PokemonLinkgetPokemonUUID in class PokemonLinkpublic PixelmonEntity getEntity()
PokemonLinkgetEntity in class PokemonLinkpublic void setScale(float scale)
PokemonLinksetScale in class PokemonLinkscale - The model scale of the Pokémon.public net.minecraft.world.World getWorld()
PokemonLinkgetWorld in class PokemonLinkpublic Gender getGender()
PokemonLinkgetGender in class PokemonLinkpublic net.minecraft.util.math.BlockPos getPos()
PokemonLinkgetPos in class PokemonLinkpublic PartyStorage getStorage()
PokemonLinkgetStorage in class PokemonLinkpublic void update(EnumUpdateType... updateTypes)
PokemonLinkupdate in class PokemonLinkupdateTypes - The types of data to update.public void updateStats()
PokemonLinkupdateStats in class PokemonLinkpublic void updateLevelUp(PixelmonStatsData stats)
PokemonLinkupdateLevelUp in class PokemonLinkstats - Data about the Pokémon stats after leveling up.public void sendMessage(java.lang.String langKey,
java.lang.Object... data)
PokemonLinksendMessage in class PokemonLinklangKey - The lang key for the message.data - Additional arguments to pass into the lang string.public net.minecraft.util.text.ITextComponent getNickname()
PokemonLinkgetNickname in class PokemonLinkpublic java.lang.String getOriginalTrainer()
PokemonLinkgetOriginalTrainer in class PokemonLinkpublic boolean removeStatuses(StatusType... statuses)
PokemonLinkremoveStatuses in class PokemonLinkstatuses - The statuses to remove.public Nature getNature()
PokemonLinkgetNature in class PokemonLinkpublic int getExpToNextLevel()
PokemonLinkgetExpToNextLevel in class PokemonLinkpublic StatusPersist getPrimaryStatus()
PokemonLinkgetPrimaryStatus in class PokemonLinkpublic Ability getAbility()
PokemonLinkgetAbility in class PokemonLinkpublic java.util.List<Element> getType()
PokemonLinkgetType in class PokemonLinkpublic java.lang.String getForm()
PokemonLinkgetForm in class PokemonLinkpublic boolean isEgg()
PokemonLinkisEgg in class PokemonLinkpublic int getEggCycles()
PokemonLinkgetEggCycles in class PokemonLinkpublic int getPartyPosition()
PokemonLinkgetPartyPosition in class PokemonLinkpublic boolean hasOwner()
PokemonLinkhasOwner in class PokemonLinkpublic java.util.Optional<Pokerus> getPokerus()
getPokerus in class PokemonLinkpublic void adjustFriendship(int change)
PokemonLinkadjustFriendship in class PokemonLinkchange - The change in friendship, negative if it is a decrease of friendship.public PixelmonWrapper getPokemonWrapper()
PixelmonWrapper wrapped by the object.PixelmonWrapper wrapped by the object.