Class BadgeCaseActionPacket
java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.badgecase.BadgeCaseActionPacket
- All Implemented Interfaces:
PixelmonPacket
Created by Jay113355 on 8/21/2020
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBadgeCaseActionPacket(int index1, boolean custom) BadgeCaseActionPacket(int index1, int index2, boolean custom) BadgeCaseActionPacket(BadgeCaseActionPacket.Action action, boolean custom) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(net.minecraft.network.FriendlyByteBuf buf) Convert from the supplied buffer into your specific this typevoidencode(net.minecraft.network.FriendlyByteBuf buf) Deconstruct your this into the supplied byte bufferprotected voidhandlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) Methods inherited from class com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
handle, reply
-
Constructor Details
-
BadgeCaseActionPacket
public BadgeCaseActionPacket() -
BadgeCaseActionPacket
-
BadgeCaseActionPacket
public BadgeCaseActionPacket(int index1, boolean custom) -
BadgeCaseActionPacket
public BadgeCaseActionPacket(int index1, int index2, boolean custom)
-
-
Method Details
-
decode
public void decode(net.minecraft.network.FriendlyByteBuf buf) Convert from the supplied buffer into your specific this type- Specified by:
decodein interfacePixelmonPacket- Overrides:
decodein classAbstractPixelmonPacket- Parameters:
buf- The buffer being decoded
-
encode
public void encode(net.minecraft.network.FriendlyByteBuf buf) Deconstruct your this into the supplied byte buffer- Specified by:
encodein interfacePixelmonPacket- Overrides:
encodein classAbstractPixelmonPacket- Parameters:
buf- The buffer being encoded
-
handlePacket
protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) - Specified by:
handlePacketin classAbstractPixelmonPacket
-