public class PixelmonClientData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
blockCapture
Whether this Pokémon is blocked from capture by BonusStats.
|
BossTier |
bossTier
The index of the boss mode of the Pokémon.
|
int |
dynamax
Dynamax/Mega state of the Pokémon.
|
float |
expFraction
The fraction of experience that the Pokémon has gained in its pokemonLevel.
|
java.lang.String |
form
The Pokémon's form.
|
short |
gender
The index of the Pokémon's gender.
|
boolean |
gmaxFactor
Whether the Pokémon has the Gigantamax Factor.
|
com.google.common.util.concurrent.AtomicDouble |
health
The current hp of the Pokémon.
|
HeldItem |
heldItem
The Pokémon's held item.
|
boolean |
inIllusion
Whether this Pokémon is in disguise.
|
boolean |
isSwitchingIn
Whether the Pokémon is currently switching in for a Pokémon.
|
boolean |
isSwitchingOut
Whether the Pokémon is currently switching out for another Pokémon.
|
int |
level
The Pokémon's pokemonLevel.
|
boolean |
lostShield |
int |
maxHealth
The maximum hp of the Pokémon.
|
int |
maxShields
Number of shields in raids.
|
boolean |
mega |
Moveset |
moveset
The Pokémon's moveset.
|
java.lang.String |
nickname
The Pokémon's nickname.
|
java.lang.String |
palette
Whether the Pokémon is Shiny.
|
java.util.UUID |
pokemonUUID
The UUID of the Pokémon.
|
int |
position
The position of the Pokémon.
|
int |
shields |
Species |
species
The Pokémon's species.
|
int |
status
The index of the Pokémon non-volatile status.
|
int |
xPos
The x coordinate of the Pokémon on the GUI.
|
Constructor and Description |
---|
PixelmonClientData()
Initializes an empty Pokémon.
|
PixelmonClientData(PixelmonWrapper pixelmon)
Initializes a Pokémon.
|
PixelmonClientData(Pokemon poke)
Initializes a Pokémon.
|
Modifier and Type | Method and Description |
---|---|
static PixelmonClientData[] |
convertToGUI(java.util.List<PixelmonWrapper> pokemon)
Converts a PixelmonWrapper list into a GUI-friendly version.
|
void |
decodeFrom(net.minecraft.network.PacketBuffer buffer)
Decodes the Pokémon's info from a data buffer.
|
void |
encodeInto(net.minecraft.network.PacketBuffer buffer)
Encodes the Pokémon's info into a data buffer.
|
boolean |
equals(java.lang.Object o) |
Stats |
getBaseStats() |
int |
getDexNumber()
Gets the Pokédex number of the Pokémon.
|
java.lang.String |
getDisplayName()
Returns the Pokémon's nickname.
|
Gender |
getGender() |
java.awt.Color |
getHealthColor() |
float[] |
getStatusTexturePos() |
int |
hashCode() |
void |
set(Pokemon poke)
Sets the Pokémon's data.
|
public java.util.UUID pokemonUUID
public Species species
public java.lang.String form
public short gender
public com.google.common.util.concurrent.AtomicDouble health
public int maxHealth
public int dynamax
public boolean mega
public java.lang.String nickname
public int status
public int level
public BossTier bossTier
public java.lang.String palette
public boolean gmaxFactor
public int position
public Moveset moveset
public HeldItem heldItem
public float expFraction
public int xPos
public boolean isSwitchingOut
public boolean isSwitchingIn
public boolean blockCapture
public boolean inIllusion
public int maxShields
public int shields
public boolean lostShield
public PixelmonClientData()
public PixelmonClientData(Pokemon poke)
poke
- The data of the Pokémon to initialize.public PixelmonClientData(PixelmonWrapper pixelmon)
pixelmon
- The Pokémon to initialize.public void set(Pokemon poke)
poke
- The data to set the Pokémon to.public static PixelmonClientData[] convertToGUI(java.util.List<PixelmonWrapper> pokemon)
pokemon
- The list of Pokémon to convert.public void decodeFrom(net.minecraft.network.PacketBuffer buffer)
buffer
- The data buffer to read from.public void encodeInto(net.minecraft.network.PacketBuffer buffer)
buffer
- The data buffer to write to.public java.lang.String getDisplayName()
public int getDexNumber()
public Stats getBaseStats()
public Gender getGender()
public float[] getStatusTexturePos()
public java.awt.Color getHealthColor()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object