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/WorldTimeUpdateS2CPacketintermediary net/minecraft/class_2761official agcnamed timeintermediary comp_3219official bnamed timeOfDayintermediary comp_3220official cnamed tickDayTimeintermediary comp_3221official d
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
time
private final long timeThe field for thetimerecord component. -
timeOfDay
private final long timeOfDayThe field for thetimeOfDayrecord component. -
tickDayTime
private final boolean tickDayTimeThe field for thetickDayTimerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_47991Lnet/minecraft/class_2761;field_47991:Lnet/minecraft/class_9139;official aLagc;a:Lze;
-
-
Constructor Details
-
WorldTimeUpdateS2CPacket
public WorldTimeUpdateS2CPacket(long long2, long long3, boolean bool)
-
-
Method Details
-
getPacketType
- Specified by:
getPacketTypein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketTypeLnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;intermediary method_65080Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;official aLzo;a()Lzq;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/s2c/play/WorldTimeUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)Vintermediary method_11872Lnet/minecraft/class_2761;method_11872(Lnet/minecraft/class_2602;)Vofficial aLagc;a(Lacf;)V
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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 '=='. -
time
public long time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
timeOfDay
public long timeOfDay()Returns the value of thetimeOfDayrecord component.- Returns:
- the value of the
timeOfDayrecord component
-
tickDayTime
public boolean tickDayTime()Returns the value of thetickDayTimerecord component.- Returns:
- the value of the
tickDayTimerecord component
-