Class WrapperPlayServerPing

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerPing

public class WrapperPlayServerPing extends AbstractPacket
Send from server to client. The client should respond with the same ID using WrapperPlayClientPong. Currently not used on the Notchian server.
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
  • Constructor Details

    • WrapperPlayServerPing

      public WrapperPlayServerPing()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerPing

      public WrapperPlayServerPing(com.comphenix.protocol.events.PacketContainer packet)
  • Method Details

    • getId

      public int getId()
      Retrieves the id of this ping.
      Returns:
      'id'
    • setId

      public void setId(int value)
      Sets the id of this ping.
      Parameters:
      value - New value for field 'id'