Class WrapperPlayServerPlayerInfo

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

public class WrapperPlayServerPlayerInfo extends AbstractPacket
Send by server to client to add players to player list or to update information. Use WrapperPlayServerPlayerInfoRemove to remove player info. is no longer supported.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Set<com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction>
    Set of all actions that should be used to spawn a new player.
    static final com.comphenix.protocol.PacketType
    The packet type that is wrapped by this wrapper.

    Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    handle
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new wrapper and initialize it with a packet handle with default values
    WrapperPlayServerPlayerInfo(com.comphenix.protocol.events.PacketContainer packet)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction>
    Gets a set of action that determines the fields of the PlayerInfoData that will be updated.
    List<com.comphenix.protocol.wrappers.PlayerInfoData>
    List of entries to add/update with this packet The fields of the entry to update depend on the actions specified by setActions(Set)
    void
    setActions(Set<com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction> value)
    Sets a set of action that determines the fields of the PlayerInfoData that will be updated.
    void
    setEntries(List<com.comphenix.protocol.wrappers.PlayerInfoData> value)
    Sets the list of entries to add/update with this packet.

    Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE

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

      public static final Set<com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction> ALL_ACTIONS
      Set of all actions that should be used to spawn a new player.
  • Constructor Details

    • WrapperPlayServerPlayerInfo

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

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

    • getActions

      public Set<com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction> getActions()
      Gets a set of action that determines the fields of the PlayerInfoData that will be updated.
      Returns:
      set of fields to update
    • setActions

      public void setActions(Set<com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction> value)
      Sets a set of action that determines the fields of the PlayerInfoData that will be updated. Use WrapperPlayServerPlayerInfoRemove to remove player info. is no longer supported. Use ALL_ACTIONS when adding a new player.
      Parameters:
      value - Actions for this update.
    • getEntries

      public List<com.comphenix.protocol.wrappers.PlayerInfoData> getEntries()
      List of entries to add/update with this packet The fields of the entry to update depend on the actions specified by setActions(Set)
      Returns:
      entries to update
    • setEntries

      public void setEntries(List<com.comphenix.protocol.wrappers.PlayerInfoData> value)
      Sets the list of entries to add/update with this packet. The fields of the entry to update depend on the actions specified by setActions(Set)
      Parameters:
      value - List of entries to update