java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.scoreboard.ClientboundSetObjectivePacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundSetObjectivePacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundSetObjectivePacket

      public ClientboundSetObjectivePacket(@NonNull @NonNull String name)
      Constructs a ServerScoreboardObjectivePacket for removing an objective.
      Parameters:
      name - Name of the objective.
    • ClientboundSetObjectivePacket

      public ClientboundSetObjectivePacket(@NonNull @NonNull String name, @NonNull @NonNull ObjectiveAction action, @Nullable net.kyori.adventure.text.Component displayName, @Nullable ScoreType type, @Nullable NumberFormat numberFormat)
      Constructs a ServerScoreboardObjectivePacket for adding or updating an objective.
      Parameters:
      name - Name of the objective.
      action - Action to perform.
      displayName - Display name of the objective.
      type - Type of score.
      numberFormat - Number formatting.
    • ClientboundSetObjectivePacket

      public ClientboundSetObjectivePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper)
  • Method Details