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 - named - net/minecraft/client/network/ClientCommonNetworkHandler$QueuedPacket- intermediary - net/minecraft/class_8673$class_8137- official - gfx$a- named - packet- intermediary - comp_1264- official - a- named - sendCondition- intermediary - comp_1265- official - b- named - expirationTime- intermediary - comp_1266- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final longThe field for theexpirationTimerecord component.private final Packet<? extends ServerPacketListener> The field for thepacketrecord component.private final BooleanSupplierThe field for thesendConditionrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionQueuedPacket(Packet<? extends ServerPacketListener> packet, BooleanSupplier booleanSupplier, long long2) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpirationTimerecord component.final inthashCode()Returns a hash code value for this object.Packet<? extends ServerPacketListener> packet()Returns the value of thepacketrecord component.Returns the value of thesendConditionrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
packetThe field for thepacketrecord component.
- 
sendConditionThe field for thesendConditionrecord component.
- 
expirationTimeprivate final long expirationTimeThe field for theexpirationTimerecord component.
 
- 
- 
Constructor Details- 
QueuedPacketQueuedPacket(Packet<? extends ServerPacketListener> packet, BooleanSupplier booleanSupplier, long long2) 
 
- 
- 
Method Details- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
packetReturns the value of thepacketrecord component.- Returns:
- the value of the packetrecord component
 
- 
sendConditionReturns the value of thesendConditionrecord component.- Returns:
- the value of the sendConditionrecord component
 
- 
expirationTimepublic long expirationTime()Returns the value of theexpirationTimerecord component.- Returns:
- the value of the expirationTimerecord component
 
 
-