Class WrapperPlayServerScoreboardScore
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerScoreboardScore
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerScoreboardScore
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptioncom.comphenix.protocol.wrappers.EnumWrappers.ScoreboardAction
Retrieves the value of field 'method'Retrieves the value of field 'objectiveName'getOwner()
Retrieves the value of field 'owner'int
getScore()
Retrieves the value of field 'score'void
setMethod
(com.comphenix.protocol.wrappers.EnumWrappers.ScoreboardAction value) Sets the value of field 'method'void
setObjectiveName
(String value) Sets the value of field 'objectiveName'void
Sets the value of field 'owner'void
setScore
(int value) Sets the value of field 'score'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.
-
-
Constructor Details
-
WrapperPlayServerScoreboardScore
public WrapperPlayServerScoreboardScore()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerScoreboardScore
public WrapperPlayServerScoreboardScore(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getOwner
Retrieves the value of field 'owner'- Returns:
- 'owner'
-
setOwner
Sets the value of field 'owner'- Parameters:
value
- New value for field 'owner'
-
getObjectiveName
Retrieves the value of field 'objectiveName'- Returns:
- 'objectiveName'
-
setObjectiveName
Sets the value of field 'objectiveName'- Parameters:
value
- New value for field 'objectiveName'
-
getScore
public int getScore()Retrieves the value of field 'score'- Returns:
- 'score'
-
setScore
public void setScore(int value) Sets the value of field 'score'- Parameters:
value
- New value for field 'score'
-
getMethod
public com.comphenix.protocol.wrappers.EnumWrappers.ScoreboardAction getMethod()Retrieves the value of field 'method'- Returns:
- 'method'
-
setMethod
public void setMethod(com.comphenix.protocol.wrappers.EnumWrappers.ScoreboardAction value) Sets the value of field 'method'- Parameters:
value
- New value for field 'method'
-