public class ReturnBagItemsPacket extends AbstractPixelmonPacket
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ItemData> |
itemData |
Constructor and Description |
---|
ReturnBagItemsPacket() |
ReturnBagItemsPacket(BagSection section,
java.util.List<ItemData> itemData) |
ReturnBagItemsPacket(BagSection section,
java.util.List<ItemData> itemData,
boolean sync) |
ReturnBagItemsPacket(boolean sync) |
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
protected java.util.List<ItemData> itemData
public ReturnBagItemsPacket()
public ReturnBagItemsPacket(boolean sync)
public ReturnBagItemsPacket(BagSection section, java.util.List<ItemData> itemData)
public ReturnBagItemsPacket(BagSection section, java.util.List<ItemData> itemData, boolean sync)
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