Class SelectMovePacket

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

public class SelectMovePacket extends AbstractPixelmonPacket
Created by Jay113355 on 5/17/2019.
  • Constructor Details

    • SelectMovePacket

      public SelectMovePacket()
    • SelectMovePacket

      public SelectMovePacket(int mode, UUID pokemon, int moveIndex)
  • 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 interface PixelmonPacket
      Overrides:
      decode in class AbstractPixelmonPacket
      Parameters:
      buf -
    • encode

      public void encode(net.minecraft.network.FriendlyByteBuf buf)
      Deconstruct your this 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