Class WrapperLink
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.stats.links.PokemonLink
com.pixelmonmod.pixelmon.api.pokemon.stats.links.WrapperLink
Links to a 
PixelmonWrapper object to get or update data.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadjustFriendship(int change) Changes the friendship of the Pokémon.booleanChecks if the Pokémon can gain experience and pokemonLevel up.Gets the Pokémon's Ability.Gets the battle controller for the battle the Pokémon is in.intGets the number of Egg cycles need to hatchEgg an Egg.Gets the Pokémon entity.intgetExp()Gets the Pokémon's experience.intGets the amount of experience needed for the Pokémon to pokemonLevel up.getForm()Gets the Pokémon's form name.intGets the Pokémon's friendship.Gets the Pokémon's gender.intGets the Pokémon's current hp.Gets the Pokémon's held item.intGets the Pokémon's maximum hp.intgetMaxHealth(boolean ignoreDynamax) Gets the Pokémon's moves.Gets the Pokémon's Nature.net.minecraft.network.chat.ComponentGets the Pokémon's nickname.net.minecraft.server.level.ServerPlayerGets the player who owns the Pokémon.intGets the Pokémon's pokemonLevel.Gets the ID of the Pokémon.Gets thePixelmonWrapperwrapped by the object.net.minecraft.core.BlockPosgetPos()Gets the world position of the Pokémon.Gets the non-volatile status on the Pokémon.net.minecraft.network.chat.ComponentGets the Pokémon's nickname, ignoring Illusion.getStats()Gets the numerical stats of the Pokémon.Gets the storage of the Pokémon's owner.getType()Gets the Pokémon's type.net.minecraft.world.level.LevelgetWorld()Gets the world that the Pokémon is in.booleanisEgg()Checks if the Pokémon is an Egg.booleanremoveStatuses(StatusType... statuses) Removes the specified statuses from the Pokémon.voidsendMessage(String langKey, Object... data) Sends a message to the client.voidsetExp(int experience) Sets the Pokémon's experience.voidsetHealth(int health) Sets the Pokémon's current hp.voidsetHealthDirect(int health) Directly sets the Pokémon's current hp, ignoring damage/heal processing.voidsetHeldItem(net.minecraft.world.item.ItemStack item) Sets the Pokémon's held item.voidsetLevel(int level) Sets the Pokémon's pokemonLevel.voidsetScale(float scale) Sets the model scale of the Pokémon.voidupdate(EnumUpdateType... updateTypes) Updates the Pokémon client-side.voidupdateLevelUp(PixelmonStatsData stats) Updates the Pokémon when it levels up.voidUpdates the Pokémon's stats client-side.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.stats.links.PokemonLinkgetBall, getBaseStats, getGrowth, getHeldItemStack, getSpecies, isFainted, isShiny, toString
- 
Constructor Details- 
WrapperLinkThe Pokémon to link to.
 
- 
- 
Method Details- 
getPokemon- Specified by:
- getPokemonin class- PokemonLink
 
- 
getStatsDescription copied from class:PokemonLinkGets the numerical stats of the Pokémon.- Specified by:
- getStatsin class- PokemonLink
- Returns:
- The numerical stats of the Pokémon.
 
- 
getHeldItemDescription copied from class:PokemonLinkGets the Pokémon's held item.- Specified by:
- getHeldItemin class- PokemonLink
- Returns:
- The Pokémon's held item.
 
- 
setHeldItempublic void setHeldItem(net.minecraft.world.item.ItemStack item) Description copied from class:PokemonLinkSets the Pokémon's held item.- Specified by:
- setHeldItemin class- PokemonLink
- Parameters:
- item- The Pokémon's new held item.
 
- 
getHealthpublic int getHealth()Description copied from class:PokemonLinkGets the Pokémon's current hp.- Specified by:
- getHealthin class- PokemonLink
- Returns:
- The Pokémon's current hp.
 
- 
getMaxHealthpublic int getMaxHealth()Description copied from class:PokemonLinkGets the Pokémon's maximum hp.- Specified by:
- getMaxHealthin class- PokemonLink
- Returns:
- The Pokémon's maximum hp.
 
- 
getMaxHealthpublic int getMaxHealth(boolean ignoreDynamax) - Specified by:
- getMaxHealthin class- PokemonLink
 
