public class ClientboundSetObjectivePacket extends Object implements com.github.steveice10.packetlib.packet.Packet
| Constructor and Description |
|---|
ClientboundSetObjectivePacket(com.github.steveice10.packetlib.io.NetInput in) |
ClientboundSetObjectivePacket(@NonNull String name)
Constructs a ServerScoreboardObjectivePacket for removing an objective.
|
ClientboundSetObjectivePacket(@NonNull String name,
@NonNull ObjectiveAction action,
net.kyori.adventure.text.Component displayName,
ScoreType type)
Constructs a ServerScoreboardObjectivePacket for adding or updating an objective.
|
public ClientboundSetObjectivePacket(@NonNull
@NonNull String name)
name - Name of the objective.public ClientboundSetObjectivePacket(@NonNull
@NonNull String name,
@NonNull
@NonNull ObjectiveAction action,
net.kyori.adventure.text.Component displayName,
ScoreType type)
name - Name of the objective.action - Action to perform.displayName - Display name of the objective.type - Type of score.public ClientboundSetObjectivePacket(com.github.steveice10.packetlib.io.NetInput in)
throws IOException
IOExceptionpublic void write(com.github.steveice10.packetlib.io.NetOutput out)
throws IOException
write in interface com.github.steveice10.packetlib.packet.PacketIOExceptionCopyright © 2022. All rights reserved.