Package com.pixelmonmod.pixelmon.comm
Class PixelmonStatsData
java.lang.Object
com.pixelmonmod.pixelmon.comm.PixelmonStatsData
A container to send stats to the client with.
-
Field Summary
Modifier and TypeFieldDescriptionint
int
int
int
int
int
-
Constructor Summary
ConstructorDescriptionPixelmonStatsData
(PermanentStats permanentStats) PixelmonStatsData
(net.minecraft.nbt.CompoundTag nbt) -
Method Summary
Modifier and TypeMethodDescriptionstatic PixelmonStatsData
createPacket
(PokemonLink pixelmon) Creates a stats container with a Pokémon.void
readPacketData
(io.netty.buffer.ByteBuf data) void
writePacketData
(io.netty.buffer.ByteBuf buffer)
-
Field Details
-
HP
public int HP -
Speed
public int Speed -
Attack
public int Attack -
Defense
public int Defense -
SpecialAttack
public int SpecialAttack -
SpecialDefense
public int SpecialDefense
-
-
Constructor Details
-
PixelmonStatsData
public PixelmonStatsData() -
PixelmonStatsData
public PixelmonStatsData(net.minecraft.nbt.CompoundTag nbt) -
PixelmonStatsData
-
-
Method Details
-
createPacket
Creates a stats container with a Pokémon.- Parameters:
pixelmon
- The Pokémon to create a stats container for.- Returns:
- A stats container with the specified Pokémon's stats.
-
writePacketData
public void writePacketData(io.netty.buffer.ByteBuf buffer) -
readPacketData
public void readPacketData(io.netty.buffer.ByteBuf data)
-