public abstract class PokemonLink
extends java.lang.Object
Constructor and Description |
---|
PokemonLink() |
Modifier and Type | Method and Description |
---|---|
abstract void |
adjustFriendship(int change)
Changes the friendship of the Pokémon.
|
abstract boolean |
doesLevel()
Checks if the Pokémon can gain experience and pokemonLevel up.
|
abstract Ability |
getAbility()
Gets the Pokémon's Ability.
|
PokeBall |
getBall() |
Stats |
getBaseStats()
Gets the base stats of the Pokémon.
|
abstract BattleController |
getBattleController()
Gets the battle controller for the battle the Pokémon is in.
|
abstract int |
getEggCycles()
Gets the number of Egg cycles need to hatchEgg an Egg.
|
abstract PixelmonEntity |
getEntity()
Gets the Pokémon entity.
|
abstract int |
getExp()
Gets the Pokémon's experience.
|
abstract int |
getExpToNextLevel()
Gets the amount of experience needed for the Pokémon to pokemonLevel up.
|
abstract java.lang.String |
getForm()
Gets the Pokémon's form name.
|
abstract int |
getFriendship()
Gets the Pokémon's friendship.
|
abstract Gender |
getGender()
Gets the Pokémon's gender.
|
EnumGrowth |
getGrowth() |
abstract int |
getHealth()
Gets the Pokémon's current hp.
|
abstract HeldItem |
getHeldItem()
Gets the Pokémon's held item.
|
net.minecraft.item.ItemStack |
getHeldItemStack() |
abstract int |
getMaxHealth()
Gets the Pokémon's maximum hp.
|
abstract int |
getMaxHealth(boolean ignoreDynamax) |
abstract Moveset |
getMoveset()
Gets the Pokémon's moves.
|
abstract Nature |
getNature()
Gets the Pokémon's Nature.
|
abstract net.minecraft.util.text.ITextComponent |
getNickname()
Gets the Pokémon's nickname.
|
abstract java.lang.String |
getOriginalTrainer()
Gets the name of the Pokémon's original Trainer.
|
abstract int |
getPartyPosition()
Gets the position of the Pokémon in the owner's party.
|
abstract net.minecraft.entity.player.ServerPlayerEntity |
getPlayerOwner()
Gets the player who owns the Pokémon.
|
abstract Pokemon |
getPokemon() |
abstract int |
getPokemonLevel()
Gets the Pokémon's pokemonLevel.
|
abstract java.util.UUID |
getPokemonUUID()
Gets the ID of the Pokémon.
|
abstract java.util.Optional<Pokerus> |
getPokerus() |
abstract net.minecraft.util.math.BlockPos |
getPos()
Gets the world position of the Pokémon.
|
abstract 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.
|
Species |
getSpecies()
Gets the species of the Pokémon.
|
abstract PermanentStats |
getStats()
Gets the numerical stats of the Pokémon.
|
abstract PartyStorage |
getStorage()
Gets the storage of the Pokémon's owner.
|
abstract java.util.List<Element> |
getType()
Gets the Pokémon's type.
|
abstract net.minecraft.world.World |
getWorld()
Gets the world that the Pokémon is in.
|
abstract boolean |
hasOwner()
Checks if the Pokémon has an owner.
|
abstract boolean |
isEgg()
Checks if the Pokémon is an Egg.
|
boolean |
isFainted()
Checks if the Pokémon is fainted.
|
boolean |
isShiny() |
abstract boolean |
removeStatuses(StatusType... statuses)
Removes the specified statuses from the Pokémon.
|
abstract void |
sendMessage(java.lang.String langKey,
java.lang.Object... data)
Sends a message to the client.
|
abstract void |
setExp(int experience)
Sets the Pokémon's experience.
|
abstract 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.
|
abstract void |
setHeldItem(net.minecraft.item.ItemStack item)
Sets the Pokémon's held item.
|
abstract void |
setLevel(int level)
Sets the Pokémon's pokemonLevel.
|
abstract void |
setScale(float scale)
Sets the model scale of the Pokémon.
|
java.lang.String |
toString() |
abstract void |
update(EnumUpdateType... updateTypes)
Updates the Pokémon client-side.
|
abstract void |
updateLevelUp(PixelmonStatsData stats)
Updates the Pokémon when it levels up.
|
abstract void |
updateStats()
Updates the Pokémon's stats client-side.
|
public abstract Pokemon getPokemon()
public Stats getBaseStats()
public abstract PermanentStats getStats()
public abstract HeldItem getHeldItem()
public abstract void setHeldItem(net.minecraft.item.ItemStack item)
item
- The Pokémon's new held item.public abstract int getHealth()
public abstract int getMaxHealth()
public abstract int getMaxHealth(boolean ignoreDynamax)
public abstract void setHealth(int health)
health
- The Pokémon's current hp.public void setHealthDirect(int health)
health
- The Pokémon's current hp.public abstract int getPokemonLevel()
public abstract void setLevel(int level)
level
- The Pokémon's pokemonLevel.public abstract int getExp()
public abstract void setExp(int experience)
experience
- The Pokémon's experience.public abstract int getFriendship()
public abstract boolean doesLevel()
public net.minecraft.util.text.ITextComponent getRealNickname()
public abstract net.minecraft.entity.player.ServerPlayerEntity getPlayerOwner()
public abstract BattleController getBattleController()
public abstract Moveset getMoveset()
public abstract java.util.UUID getPokemonUUID()
public abstract PixelmonEntity getEntity()
public abstract void setScale(float scale)
scale
- The model scale of the Pokémon.public abstract net.minecraft.world.World getWorld()
public abstract Gender getGender()
public abstract net.minecraft.util.math.BlockPos getPos()
public abstract PartyStorage getStorage()
public abstract void update(EnumUpdateType... updateTypes)
updateTypes
- The types of data to update.public abstract void updateStats()
public abstract void updateLevelUp(PixelmonStatsData stats)
stats
- Data about the Pokémon stats after leveling up.public abstract void sendMessage(java.lang.String langKey, java.lang.Object... data)
langKey
- The lang key for the message.data
- Additional arguments to pass into the lang string.public abstract net.minecraft.util.text.ITextComponent getNickname()
public abstract java.lang.String getOriginalTrainer()
public abstract boolean removeStatuses(StatusType... statuses)
statuses
- The statuses to remove.public abstract Nature getNature()
public abstract int getExpToNextLevel()
public abstract StatusPersist getPrimaryStatus()
public abstract Ability getAbility()
public abstract java.util.List<Element> getType()
public abstract java.lang.String getForm()
public boolean isFainted()
public boolean isShiny()
public abstract boolean isEgg()
public abstract int getEggCycles()
public EnumGrowth getGrowth()
public PokeBall getBall()
public abstract int getPartyPosition()
public net.minecraft.item.ItemStack getHeldItemStack()
public abstract boolean hasOwner()
public abstract java.util.Optional<Pokerus> getPokerus()
public Species getSpecies()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void adjustFriendship(int change)
change
- The change in friendship, negative if it is a decrease of friendship.