Package net.minecraft
Record Class class_8369
java.lang.Object
java.lang.Record
net.minecraft.class_8369
- Record Components:
displayName-start-duration-cost-
public record class_8369(Text displayName, long start, long duration, List<class_8390.class_8391> cost)
extends Record
- Mappings:
Namespace Name official bgkintermediary net/minecraft/class_8369named net/minecraft/class_8369official bintermediary comp_1361named displayNameofficial cintermediary comp_1362named startofficial dintermediary comp_1363named durationofficial eintermediary comp_1364named cost
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<class_8390.class_8391>The field for thecostrecord component.private final TextThe field for thedisplayNamerecord component.private final longThe field for thedurationrecord component.static final com.mojang.serialization.MapCodec<class_8369>private final longThe field for thestartrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8369(Text text, long long2, long long3, List<class_8390.class_8391> list) -
Method Summary
Modifier and TypeMethodDescriptioncost()Returns the value of thecostrecord component.Returns the value of thedisplayNamerecord component.longduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlongstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
displayName
The field for thedisplayNamerecord component. -
start
private final long startThe field for thestartrecord component. -
duration
private final long durationThe field for thedurationrecord component. -
cost
The field for thecostrecord component. -
field_43981
- Mappings:
Namespace Name Mixin selector official aLbgk;a:Lcom/mojang/serialization/MapCodec;intermediary field_43981Lnet/minecraft/class_8369;field_43981:Lcom/mojang/serialization/MapCodec;named field_43981Lnet/minecraft/class_8369;field_43981:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_8369
-
-
Method Details
-
method_50461
public long method_50461()- Mappings:
Namespace Name Mixin selector official aLbgk;a()Jintermediary method_50461Lnet/minecraft/class_8369;method_50461()Jnamed method_50461Lnet/minecraft/class_8369;method_50461()J
-
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 '=='. -
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
start
public long start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
duration
public long duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
cost
Returns the value of thecostrecord component.- Returns:
- the value of the
costrecord component
-