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, toString
public WrapperLink(PixelmonWrapper pixelmon)
public Pokemon getPokemon()
getPokemon
in class PokemonLink
public PermanentStats getStats()
PokemonLink
getStats
in class PokemonLink
public HeldItem getHeldItem()
PokemonLink
getHeldItem
in class PokemonLink
public void setHeldItem(net.minecraft.item.ItemStack item)
PokemonLink
setHeldItem
in class PokemonLink
item
- The Pokémon's new held item.public int getHealth()
PokemonLink
getHealth
in class PokemonLink
public int getMaxHealth()
PokemonLink
getMaxHealth
in class PokemonLink
public int getMaxHealth(boolean ignoreDynamax)
getMaxHealth
in class PokemonLink
public void setHealth(int health)
PokemonLink
setHealth
in class PokemonLink
health
- The Pokémon's current hp.public void setHealthDirect(int health)
PokemonLink
setHealthDirect
in class PokemonLink
health
- The Pokémon's current hp.public int getPokemonLevel()
PokemonLink
getPokemonLevel
in class PokemonLink
public void setLevel(int level)
PokemonLink
setLevel
in class PokemonLink
level
- The Pokémon's pokemonLevel.public int getExp()
PokemonLink
getExp
in class PokemonLink
public void setExp(int experience)
PokemonLink
setExp
in class PokemonLink
experience
- The Pokémon's experience.public int getFriendship()
PokemonLink
getFriendship
in class PokemonLink
public boolean doesLevel()
PokemonLink
doesLevel
in class PokemonLink
public net.minecraft.entity.player.ServerPlayerEntity getPlayerOwner()
PokemonLink
getPlayerOwner
in class PokemonLink
public net.minecraft.util.text.ITextComponent getRealNickname()
PokemonLink
getRealNickname
in class PokemonLink
public BattleController getBattleController()
PokemonLink
getBattleController
in class PokemonLink
public Moveset getMoveset()
PokemonLink
getMoveset
in class PokemonLink
public java.util.UUID getPokemonUUID()
PokemonLink
getPokemonUUID
in class PokemonLink
public PixelmonEntity getEntity()
PokemonLink
getEntity
in class PokemonLink
public void setScale(float scale)
PokemonLink
setScale
in class PokemonLink
scale
- The model scale of the Pokémon.public net.minecraft.world.World getWorld()
PokemonLink
getWorld
in class PokemonLink
public Gender getGender()
PokemonLink
getGender
in class PokemonLink
public net.minecraft.util.math.BlockPos getPos()
PokemonLink
getPos
in class PokemonLink
public PartyStorage getStorage()
PokemonLink
getStorage
in class PokemonLink
public void update(EnumUpdateType... updateTypes)
PokemonLink
update
in class PokemonLink
updateTypes
- The types of data to update.public void updateStats()
PokemonLink
updateStats
in class PokemonLink
public void updateLevelUp(PixelmonStatsData stats)
PokemonLink
updateLevelUp
in class PokemonLink
stats
- Data about the Pokémon stats after leveling up.public void sendMessage(java.lang.String langKey, java.lang.Object... data)
PokemonLink
sendMessage
in class PokemonLink
langKey
- The lang key for the message.data
- Additional arguments to pass into the lang string.public net.minecraft.util.text.ITextComponent getNickname()
PokemonLink
getNickname
in class PokemonLink
public java.lang.String getOriginalTrainer()
PokemonLink
getOriginalTrainer
in class PokemonLink
public boolean removeStatuses(StatusType... statuses)
PokemonLink
removeStatuses
in class PokemonLink
statuses
- The statuses to remove.public Nature getNature()
PokemonLink
getNature
in class PokemonLink
public int getExpToNextLevel()
PokemonLink
getExpToNextLevel
in class PokemonLink
public StatusPersist getPrimaryStatus()
PokemonLink
getPrimaryStatus
in class PokemonLink
public Ability getAbility()
PokemonLink
getAbility
in class PokemonLink
public java.util.List<Element> getType()
PokemonLink
getType
in class PokemonLink
public java.lang.String getForm()
PokemonLink
getForm
in class PokemonLink
public boolean isEgg()
PokemonLink
isEgg
in class PokemonLink
public int getEggCycles()
PokemonLink
getEggCycles
in class PokemonLink
public int getPartyPosition()
PokemonLink
getPartyPosition
in class PokemonLink
public boolean hasOwner()
PokemonLink
hasOwner
in class PokemonLink
public java.util.Optional<Pokerus> getPokerus()
getPokerus
in class PokemonLink
public void adjustFriendship(int change)
PokemonLink
adjustFriendship
in class PokemonLink
change
- 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.