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$QueuedPacketintermediary net/minecraft/class_8673$class_8137official fzc$anamed packetintermediary comp_1264official anamed sendConditionintermediary comp_1265official bnamed expirationTimeintermediary comp_1266official c
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionQueuedPacket(Packet<? extends ServerPacketListener> packet, BooleanSupplier booleanSupplier, long long2) -
Method Summary
Modifier 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
-
packet
The field for thepacketrecord component. -
sendCondition
The field for thesendConditionrecord component. -
expirationTime
private final long expirationTimeThe field for theexpirationTimerecord 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 thepacketrecord component.- Returns:
- the value of the
packetrecord component
-
sendCondition
Returns the value of thesendConditionrecord component.- Returns:
- the value of the
sendConditionrecord component
-
expirationTime
public long expirationTime()Returns the value of theexpirationTimerecord component.- Returns:
- the value of the
expirationTimerecord component
-