Record Class TextSkinDefinition
java.lang.Object
java.lang.Record
cromveil.combatnumbers.skins.TextSkinDefinition
- All Implemented Interfaces:
SkinDefinition
public record TextSkinDefinition(Integer fillColor, Integer outlineColor, float scale)
extends Record
implements SkinDefinition
-
Field Summary
Fields inherited from interface SkinDefinition
COLOR_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionTextSkinDefinition(Integer fillColor, Integer outlineColor, float scale) Creates an instance of aTextSkinDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefillColorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoutlineColorrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
TextSkinDefinition
Creates an instance of aTextSkinDefinitionrecord class.- Parameters:
fillColor- the value for thefillColorrecord componentoutlineColor- the value for theoutlineColorrecord componentscale- the value for thescalerecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceSkinDefinition
-
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. -
fillColor
Returns the value of thefillColorrecord component.- Returns:
- the value of the
fillColorrecord component
-
outlineColor
Returns the value of theoutlineColorrecord component.- Returns:
- the value of the
outlineColorrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Specified by:
scalein interfaceSkinDefinition- Returns:
- the value of the
scalerecord component
-