public class SetNPCEditDataPacket extends AbstractPixelmonPacket
Constructor and Description |
---|
SetNPCEditDataPacket() |
SetNPCEditDataPacket(SetTrainerData data) |
SetNPCEditDataPacket(java.lang.String name,
java.util.ArrayList<java.lang.String> chatPages) |
SetNPCEditDataPacket(java.lang.String name,
java.util.ArrayList<java.lang.String> chatPages,
EnumNPCType type) |
SetNPCEditDataPacket(java.lang.String json,
java.lang.String name,
java.lang.String texture) |
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, reply
public SetNPCEditDataPacket()
public SetNPCEditDataPacket(SetTrainerData data)
public SetNPCEditDataPacket(java.lang.String name, java.util.ArrayList<java.lang.String> chatPages)
public SetNPCEditDataPacket(java.lang.String name, java.util.ArrayList<java.lang.String> chatPages, EnumNPCType type)
public SetNPCEditDataPacket(java.lang.String json, java.lang.String name, java.lang.String texture)
public void encode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacket
encode
in interface PixelmonPacket
encode
in class AbstractPixelmonPacket
buffer
- The buffer being encodedpublic void decode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacket
decode
in interface PixelmonPacket
decode
in class AbstractPixelmonPacket
buffer
- The buffer being decodedprotected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket
in class AbstractPixelmonPacket