Class ClientboundSetObjectivePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSetObjectivePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundSetObjectivePacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Component
private final int
static final int
static final int
static final int
private final Optional
<NumberFormat> private final String
private final ObjectiveCriteria.RenderType
static final StreamCodec
<RegistryFriendlyByteBuf, ClientboundSetObjectivePacket> -
Constructor Summary
ModifierConstructorDescriptionprivate
ClientboundSetObjectivePacket
(Objective p_133258_, int p_133259_) -
Method Summary
Modifier and TypeMethodDescriptionint
void
handle
(ClientGamePacketListener p_133265_) type()
private void
write
(RegistryFriendlyByteBuf p_320623_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
METHOD_ADD
public static final int METHOD_ADD- See Also:
-
METHOD_REMOVE
public static final int METHOD_REMOVE- See Also:
-
METHOD_CHANGE
public static final int METHOD_CHANGE- See Also:
-
objectiveName
-
displayName
-
renderType
-
numberFormat
-
method
private final int method
-
-
Constructor Details
-
ClientboundSetObjectivePacket
-
ClientboundSetObjectivePacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getObjectiveName
-
getDisplayName
-
getMethod
public int getMethod() -
getRenderType
-
getNumberFormat
-