Class DeleteNPCPacket

java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.npc.DeleteNPCPacket
All Implemented Interfaces:
PixelmonPacket

public class DeleteNPCPacket extends AbstractPixelmonPacket
Created by Jay113355 on 3/24/2020
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor for packet registration.
    DeleteNPCPacket(int entityId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(net.minecraft.network.FriendlyByteBuf buf)
    Convert from the supplied buffer into your specific message type
    void
    encode(net.minecraft.network.FriendlyByteBuf buf)
    Deconstruct your message into the supplied byte buffer
    protected void
    handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context)
     

    Methods inherited from class com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket

    handle, reply

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DeleteNPCPacket

      public DeleteNPCPacket()
      Empty constructor for packet registration.
    • DeleteNPCPacket

      public DeleteNPCPacket(int entityId)
  • Method Details

    • decode

      public void decode(net.minecraft.network.FriendlyByteBuf buf)
      Convert from the supplied buffer into your specific message type
      Specified by:
      decode in interface PixelmonPacket
      Overrides:
      decode in class AbstractPixelmonPacket
      Parameters:
      buf -
    • encode

      public void encode(net.minecraft.network.FriendlyByteBuf buf)
      Deconstruct your message into the supplied byte buffer
      Specified by:
      encode in interface PixelmonPacket
      Overrides:
      encode in class AbstractPixelmonPacket
      Parameters:
      buf -
    • handlePacket

      protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context)
      Specified by:
      handlePacket in class AbstractPixelmonPacket