Record Class ColorRGBA
java.lang.Object
java.lang.Record
net.minecraft.util.ColorRGBA
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rgba
private final int rgbaThe field for thergbarecord component. -
CODEC
-
-
Constructor Details
-
ColorRGBA
public ColorRGBA(int rgba) Creates an instance of aColorRGBArecord class.- Parameters:
rgba- the value for thergbarecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
rgba
public int rgba()Returns the value of thergbarecord component.- Returns:
- the value of the
rgbarecord component
-