Record Class WorldTimeUpdateS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.WorldTimeUpdateS2CPacket
- Record Components:
- time-
- timeOfDay-
- tickDayTime-
- All Implemented Interfaces:
- Packet<ClientPlayPacketListener>
public record WorldTimeUpdateS2CPacket(long time, long timeOfDay, boolean tickDayTime)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - named - net/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket- intermediary - net/minecraft/class_2761- official - afj- named - time- intermediary - comp_3219- official - b- named - timeOfDay- intermediary - comp_3220- official - c- named - tickDayTime- intermediary - comp_3221- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PacketCodec<PacketByteBuf, WorldTimeUpdateS2CPacket> private final booleanThe field for thetickDayTimerecord component.private final longThe field for thetimerecord component.private final longThe field for thetimeOfDayrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thetickDayTimerecord component.longtime()Returns the value of thetimerecord component.longReturns the value of thetimeOfDayrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.PacketisWritingErrorSkippable, transitionsNetworkState
- 
Field Details- 
timeprivate final long timeThe field for thetimerecord component.
- 
timeOfDayprivate final long timeOfDayThe field for thetimeOfDayrecord component.
- 
tickDayTimeprivate final boolean tickDayTimeThe field for thetickDayTimerecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_47991- Lnet/minecraft/class_2761;field_47991:Lnet/minecraft/class_9139;- official - a- Lafj;a:Lyn;
 
 
- 
- 
Constructor Details- 
WorldTimeUpdateS2CPacketpublic WorldTimeUpdateS2CPacket(long long2, long long3, boolean bool) 
 
- 
- 
Method Details- 
getPacketType- Specified by:
- getPacketTypein interface- Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - named - getPacketType- Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;- intermediary - method_65080- Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;- official - a- Lyw;a()Lyy;
 
- 
apply- Specified by:
- applyin interface- Packet<ClientPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - named - apply- Lnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V- intermediary - method_11872- Lnet/minecraft/class_2761;method_11872(Lnet/minecraft/class_2602;)V- official - a- Lafj;a(Labl;)V
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
- 
timepublic long time()Returns the value of thetimerecord component.- Returns:
- the value of the timerecord component
 
- 
timeOfDaypublic long timeOfDay()Returns the value of thetimeOfDayrecord component.- Returns:
- the value of the timeOfDayrecord component
 
- 
tickDayTimepublic boolean tickDayTime()Returns the value of thetickDayTimerecord component.- Returns:
- the value of the tickDayTimerecord component
 
 
-