Class ClientboundSetScorePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.scoreboard.ClientboundSetScorePacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetScorePacket(io.netty.buffer.ByteBuf in) ClientboundSetScorePacket(String owner, String objective, int value) Creates a set score packet that adds or updates the entry.ClientboundSetScorePacket(String owner, String objective, int value, @Nullable net.kyori.adventure.text.Component display, @Nullable NumberFormat numberFormat) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable net.kyori.adventure.text.Component@Nullable NumberFormatgetOwner()intgetValue()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundSetScorePacketwithDisplay(@Nullable net.kyori.adventure.text.Component display) @NonNull ClientboundSetScorePacketwithNumberFormat(@Nullable NumberFormat numberFormat) @NonNull ClientboundSetScorePacketwithObjective(String objective) @NonNull ClientboundSetScorePacket@NonNull ClientboundSetScorePacketwithValue(int value) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetScorePacket
-
ClientboundSetScorePacket
public ClientboundSetScorePacket(io.netty.buffer.ByteBuf in) -
ClientboundSetScorePacket
public ClientboundSetScorePacket(String owner, String objective, int value, @Nullable net.kyori.adventure.text.Component display, @Nullable NumberFormat numberFormat)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getOwner
-
getObjective
-
getValue
public int getValue() -
getDisplay
public @Nullable net.kyori.adventure.text.Component getDisplay() -
getNumberFormat
-
equals
-
canEqual
-
hashCode
-
toString
-
withOwner
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withObjective
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withValue
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDisplay
public @NonNull ClientboundSetScorePacket withDisplay(@Nullable net.kyori.adventure.text.Component display) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumberFormat
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-