Class PacketPlayOutScoreboardDisplayObjective

java.lang.Object
me.neznamy.tab.api.protocol.PacketPlayOutScoreboardDisplayObjective
All Implemented Interfaces:
TabPacket

public class PacketPlayOutScoreboardDisplayObjective extends Object implements TabPacket
A class representing platform specific packet class
  • Constructor Details

    • PacketPlayOutScoreboardDisplayObjective

      public PacketPlayOutScoreboardDisplayObjective(int slot, String objectiveName)
      Constructs new instance with given parameters
      Parameters:
      slot - Display slot
      objectiveName - Internal name of the objective
      Throws:
      IllegalArgumentException - if objectiveName is null or longer than 16 characters
  • Method Details

    • toString

      public String toString()
      Description copied from interface: TabPacket
      Returns user-friendly string representation of the packet
      Specified by:
      toString in interface TabPacket
      Overrides:
      toString in class Object
      Returns:
      user-friendly string representation of the packet
    • getSlot

      public int getSlot()
      Returns slot
      Returns:
      slot
    • getObjectiveName

      public String getObjectiveName()
      Returns objectiveName
      Returns:
      objectiveName