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
    Modifier and Type
    Field
    Description
    static final LeaderStyle
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LeaderStyle(float scale, boolean shadowed, boolean seeThrough, org.bukkit.entity.Display.Billboard billboard, org.bukkit.entity.TextDisplay.TextAlignment alignment)
    Creates an instance of a LeaderStyle record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.entity.TextDisplay.TextAlignment
    Returns the value of the alignment record component.
    org.bukkit.entity.Display.Billboard
    Returns the value of the billboard record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the scale record component.
    boolean
    Returns the value of the seeThrough record component.
    boolean
    Returns the value of the shadowed record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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 a LeaderStyle record class.
      Parameters:
      scale - the value for the scale record component
      shadowed - the value for the shadowed record component
      seeThrough - the value for the seeThrough record component
      billboard - the value for the billboard record component
      alignment - the value for the alignment record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • scale

      public float scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • shadowed

      public boolean shadowed()
      Returns the value of the shadowed record component.
      Returns:
      the value of the shadowed record component
    • seeThrough

      public boolean seeThrough()
      Returns the value of the seeThrough record component.
      Returns:
      the value of the seeThrough record component
    • billboard

      public org.bukkit.entity.Display.Billboard billboard()
      Returns the value of the billboard record component.
      Returns:
      the value of the billboard record component
    • alignment

      public org.bukkit.entity.TextDisplay.TextAlignment alignment()
      Returns the value of the alignment record component.
      Returns:
      the value of the alignment record component