Class ClientboundSetObjectivePacket
java.lang.Object
com.github.steveice10.mc.protocol.packet.ingame.clientbound.scoreboard.ClientboundSetObjectivePacket
- All Implemented Interfaces:
MinecraftPacket,Packet
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetObjectivePacket(@NonNull String name) Constructs a ServerScoreboardObjectivePacket for removing an objective.ClientboundSetObjectivePacket(@NonNull String name, @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.ClientboundSetObjectivePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.steveice10.packetlib.packet.Packet
isPriority
-
Constructor Details
-
ClientboundSetObjectivePacket
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 @Nullable net.kyori.adventure.text.Component displayName, @Nullable @Nullable ScoreType type, @Nullable @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) throws IOException - Throws:
IOException
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket- Throws:
IOException
-