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 beznamed rgbaintermediary comp_1971official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rgba
private final int rgbaThe field for thergbarecord component. -
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 aLbez;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ColorCode
public ColorCode(int rgba) Creates an instance of aColorCoderecord class.- Parameters:
rgba- the value for thergbarecord component
-
-
Method Details
-
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
-