Record Class MindustryPixel
java.lang.Object
java.lang.Record
com.xpdustry.nohorny.common.MindustryPixel
- All Implemented Interfaces:
MindustryImage
public record MindustryPixel(int rgba, @Nullable MindustryAuthor author)
extends Record
implements MindustryImage
-
Constructor Summary
ConstructorsConstructorDescriptionMindustryPixel(int rgba, @Nullable MindustryAuthor author) Creates an instance of aMindustryPixelrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable MindustryAuthorauthor()Returns the value of theauthorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intintrgba()Returns the value of thergbarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MindustryPixel
Creates an instance of aMindustryPixelrecord class.- Parameters:
rgba- the value for thergbarecord componentauthor- the value for theauthorrecord component
-
-
Method Details
-
resolution
public int resolution()- Specified by:
resolutionin interfaceMindustryImage
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components 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
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-