Class GSONPacket

java.lang.Object
dev.forbit.server.abstracts.Packet
dev.forbit.server.networks.gson.GSONPacket
All Implemented Interfaces:
PacketInterface
Direct Known Subclasses:
GsonConnectionPacket, GsonPingPacket

public abstract class GSONPacket extends Packet
  • Constructor Details

    • GSONPacket

      public GSONPacket()
  • Method Details

    • fillBuffer

      public void fillBuffer(GMLOutputBuffer buffer)
      Description copied from class: Packet
      Fill the buffer with information you want to send to the client
      Specified by:
      fillBuffer in class Packet
      Parameters:
      buffer - the buffer with the header already included.
    • loadBuffer

      public void loadBuffer(GMLInputBuffer buffer)
      Description copied from class: Packet
      Load information from the input buffer into the class to use
      Specified by:
      loadBuffer in class Packet
      Parameters:
      buffer - the input (header is already read.)