Package net.minecraft.client.network
Record Class ClientDebugSubscriptionManager.ValueWithExpiry<T>
java.lang.Object
java.lang.Record
net.minecraft.client.network.ClientDebugSubscriptionManager.ValueWithExpiry<T>
- Record Components:
value-expiresAfterTime-
- Enclosing class:
ClientDebugSubscriptionManager
@Environment(CLIENT)
private static record ClientDebugSubscriptionManager.ValueWithExpiry<T>(T value, long expiresAfterTime)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/network/ClientDebugSubscriptionManager$ValueWithExpiryintermediary net/minecraft/class_12036$class_12040official gzk$dnamed valueintermediary comp_4892official anamed expiresAfterTimeintermediary comp_4893official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theexpiresAfterTimerecord component.private static final longprivate final TThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAfterTimerecord component.booleanhasExpired(long time) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
expiresAfterTime
private final long expiresAfterTimeThe field for theexpiresAfterTimerecord component. -
INEXPIRABLE
private static final long INEXPIRABLE- See Also:
- Mappings:
Namespace Name Mixin selector named INEXPIRABLELnet/minecraft/client/network/ClientDebugSubscriptionManager$ValueWithExpiry;INEXPIRABLE:Jintermediary field_62943Lnet/minecraft/class_12036$class_12040;field_62943:Jofficial cLgzk$d;c:J
-
-
Constructor Details
-
ValueWithExpiry
ValueWithExpiry(T t, long long2)
-
-
Method Details
-
hasExpired
public boolean hasExpired(long time) - Mappings:
Namespace Name Mixin selector named hasExpiredLnet/minecraft/client/network/ClientDebugSubscriptionManager$ValueWithExpiry;hasExpired(J)Zintermediary method_74749Lnet/minecraft/class_12036$class_12040;method_74749(J)Zofficial aLgzk$d;a(J)Z
-
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 '=='. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
expiresAfterTime
public long expiresAfterTime()Returns the value of theexpiresAfterTimerecord component.- Returns:
- the value of the
expiresAfterTimerecord component
-