Package net.minecraft.client.network
Record Class ClientCommonNetworkHandler.QueuedPacket
java.lang.Object
java.lang.Record
net.minecraft.client.network.ClientCommonNetworkHandler.QueuedPacket
- Record Components:
packet
-sendCondition
-expirationTime
-
- Enclosing class:
ClientCommonNetworkHandler
@Environment(CLIENT)
private static record ClientCommonNetworkHandler.QueuedPacket(Packet<? extends ServerPacketListener> packet, BooleanSupplier sendCondition, long expirationTime)
extends Record
- Mappings:
Namespace Name official fnp$a
intermediary net/minecraft/class_8673$class_8137
named net/minecraft/client/network/ClientCommonNetworkHandler$QueuedPacket
official a
intermediary comp_1264
named packet
official b
intermediary comp_1265
named sendCondition
official c
intermediary comp_1266
named expirationTime
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
The field for theexpirationTime
record component.private final Packet<? extends ServerPacketListener>
The field for thepacket
record component.private final BooleanSupplier
The field for thesendCondition
record component. -
Constructor Summary
ConstructorDescriptionQueuedPacket
(Packet<? extends ServerPacketListener> packet, BooleanSupplier booleanSupplier, long long2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpirationTime
record component.final int
hashCode()
Returns a hash code value for this object.Packet<? extends ServerPacketListener>
packet()
Returns the value of thepacket
record component.Returns the value of thesendCondition
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
packet
The field for thepacket
record component. -
sendCondition
The field for thesendCondition
record component. -
expirationTime
private final long expirationTimeThe field for theexpirationTime
record component.
-
-
Constructor Details
-
QueuedPacket
QueuedPacket(Packet<? extends ServerPacketListener> packet, BooleanSupplier booleanSupplier, long long2)
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
packet
Returns the value of thepacket
record component.- Returns:
- the value of the
packet
record component
-
sendCondition
Returns the value of thesendCondition
record component.- Returns:
- the value of the
sendCondition
record component
-
expirationTime
public long expirationTime()Returns the value of theexpirationTime
record component.- Returns:
- the value of the
expirationTime
record component
-