Class WrapperPlayServerPlayerInfo
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerPlayerInfo
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
FieldsModifier and TypeFieldDescriptionstatic 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.PacketTypeThe packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerPlayerInfo(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionSet<com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction>Gets a set of action that determines the fields of thePlayerInfoDatathat 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 bysetActions(Set)voidsetActions(Set<com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction> value) Sets a set of action that determines the fields of thePlayerInfoDatathat will be updated.voidsetEntries(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
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper. -
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
Gets a set of action that determines the fields of thePlayerInfoDatathat will be updated.- Returns:
- set of fields to update
-
setActions
Sets a set of action that determines the fields of thePlayerInfoDatathat will be updated. UseWrapperPlayServerPlayerInfoRemoveto remove player info. is no longer supported. UseALL_ACTIONSwhen adding a new player.- Parameters:
value- Actions for this update.
-
getEntries
List of entries to add/update with this packet The fields of the entry to update depend on the actions specified bysetActions(Set)- Returns:
- entries to update
-
setEntries
Sets the list of entries to add/update with this packet. The fields of the entry to update depend on the actions specified bysetActions(Set)- Parameters:
value- List of entries to update
-