public abstract class PokemonListPacket extends AbstractPixelmonPacket
Modifier and Type | Field and Description |
---|---|
PokemonBase[] |
pokemonList |
Constructor and Description |
---|
PokemonListPacket() |
PokemonListPacket(PokemonBase[] pokemon)
Initializes a Pokémon list packet.
|
PokemonListPacket(Species... pokemon)
Initializes a Pokémon list packet.
|
PokemonListPacket(Species[] pokemon,
java.lang.String[] forms)
Initializes a Pokémon list packet.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(net.minecraft.network.PacketBuffer buffer)
Decodes the information from the buffer to the packet instance
|
void |
encode(net.minecraft.network.PacketBuffer buffer)
Encodes the buffer with the packet information
|
handle, handlePacket, reply
public PokemonBase[] pokemonList
public PokemonListPacket()
public PokemonListPacket(Species... pokemon)
pokemon
- The Pokémon in the list.public PokemonListPacket(Species[] pokemon, java.lang.String[] forms)
pokemon
- The Pokémon in the list.forms
- The forms of the Pokémon in the list.public PokemonListPacket(PokemonBase[] pokemon)
pokemon
- The Pokémon in the list.public void decode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacket
decode
in interface PixelmonPacket
decode
in class AbstractPixelmonPacket
buffer
- The buffer being decodedpublic void encode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacket
encode
in interface PixelmonPacket
encode
in class AbstractPixelmonPacket
buffer
- The buffer being encoded