public class TransformPacket extends AbstractPixelmonPacket
| Modifier and Type | Field and Description |
|---|---|
int |
pixelmonID
The ID of the Pokémon to transform.
|
java.lang.String |
transformedForm
The form index of the Pokémon that will be transformed into.
|
Species |
transformedModel
The Pokémon that will be transformed into.
|
java.lang.String |
transformedParticles
The form index of the Pokémon that will be transformed into.
|
java.lang.String |
transformedTexture
The texture of the transformed Pokémon.
|
| Constructor and Description |
|---|
TransformPacket()
Empty constructor for packet registration.
|
TransformPacket(int is,
Species newPokemon,
java.lang.String newTexture,
java.lang.String newForm,
java.lang.String newParticles)
Initializes the 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
|
protected void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
handle, replypublic int pixelmonID
public Species transformedModel
public java.lang.String transformedTexture
public java.lang.String transformedForm
public java.lang.String transformedParticles
public TransformPacket()
public TransformPacket(int is,
Species newPokemon,
java.lang.String newTexture,
java.lang.String newForm,
java.lang.String newParticles)
is - The ID of the Pokémon to transform.newPokemon - The Pokémon that will be transformed into.newTexture - The texture of the transformed Pokémon.newForm - The form index of the Pokémon that will be transformed into.public void decode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacketdecode in interface PixelmonPacketdecode in class AbstractPixelmonPacketbuffer - The buffer being decodedpublic void encode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacketencode in interface PixelmonPacketencode in class AbstractPixelmonPacketbuffer - The buffer being encodedprotected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket in class AbstractPixelmonPacket