- 
setHealthpublic void setHealth(int health) Description copied from class:PokemonLinkSets the Pokémon's current hp.- Specified by:
- setHealthin class- PokemonLink
- Parameters:
- health- The Pokémon's current hp.
 
- 
setHealthDirectpublic void setHealthDirect(int health) Description copied from class:PokemonLinkDirectly sets the Pokémon's current hp, ignoring damage/heal processing.- Overrides:
- setHealthDirectin class- PokemonLink
- Parameters:
- health- The Pokémon's current hp.
 
- 
getPokemonLevelpublic int getPokemonLevel()Description copied from class:PokemonLinkGets the Pokémon's pokemonLevel.- Specified by:
- getPokemonLevelin class- PokemonLink
- Returns:
- The Pokémon's pokemonLevel.
 
- 
setLevelpublic void setLevel(int level) Description copied from class:PokemonLinkSets the Pokémon's pokemonLevel.- Specified by:
- setLevelin class- PokemonLink
- Parameters:
- level- The Pokémon's pokemonLevel.
 
- 
getExppublic int getExp()Description copied from class:PokemonLinkGets the Pokémon's experience.- Specified by:
- getExpin class- PokemonLink
- Returns:
- The Pokémon's experience.
 
- 
setExppublic void setExp(int experience) Description copied from class:PokemonLinkSets the Pokémon's experience.- Specified by:
- setExpin class- PokemonLink
- Parameters:
- experience- The Pokémon's experience.
 
- 
getFriendshippublic int getFriendship()Description copied from class:PokemonLinkGets the Pokémon's friendship.- Specified by:
- getFriendshipin class- PokemonLink
- Returns:
- The Pokémon's friendship.
 
- 
doesLevelpublic boolean doesLevel()Description copied from class:PokemonLinkChecks if the Pokémon can gain experience and pokemonLevel up.- Specified by:
- doesLevelin class- PokemonLink
- Returns:
- Whether the Pokémon can gain experience and pokemonLevel up.
 
- 
getPlayerOwnerpublic net.minecraft.server.level.ServerPlayer getPlayerOwner()Description copied from class:PokemonLinkGets the player who owns the Pokémon.- Specified by:
- getPlayerOwnerin class- PokemonLink
- Returns:
- The player who owns the Pokémon, or null if no player owns the Pokémon.
 
- 
getRealNicknamepublic net.minecraft.network.chat.Component getRealNickname()Description copied from class:PokemonLinkGets the Pokémon's nickname, ignoring Illusion.- Overrides:
- getRealNicknamein class- PokemonLink
- Returns:
- The Pokémon's nickname;
 
- 
getBattleControllerDescription copied from class:PokemonLinkGets the battle controller for the battle the Pokémon is in.- Specified by:
- getBattleControllerin class- PokemonLink
- Returns:
- The battle controller for the battle the Pokémon is in, or null if the Pokémon is not in a battle.
 
- 
getMovesetDescription copied from class:PokemonLinkGets the Pokémon's moves.- Specified by:
- getMovesetin class- PokemonLink
- Returns:
- The Pokémon's moves.
 
- 
getPokemonUUIDDescription copied from class:PokemonLinkGets the ID of the Pokémon.- Specified by:
- getPokemonUUIDin class- PokemonLink
- Returns:
- The ID of the Pokémon.
 
- 
getEntityDescription copied from class:PokemonLinkGets the Pokémon entity. Sends it out if it isn't already out.- Specified by:
- getEntityin class- PokemonLink
- Returns:
- The Pokémon entity.
 
- 
setScalepublic void setScale(float scale) Description copied from class:PokemonLinkSets the model scale of the Pokémon.- Specified by:
- setScalein class- PokemonLink
- Parameters:
- scale- The model scale of the Pokémon.
 
- 
getWorldpublic net.minecraft.world.level.Level getWorld()Description copied from class:PokemonLinkGets the world that the Pokémon is in.- Specified by:
- getWorldin class- PokemonLink
- Returns:
- The world that the Pokémon is in.
 
- 
getGenderDescription copied from class:PokemonLinkGets the Pokémon's gender.- Specified by:
- getGenderin class- PokemonLink
- Returns:
- The Pokémon's gender.
 
