Class WrapperPlayServerStatistic

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

public class WrapperPlayServerStatistic extends AbstractPacket
Sent as a response to @link{WrapperPlayClientClientCommand}. Will only send the changed values if previously requested.
  • Field Details

    • TYPE

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

    • WrapperPlayServerStatistic

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

      public WrapperPlayServerStatistic(com.comphenix.protocol.events.PacketContainer packet)
      Constructors a new wrapper for the specified packet
      Parameters:
      packet - the packet to wrap
  • Method Details

    • getStats

      public Map<com.comphenix.protocol.wrappers.WrappedStatistic,Integer> getStats()
      Retrieves the value of field 'stats'
      Returns:
      'stats'
    • setStats

      public void setStats(Map<com.comphenix.protocol.wrappers.WrappedStatistic,Integer> value)
      Sets the value of field 'stats'
      Parameters:
      value - New value for field 'stats'