Record Class BlockPalette.Entry
java.lang.Object
java.lang.Record
dev.despical.pixelpainter.image.BlockPalette.Entry
- Record Components:
material- Bukkit material nameblockData- canonical placement datargb- packed representative sRGB colorlab- cached Oklab coordinates, treated as read-only
- Enclosing class:
BlockPalette
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockDatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]lab()Returns the value of thelabrecord component.material()Returns the value of thematerialrecord component.intrgb()Returns the value of thergbrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
material
-
blockData
-
rgb
-
lab
-