Package net.minecraft.util
Record Class ColorCode
java.lang.Object
java.lang.Record
net.minecraft.util.ColorCode
- Record Components:
rgba-
- Mappings:
Namespace Name named net/minecraft/util/ColorCodeintermediary net/minecraft/class_8805official axhnamed rgbaintermediary comp_1971official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringasString()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intrgba()Returns the value of thergbarecord component.toString()Returns a string representation of this record class.
-
Field Details
-
rgba
private final int rgbaThe field for thergbarecord component. -
HASH
- See Also:
- Mappings:
Namespace Name Mixin selector named HASHLnet/minecraft/util/ColorCode;HASH:Ljava/lang/String;intermediary field_46235Lnet/minecraft/class_8805;field_46235:Ljava/lang/String;official cLaxh;c:Ljava/lang/String;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/util/ColorCode;CODEC:Lcom/mojang/serialization/Codec;intermediary field_46234Lnet/minecraft/class_8805;field_46234:Lcom/mojang/serialization/Codec;official aLaxh;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ColorCode
public ColorCode(int int2)
-
-
Method Details
-
asString
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/ColorCode;asString()Ljava/lang/String;intermediary method_53915Lnet/minecraft/class_8805;method_53915()Ljava/lang/String;official bLaxh;b()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. All components in this record class are compared with '=='. -
rgba
public int rgba()Returns the value of thergbarecord component.- Returns:
- the value of the
rgbarecord component
-