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 Componentprivate final intstatic final intstatic final intstatic final intprivate final Optional<NumberFormat> private final Stringprivate final ObjectiveCriteria.RenderTypestatic final StreamCodec<RegistryFriendlyByteBuf, ClientboundSetObjectivePacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClientboundSetObjectivePacket(Objective pObjective, int pMethod) -
Method Summary
Modifier and TypeMethodDescriptionintvoidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()private voidwrite(RegistryFriendlyByteBuf pBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getObjectiveName
-
getDisplayName
-
getMethod
public int getMethod() -
getRenderType
-
getNumberFormat
-