Class ClientboundSetScorePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.scoreboard.ClientboundSetScorePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetScorePacket(@NonNull String owner, @NonNull String objective, int value) Creates a set score packet that adds or updates the entry.ClientboundSetScorePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable net.kyori.adventure.text.Component@Nullable NumberFormat@NonNull String@NonNull StringgetOwner()intgetValue()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundSetScorePacketwithDisplay(@Nullable net.kyori.adventure.text.Component display) @NonNull ClientboundSetScorePacketwithNumberFormat(@Nullable NumberFormat numberFormat) @NonNull ClientboundSetScorePacketwithObjective(@NonNull String objective) @NonNull ClientboundSetScorePacket@NonNull ClientboundSetScorePacketwithValue(int value) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getOwner
-
getObjective
-
getValue
public int getValue() -
getDisplay
public @Nullable net.kyori.adventure.text.Component getDisplay() -
getNumberFormat
-
equals
-
canEqual
-
hashCode
public int 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).
-