- 
getPospublic net.minecraft.core.BlockPos getPos()Description copied from class:PokemonLinkGets the world position of the Pokémon.- Specified by:
- getPosin class- PokemonLink
- Returns:
- The world position of the Pokémon.
 
- 
getStorageDescription copied from class:PokemonLinkGets the storage of the Pokémon's owner.- Specified by:
- getStoragein class- PokemonLink
- Returns:
- The storage of the Pokémon's owner.
 
- 
updateDescription copied from class:PokemonLinkUpdates the Pokémon client-side.- Specified by:
- updatein class- PokemonLink
- Parameters:
- updateTypes- The types of data to update.
 
- 
updateStatspublic void updateStats()Description copied from class:PokemonLinkUpdates the Pokémon's stats client-side.- Specified by:
- updateStatsin class- PokemonLink
 
- 
updateLevelUpDescription copied from class:PokemonLinkUpdates the Pokémon when it levels up.- Specified by:
- updateLevelUpin class- PokemonLink
- Parameters:
- stats- Data about the Pokémon stats after leveling up.
 
- 
sendMessageDescription copied from class:PokemonLinkSends a message to the client.- Specified by:
- sendMessagein class- PokemonLink
- Parameters:
- langKey- The lang key for the message.
- data- Additional arguments to pass into the lang string.
 
- 
getNicknamepublic net.minecraft.network.chat.Component getNickname()Description copied from class:PokemonLinkGets the Pokémon's nickname.- Specified by:
- getNicknamein class- PokemonLink
- Returns:
- The Pokémon's nickname.
 
- 
removeStatusesDescription copied from class:PokemonLinkRemoves the specified statuses from the Pokémon.- Specified by:
- removeStatusesin class- PokemonLink
- Parameters:
- statuses- The statuses to remove.
- Returns:
- Whether a status was removed.
 
- 
getNatureDescription copied from class:PokemonLinkGets the Pokémon's Nature.- Specified by:
- getNaturein class- PokemonLink
- Returns:
- The Pokémon's Nature.
 
- 
getExpToNextLevelpublic int getExpToNextLevel()Description copied from class:PokemonLinkGets the amount of experience needed for the Pokémon to pokemonLevel up.- Specified by:
- getExpToNextLevelin class- PokemonLink
- Returns:
- The amount of experience needed for the Pokémon to pokemonLevel up.
 
- 
getPrimaryStatusDescription copied from class:PokemonLinkGets the non-volatile status on the Pokémon.- Specified by:
- getPrimaryStatusin class- PokemonLink
- Returns:
- The non-volatile status on the Pokémon.
 
- 
getAbilityDescription copied from class:PokemonLinkGets the Pokémon's Ability.- Specified by:
- getAbilityin class- PokemonLink
- Returns:
- The Pokémon's Ability.
 
- 
getTypeDescription copied from class:PokemonLinkGets the Pokémon's type.- Specified by:
- getTypein class- PokemonLink
- Returns:
- A list of the Pokémon's types.
 
- 
getFormDescription copied from class:PokemonLinkGets the Pokémon's form name.- Specified by:
- getFormin class- PokemonLink
- Returns:
- The Pokémon's form name.
 
- 
isEggpublic boolean isEgg()Description copied from class:PokemonLinkChecks if the Pokémon is an Egg.- Specified by:
- isEggin class- PokemonLink
- Returns:
- Whether the Pokémon is an Egg.
 
- 
getEggCyclespublic int getEggCycles()Description copied from class:PokemonLinkGets the number of Egg cycles need to hatchEgg an Egg.- Specified by:
- getEggCyclesin class- PokemonLink
- Returns:
- The number of Egg cycles need to hatchEgg an Egg.
 
- 
getPokerus- Specified by:
- getPokerusin class- PokemonLink
 
- 
adjustFriendshippublic void adjustFriendship(int change) Description copied from class:PokemonLinkChanges the friendship of the Pokémon. Decreases in trust have a negative argument- Specified by:
- adjustFriendshipin class- PokemonLink
- Parameters:
- change- The change in friendship, negative if it is a decrease of friendship.
 
- 
getPokemonWrapperGets thePixelmonWrapperwrapped by the object.- Returns:
- The PixelmonWrapperwrapped by the object.
 
 
-