Package me.neznamy.tab.api.protocol
Class PacketPlayOutScoreboardDisplayObjective
java.lang.Object
me.neznamy.tab.api.protocol.PacketPlayOutScoreboardDisplayObjective
- All Implemented Interfaces:
TabPacket
A class representing platform specific packet class
-
Constructor Summary
ConstructorsConstructorDescriptionPacketPlayOutScoreboardDisplayObjective(int slot, String objectiveName) Constructs new instance with given parameters -
Method Summary
-
Constructor Details
-
PacketPlayOutScoreboardDisplayObjective
Constructs new instance with given parameters- Parameters:
slot- Display slotobjectiveName- Internal name of the objective- Throws:
IllegalArgumentException- ifobjectiveNameis null or longer than 16 characters
-
-
Method Details
-
toString
Description copied from interface:TabPacketReturns user-friendly string representation of the packet -
getSlot
public int getSlot()Returnsslot- Returns:
- slot
-
getObjectiveName
ReturnsobjectiveName- Returns:
- objectiveName
-