public class ClientboundSetObjectivePacket extends Object implements MinecraftPacket
| Constructor and Description |
|---|
ClientboundSetObjectivePacket(io.netty.buffer.ByteBuf in,
MinecraftCodecHelper helper) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(io.netty.buffer.ByteBuf out,
MinecraftCodecHelper helper) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPrioritypublic 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(io.netty.buffer.ByteBuf in,
MinecraftCodecHelper helper)
throws IOException
IOExceptionpublic void serialize(io.netty.buffer.ByteBuf out,
MinecraftCodecHelper helper)
throws IOException
serialize in interface MinecraftPacketIOExceptionCopyright © 2023. All rights reserved.