Record Class ColourScheme.Colour
java.lang.Object
java.lang.Record
net.minecraftforge.fml.earlydisplay.ColourScheme.Colour
- Enclosing class:
- ColourScheme
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionColour(int red, int green, int blue) Creates an instance of aColourrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintblue()Returns the value of thebluerecord component.floatbluef()final booleanIndicates whether some other object is "equal to" this one.intgreen()Returns the value of thegreenrecord component.floatgreenf()final inthashCode()Returns a hash code value for this object.intpackedint(int a) intred()Returns the value of theredrecord component.floatredf()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
red
private final int redThe field for theredrecord component. -
green
private final int greenThe field for thegreenrecord component. -
blue
private final int blueThe field for thebluerecord component.
-
-
Constructor Details
-
Colour
public Colour(int red, int green, int blue) Creates an instance of aColourrecord class.- Parameters:
red- the value for theredrecord componentgreen- the value for thegreenrecord componentblue- the value for thebluerecord component
-
-
Method Details
-
redf
public float redf() -
greenf
public float greenf() -
bluef
public float bluef() -
packedint
public int packedint(int a) -
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 '=='. -
red
public int red()Returns the value of theredrecord component.- Returns:
- the value of the
redrecord component
-
green
public int green()Returns the value of thegreenrecord component.- Returns:
- the value of the
greenrecord component
-
blue
public int blue()Returns the value of thebluerecord component.- Returns:
- the value of the
bluerecord component
-