Record Class FoliosReveal.Look
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.FoliosReveal.Look
- Enclosing interface:
FoliosReveal
public static record FoliosReveal.Look(float opacity, float dx, float dy, int tint, float runes)
extends Record
How a thing looks: how much it shows (0 not at all, 1 fully; items and scenes, which can't fade, show once past
a half), how far it is moved from its place in page pixels, a colour it is tinted towards (
tint's alpha
is how far: 0 not at all), and what share of its letters, if it is text, show as runes (0 none, 1 all).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatdx()Returns the value of thedxrecord component.floatdy()Returns the value of thedyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatopacity()Returns the value of theopacityrecord component.floatrunes()Returns the value of therunesrecord component.inttint()Returns the value of thetintrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SHOWN
-
HIDDEN
-
-
Constructor Details
-
Look
public Look(float opacity, float dx, float dy) -
Look
public Look(float opacity, float dx, float dy, int tint, float runes) Creates an instance of aLookrecord class.- Parameters:
opacity- the value for theopacityrecord componentdx- the value for thedxrecord componentdy- the value for thedyrecord componenttint- the value for thetintrecord componentrunes- the value for therunesrecord component
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
opacity
public float opacity()Returns the value of theopacityrecord component.- Returns:
- the value of the
opacityrecord component
-
dx
public float dx()Returns the value of thedxrecord component.- Returns:
- the value of the
dxrecord component
-
dy
public float dy()Returns the value of thedyrecord component.- Returns:
- the value of the
dyrecord component
-
tint
public int tint()Returns the value of thetintrecord component.- Returns:
- the value of the
tintrecord component
-
runes
public float runes()Returns the value of therunesrecord component.- Returns:
- the value of the
runesrecord component
-