Package net.minecraft
Record Class class_12036.class_12040<T>
java.lang.Object
java.lang.Record
net.minecraft.class_12036.class_12040<T>
- Record Components:
value-expiresAfterTime-
- Enclosing class:
class_12036
@Environment(CLIENT)
private static record class_12036.class_12040<T>(T value, long expiresAfterTime)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_12036$class_12040intermediary net/minecraft/class_12036$class_12040official gzf$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.final inthashCode()Returns a hash code value for this object.booleanmethod_74749(long long2) 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. -
field_62943
private static final long field_62943- See Also:
- Mappings:
Namespace Name Mixin selector named field_62943Lnet/minecraft/class_12036$class_12040;field_62943:Jintermediary field_62943Lnet/minecraft/class_12036$class_12040;field_62943:Jofficial cLgzf$d;c:J
-
-
Constructor Details
-
class_12040
class_12040(T t, long long2)
-
-
Method Details
-
method_74749
public boolean method_74749(long long2) - Mappings:
Namespace Name Mixin selector named method_74749Lnet/minecraft/class_12036$class_12040;method_74749(J)Zintermediary method_74749Lnet/minecraft/class_12036$class_12040;method_74749(J)Zofficial aLgzf$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
-