Class ScoreboardObjectivePacket

java.lang.Object
net.minestom.server.network.packet.server.play.ScoreboardObjectivePacket
All Implemented Interfaces:
ComponentHolder<ServerPacket>, ComponentHoldingServerPacket, SendablePacket, ServerPacket, Readable, Writeable

public class ScoreboardObjectivePacket extends Object implements ComponentHoldingServerPacket
  • Field Details

    • objectiveName

      public String objectiveName
      An unique name for the objective
    • mode

      public byte mode
      0 = create the scoreboard
      1 = to remove the scoreboard
      2 = to update the display text
    • objectiveValue

      public Component objectiveValue
      The text to be displayed for the score
    • type

      The type how the score is displayed
  • Constructor Details

    • ScoreboardObjectivePacket

      public ScoreboardObjectivePacket()
  • Method Details