Class PixelmonStatsData

java.lang.Object
com.pixelmonmod.pixelmon.comm.PixelmonStatsData

public class PixelmonStatsData extends Object
A container to send stats to the client with.
  • 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

      public PixelmonStatsData(PermanentStats permanentStats)
  • Method Details

    • createPacket

      public static PixelmonStatsData createPacket(PokemonLink pixelmon)
      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)