Record Class ScoreboardUiDefinitions.SidebarImage

java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.resourcepack.definition.ScoreboardUiDefinitions.SidebarImage
Enclosing class:
ScoreboardUiDefinitions

public static record ScoreboardUiDefinitions.SidebarImage(String match, String font, String texture, int width, int height, int offsetX, int offsetY, int rowHeight, String sourcePath, ScoreboardUiDefinitions.PanelBackground background, int sourceWidth, int sourceHeight, boolean keepRatio) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    SidebarImage(String match, String font, String texture, int width, int height, int offsetX, int offsetY, int rowHeight, String sourcePath, ScoreboardUiDefinitions.PanelBackground background, int sourceWidth, int sourceHeight, boolean keepRatio)
    Creates an instance of a SidebarImage record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the background record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the font record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the height record component.
    boolean
    Returns the value of the keepRatio record component.
    Returns the value of the match record component.
    int
    Returns the value of the offsetX record component.
    int
    Returns the value of the offsetY record component.
    int
    Returns the value of the rowHeight record component.
    int
    Returns the value of the sourceHeight record component.
    Returns the value of the sourcePath record component.
    int
    Returns the value of the sourceWidth record component.
    Returns the value of the texture record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the width record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SidebarImage

      public SidebarImage(String match, String font, String texture, int width, int height, int offsetX, int offsetY, int rowHeight, String sourcePath, ScoreboardUiDefinitions.PanelBackground background, int sourceWidth, int sourceHeight, boolean keepRatio)
      Creates an instance of a SidebarImage record class.
      Parameters:
      match - the value for the match record component
      font - the value for the font record component
      texture - the value for the texture record component
      width - the value for the width record component
      height - the value for the height record component
      offsetX - the value for the offsetX record component
      offsetY - the value for the offsetY record component
      rowHeight - the value for the rowHeight record component
      sourcePath - the value for the sourcePath record component
      background - the value for the background record component
      sourceWidth - the value for the sourceWidth record component
      sourceHeight - the value for the sourceHeight record component
      keepRatio - the value for the keepRatio 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.
    • match

      public String match()
      Returns the value of the match record component.
      Returns:
      the value of the match record component
    • font

      public String font()
      Returns the value of the font record component.
      Returns:
      the value of the font record component
    • texture

      public String texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • offsetX

      public int offsetX()
      Returns the value of the offsetX record component.
      Returns:
      the value of the offsetX record component
    • offsetY

      public int offsetY()
      Returns the value of the offsetY record component.
      Returns:
      the value of the offsetY record component
    • rowHeight

      public int rowHeight()
      Returns the value of the rowHeight record component.
      Returns:
      the value of the rowHeight record component
    • sourcePath

      public String sourcePath()
      Returns the value of the sourcePath record component.
      Returns:
      the value of the sourcePath record component
    • background

      Returns the value of the background record component.
      Returns:
      the value of the background record component
    • sourceWidth

      public int sourceWidth()
      Returns the value of the sourceWidth record component.
      Returns:
      the value of the sourceWidth record component
    • sourceHeight

      public int sourceHeight()
      Returns the value of the sourceHeight record component.
      Returns:
      the value of the sourceHeight record component
    • keepRatio

      public boolean keepRatio()
      Returns the value of the keepRatio record component.
      Returns:
      the value of the keepRatio record component