Package net.minecraft.client.network
Record Class ClientPlayNetworkHandler.QueuedPacket
java.lang.Object
java.lang.Record
net.minecraft.client.network.ClientPlayNetworkHandler.QueuedPacket
- Record Components:
packet-sendCondition-expirationTime-
- Enclosing class:
ClientPlayNetworkHandler
@Environment(CLIENT)
private static record ClientPlayNetworkHandler.QueuedPacket(Packet<ServerPlayPacketListener> packet, BooleanSupplier sendCondition, long expirationTime)
extends Record
- Mappings:
Namespace Name official fem$aintermediary net/minecraft/class_634$class_8137named net/minecraft/client/network/ClientPlayNetworkHandler$QueuedPacketofficial aintermediary comp_1264named packetofficial bintermediary comp_1265named sendConditionofficial cintermediary comp_1266named expirationTime
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theexpirationTimerecord component.private final Packet<ServerPlayPacketListener>The field for thepacketrecord component.private final BooleanSupplierThe field for thesendConditionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionQueuedPacket(Packet<ServerPlayPacketListener> 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()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<ServerPlayPacketListener> 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
-