Package me.neznamy.tab.api.protocol
Class PacketPlayOutScoreboardScore
java.lang.Object
me.neznamy.tab.api.protocol.PacketPlayOutScoreboardScore
- All Implemented Interfaces:
TabPacket
A class representing platform specific packet class
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enum representing action types -
Constructor Summary
ConstructorsConstructorDescriptionPacketPlayOutScoreboardScore(PacketPlayOutScoreboardScore.Action action, String objectiveName, String player, int score) Constructs new instance with given parameters -
Method Summary
-
Constructor Details
-
PacketPlayOutScoreboardScore
public PacketPlayOutScoreboardScore(PacketPlayOutScoreboardScore.Action action, String objectiveName, String player, int score) Constructs new instance with given parameters- Parameters:
action- Packet actionobjectiveName- Objective nameplayer- Affected playerscore- Player's score- Throws:
IllegalArgumentException- ifobjectiveNameis null or longer than 16 characters
-
-
Method Details
-
toString
Description copied from interface:TabPacketReturns user-friendly string representation of the packet -
getAction
Returnsaction- Returns:
- packet action
-
getObjectiveName
ReturnsobjectiveName- Returns:
- objective name
-
getPlayer
Returnsplayer- Returns:
- player
-
getScore
public int getScore()Returnsscore- Returns:
- score
-