Record Class TextScreen
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.TextScreen
-
Constructor Summary
ConstructorsConstructorDescriptionTextScreen(String background, boolean hasShadow, boolean seeThrough, int animationTime, int liveTime, int width, float scale, float offsetX, float offsetY, float offsetZ) Creates an instance of aTextScreenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theanimationTimerecord component.Returns the value of thebackgroundrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.booleanbooleanReturns the value of thehasShadowrecord component.intliveTime()Returns the value of theliveTimerecord component.floatoffsetX()Returns the value of theoffsetXrecord component.floatoffsetY()Returns the value of theoffsetYrecord component.floatoffsetZ()Returns the value of theoffsetZrecord component.floatscale()Returns the value of thescalerecord component.booleanReturns the value of theseeThroughrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
TextScreen
public TextScreen(String background, boolean hasShadow, boolean seeThrough, int animationTime, int liveTime, int width, float scale, float offsetX, float offsetY, float offsetZ) Creates an instance of aTextScreenrecord class.- Parameters:
background- the value for thebackgroundrecord componenthasShadow- the value for thehasShadowrecord componentseeThrough- the value for theseeThroughrecord componentanimationTime- the value for theanimationTimerecord componentliveTime- the value for theliveTimerecord componentwidth- the value for thewidthrecord componentscale- the value for thescalerecord componentoffsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord componentoffsetZ- the value for theoffsetZrecord component
-
-
Method Details
-
hasAnimation
public boolean hasAnimation() -
hasLiveTime
public boolean hasLiveTime() -
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. -
background
Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-
hasShadow
public boolean hasShadow()Returns the value of thehasShadowrecord component.- Returns:
- the value of the
hasShadowrecord component
-
seeThrough
public boolean seeThrough()Returns the value of theseeThroughrecord component.- Returns:
- the value of the
seeThroughrecord component
-
animationTime
public int animationTime()Returns the value of theanimationTimerecord component.- Returns:
- the value of the
animationTimerecord component
-
liveTime
public int liveTime()Returns the value of theliveTimerecord component.- Returns:
- the value of the
liveTimerecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
offsetX
public float offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the
offsetXrecord component
-
offsetY
public float offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the
offsetYrecord component
-
offsetZ
public float offsetZ()Returns the value of theoffsetZrecord component.- Returns:
- the value of the
offsetZrecord component
-