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 bgk
intermediary net/minecraft/class_8369
named net/minecraft/class_8369
official b
intermediary comp_1361
named displayName
official c
intermediary comp_1362
named start
official d
intermediary comp_1363
named duration
official e
intermediary comp_1364
named cost
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<class_8390.class_8391>
The field for thecost
record component.private final Text
The field for thedisplayName
record component.private final long
The field for theduration
record component.static final com.mojang.serialization.MapCodec<class_8369>
private final long
The field for thestart
record 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 thecost
record component.Returns the value of thedisplayName
record component.long
duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
long
start()
Returns the value of thestart
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
displayName
The field for thedisplayName
record component. -
start
private final long startThe field for thestart
record component. -
duration
private final long durationThe field for theduration
record component. -
cost
The field for thecost
record component. -
field_43981
- Mappings:
Namespace Name Mixin selector official a
Lbgk;a:Lcom/mojang/serialization/MapCodec;
intermediary field_43981
Lnet/minecraft/class_8369;field_43981:Lcom/mojang/serialization/MapCodec;
named field_43981
Lnet/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 a
Lbgk;a()J
intermediary method_50461
Lnet/minecraft/class_8369;method_50461()J
named method_50461
Lnet/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 thedisplayName
record component.- Returns:
- the value of the
displayName
record component
-
start
public long start()Returns the value of thestart
record component.- Returns:
- the value of the
start
record component
-
duration
public long duration()Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
cost
Returns the value of thecost
record component.- Returns:
- the value of the
cost
record component
-