Package net.minecraft.util
Record Class ColorCode
java.lang.Object
java.lang.Record
net.minecraft.util.ColorCode
- Record Components:
rgba-
- Mappings:
Namespace Name official atiintermediary net/minecraft/class_8805named net/minecraft/util/ColorCodeofficial bintermediary comp_1971named rgba
-
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 official cLati;c:Ljava/lang/String;intermediary field_46235Lnet/minecraft/class_8805;field_46235:Ljava/lang/String;named HASHLnet/minecraft/util/ColorCode;HASH:Ljava/lang/String;
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLati;a:Lcom/mojang/serialization/Codec;intermediary field_46234Lnet/minecraft/class_8805;field_46234:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/util/ColorCode;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ColorCode
public ColorCode(int int2)
-
-
Method Details
-
asString
- Mappings:
Namespace Name Mixin selector official bLati;b()Ljava/lang/String;intermediary method_53915Lnet/minecraft/class_8805;method_53915()Ljava/lang/String;named asStringLnet/minecraft/util/ColorCode;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. 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
-