Class CustomDropsOpenPacket

java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.custom.drops.CustomDropsOpenPacket
All Implemented Interfaces:
PixelmonPacket

public class CustomDropsOpenPacket extends AbstractPixelmonPacket
Created by Jay113355 on 6/15/2020
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty 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 Type
    Method
    Description
    void
    decode(net.minecraft.network.FriendlyByteBuf buffer)
    Convert from the supplied buffer into your specific this type
    void
    encode(net.minecraft.network.FriendlyByteBuf buffer)
    Deconstruct your this 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

    • CustomDropsOpenPacket

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

      public 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 Details

    • decode

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

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

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