Class CreateNPCPacket
java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.npc.CreateNPCPacket
- All Implemented Interfaces:
PixelmonPacket
Created by Jay113355 on 3/23/2020
-
Constructor Summary
ConstructorDescriptionEmpty constructor for packet registration.CreateNPCPacket
(EnumNPCType type, net.minecraft.core.BlockPos pos, float rotation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(net.minecraft.network.FriendlyByteBuf buf) Convert from the supplied buffer into your specific this typevoid
encode
(net.minecraft.network.FriendlyByteBuf buf) 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
-
CreateNPCPacket
public CreateNPCPacket()Empty constructor for packet registration. -
CreateNPCPacket
-
-
Method Details
-
decode
public void decode(net.minecraft.network.FriendlyByteBuf buf) Convert from the supplied buffer into your specific this type- Specified by:
decode
in interfacePixelmonPacket
- Overrides:
decode
in classAbstractPixelmonPacket
- Parameters:
buf
-
-
encode
public void encode(net.minecraft.network.FriendlyByteBuf buf) Deconstruct your this into the supplied byte buffer- Specified by:
encode
in interfacePixelmonPacket
- Overrides:
encode
in classAbstractPixelmonPacket
- Parameters:
buf
-
-
handlePacket
protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) - Specified by:
handlePacket
in classAbstractPixelmonPacket
-