Class CustomDropsOpenPacket
java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.custom.drops.CustomDropsOpenPacket
- All Implemented Interfaces:
PixelmonPacket
Created by Jay113355 on 6/15/2020
-
Constructor Summary
ConstructorDescriptionEmpty constructor for packet registration.CustomDropsOpenPacket
(String mnemonic, boolean escapeCloses, net.minecraft.network.chat.Component title, List<net.minecraft.world.item.ItemStack> items, net.minecraft.network.chat.Component... buttons) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(net.minecraft.network.FriendlyByteBuf buffer) Convert from the supplied buffer into your specific this typevoid
encode
(net.minecraft.network.FriendlyByteBuf buffer) Deconstruct your this into the supplied byte bufferprotected void
handlePacket
(net.minecraftforge.event.network.CustomPayloadEvent.Context context) Methods inherited from class com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
handle, reply
-
Constructor Details
-
CustomDropsOpenPacket
public CustomDropsOpenPacket()Empty constructor for packet registration. -
CustomDropsOpenPacket
-
-
Method Details
-
decode
public void decode(net.minecraft.network.FriendlyByteBuf buffer) Convert from the supplied buffer into your specific this type- Specified by:
decode
in interfacePixelmonPacket
- Overrides:
decode
in classAbstractPixelmonPacket
- Parameters:
buffer
-
-
encode
public void encode(net.minecraft.network.FriendlyByteBuf buffer) Deconstruct your this into the supplied byte buffer- Specified by:
encode
in interfacePixelmonPacket
- Overrides:
encode
in classAbstractPixelmonPacket
- Parameters:
buffer
-
-
handlePacket
protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) - Specified by:
handlePacket
in classAbstractPixelmonPacket
-