Class WrapperPlayServerScoreboardObjective
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerScoreboardObjective
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 valuesWrapperPlayServerScoreboardObjective(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptioncom.comphenix.protocol.wrappers.WrappedChatComponentRetrieves the value of field 'displayName'intRetrieves the index of the methodRetrieves the method for this operationRetrieves the value of field 'objectiveName'org.bukkit.scoreboard.RenderTypeRetrieves the render type for this objectivevoidsetDisplayName(com.comphenix.protocol.wrappers.WrappedChatComponent value) Sets the value of field 'displayName'voidsetMethod(int value) Sets the index of the methodvoidSets the method for this operationvoidsetObjectiveName(String value) Sets the value of field 'objectiveName'voidsetRenderType(org.bukkit.scoreboard.RenderType value) Sets the render type for this objectiveMethods 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
-
WrapperPlayServerScoreboardObjective
public WrapperPlayServerScoreboardObjective()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerScoreboardObjective
public WrapperPlayServerScoreboardObjective(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getObjectiveName
Retrieves the value of field 'objectiveName'- Returns:
- 'objectiveName'
-
setObjectiveName
Sets the value of field 'objectiveName'- Parameters:
value- New value for field 'objectiveName'
-
getDisplayName
public com.comphenix.protocol.wrappers.WrappedChatComponent getDisplayName()Retrieves the value of field 'displayName'- Returns:
- 'displayName'
-
setDisplayName
public void setDisplayName(com.comphenix.protocol.wrappers.WrappedChatComponent value) Sets the value of field 'displayName'- Parameters:
value- New value for field 'displayName'
-
getRenderType
public org.bukkit.scoreboard.RenderType getRenderType()Retrieves the render type for this objective- Returns:
- 'renderType'
-
setRenderType
public void setRenderType(org.bukkit.scoreboard.RenderType value) Sets the render type for this objective- Parameters:
value- New value for field 'renderType'
-
getMethod
public int getMethod()Retrieves the index of the method- Returns:
- 'method'
-
setMethod
public void setMethod(int value) Sets the index of the method- Parameters:
value- New value for field 'method'
-
getMethodEnum
Retrieves the method for this operation- Returns:
- 'method'
-
setMethodEnum
Sets the method for this operation- Parameters:
value- New value for field 'method'
-