Record Class LeaderStyle
java.lang.Object
java.lang.Record
xericker.arenalegends.gameplay.leaderboard.LeaderStyle
public record LeaderStyle(float scale, boolean shadowed, boolean seeThrough, org.bukkit.entity.Display.Billboard billboard, org.bukkit.entity.TextDisplay.TextAlignment alignment)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLeaderStyle(float scale, boolean shadowed, boolean seeThrough, org.bukkit.entity.Display.Billboard billboard, org.bukkit.entity.TextDisplay.TextAlignment alignment) Creates an instance of aLeaderStylerecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.TextDisplay.TextAlignmentReturns the value of thealignmentrecord component.org.bukkit.entity.Display.BillboardReturns the value of thebillboardrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatscale()Returns the value of thescalerecord component.booleanReturns the value of theseeThroughrecord component.booleanshadowed()Returns the value of theshadowedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
LeaderStyle
public LeaderStyle(float scale, boolean shadowed, boolean seeThrough, org.bukkit.entity.Display.Billboard billboard, org.bukkit.entity.TextDisplay.TextAlignment alignment) Creates an instance of aLeaderStylerecord class.- Parameters:
scale- the value for thescalerecord componentshadowed- the value for theshadowedrecord componentseeThrough- the value for theseeThroughrecord componentbillboard- the value for thebillboardrecord componentalignment- the value for thealignmentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
shadowed
public boolean shadowed()Returns the value of theshadowedrecord component.- Returns:
- the value of the
shadowedrecord component
-
seeThrough
public boolean seeThrough()Returns the value of theseeThroughrecord component.- Returns:
- the value of the
seeThroughrecord component
-
billboard
public org.bukkit.entity.Display.Billboard billboard()Returns the value of thebillboardrecord component.- Returns:
- the value of the
billboardrecord component
-
alignment
public org.bukkit.entity.TextDisplay.TextAlignment alignment()Returns the value of thealignmentrecord component.- Returns:
- the value of the
alignmentrecord component
-