public abstract class PacketCodec extends PacketBase
CodecField.| Constructor and Description |
|---|
PacketCodec() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(com.google.common.io.ByteArrayDataInput input)
Decode for this packet.
|
void |
encode(com.google.common.io.ByteArrayDataOutput output)
Encode this packet.
|
protected static evilcraft.network.PacketCodec.ICodecAction |
getAction(java.lang.Class<?> clazz) |
actionClient, actionServerprotected static evilcraft.network.PacketCodec.ICodecAction getAction(java.lang.Class<?> clazz)
public void encode(com.google.common.io.ByteArrayDataOutput output)
PacketBaseencode in class PacketBaseoutput - The byte array to encode to.public void decode(com.google.common.io.ByteArrayDataInput input)
PacketBasedecode in class PacketBaseinput - The byte array to decode from.