public class ClientboundSetScorePacket extends Object implements MinecraftPacket
| Constructor and Description |
|---|
ClientboundSetScorePacket(io.netty.buffer.ByteBuf in,
MinecraftCodecHelper helper) |
ClientboundSetScorePacket(@NonNull String entry,
@NonNull String objective)
Creates a set score packet that removes the entry.
|
ClientboundSetScorePacket(@NonNull String entry,
@NonNull String objective,
int value)
Creates a set score packet that adds or updates the entry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(io.netty.buffer.ByteBuf out,
MinecraftCodecHelper helper) |
public ClientboundSetScorePacket(@NonNull
@NonNull String entry,
@NonNull
@NonNull String objective)
public ClientboundSetScorePacket(@NonNull
@NonNull String entry,
@NonNull
@NonNull String objective,
int value)
public ClientboundSetScorePacket(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.