Package net.minecraft
Record Class class_8259.class_8260
java.lang.Object
java.lang.Record
net.minecraft.class_8259.class_8260
- Record Components:
name
-rgb
-
- All Implemented Interfaces:
StringIdentifiable
- Enclosing class:
class_8259
public static record class_8259.class_8260(String name, int rgb)
extends Record
implements StringIdentifiable
- Mappings:
Namespace Name official apl$a
intermediary net/minecraft/class_8259$class_8260
named net/minecraft/class_8259$class_8260
official a
intermediary comp_1347
named name
official b
intermediary comp_1348
named rgb
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thename
record component.private final int
The field for thergb
record component.Fields inherited from interface net.minecraft.util.StringIdentifiable
field_38377
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.int
rgb()
Returns the value of thergb
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_8260
-
-
Method Details
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector official c
Lapw;c()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
rgb
public int rgb()Returns the value of thergb
record component.- Returns:
- the value of the
rgb
record component
-