Package net.minecraft.util
Record Class ColorCode
java.lang.Object
java.lang.Record
net.minecraft.util.ColorCode
- Record Components:
rgba
-
- Mappings:
Namespace Name official ati
intermediary net/minecraft/class_8805
named net/minecraft/util/ColorCode
official b
intermediary comp_1971
named rgba
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate String
asString()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
rgba()
Returns the value of thergba
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
rgba
private final int rgbaThe field for thergba
record component. -
HASH
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lati;c:Ljava/lang/String;
intermediary field_46235
Lnet/minecraft/class_8805;field_46235:Ljava/lang/String;
named HASH
Lnet/minecraft/util/ColorCode;HASH:Ljava/lang/String;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lati;a:Lcom/mojang/serialization/Codec;
intermediary field_46234
Lnet/minecraft/class_8805;field_46234:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/util/ColorCode;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ColorCode
public ColorCode(int int2)
-
-
Method Details
-
asString
- Mappings:
Namespace Name Mixin selector official b
Lati;b()Ljava/lang/String;
intermediary method_53915
Lnet/minecraft/class_8805;method_53915()Ljava/lang/String;
named asString
Lnet/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 thergba
record component.- Returns:
- the value of the
rgba
record component
-