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
FieldsModifier 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
ConstructorsModifierConstructorDescriptionprivate
ClientboundSetObjectivePacket
(Objective pObjective, int pMethod) -
Method Summary
Modifier and TypeMethodDescriptionint
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(RegistryFriendlyByteBuf pBuffer) 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
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getObjectiveName
-
getDisplayName
-
getMethod
public int getMethod() -
getRenderType
-
getNumberFormat
-