Record Class TextSkin
java.lang.Object
java.lang.Record
cromveil.combatnumbers.client.skins.TextSkin
- All Implemented Interfaces:
Skin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextSkincreateVisual(String text) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefillColorrecord component.floatgetScale()final inthashCode()Returns a hash code value for this object.intReturns the value of theoutlineColorrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextSkin
-
TextSkin
Creates an instance of aTextSkinrecord class.- Parameters:
fillColor- the value for thefillColorrecord componentoutlineColor- the value for theoutlineColorrecord componentscale- the value for thescalerecord component
-
-
Method Details
-
createVisual
- Specified by:
createVisualin interfaceSkin
-
getScale
-
createDefault
-
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
public int outlineColor()Returns the value of theoutlineColorrecord component.- Returns:
- the value of the
outlineColorrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-