Record Class BedrockScoreboardImages.Background

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.hud.BedrockScoreboardImages.Background
Enclosing class:
BedrockScoreboardImages

public static record BedrockScoreboardImages.Background(net.minecraft.resources.Identifier texture, float alpha, int baseWidth, int baseHeight, int slice, int paddingX, int paddingY, int rowOffsetX, int rowOffsetY) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Background(net.minecraft.resources.Identifier texture, float alpha, int baseWidth, int baseHeight, int slice, int paddingX, int paddingY, int rowOffsetX, int rowOffsetY)
    Creates an instance of a Background record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the alpha record component.
    int
    Returns the value of the baseHeight record component.
    int
    Returns the value of the baseWidth record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the paddingX record component.
    int
    Returns the value of the paddingY record component.
    int
    Returns the value of the rowOffsetX record component.
    int
    Returns the value of the rowOffsetY record component.
    int
    Returns the value of the slice record component.
    net.minecraft.resources.Identifier
    Returns the value of the texture record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

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

    • Background

      public Background(net.minecraft.resources.Identifier texture, float alpha, int baseWidth, int baseHeight, int slice, int paddingX, int paddingY, int rowOffsetX, int rowOffsetY)
      Creates an instance of a Background record class.
      Parameters:
      texture - the value for the texture record component
      alpha - the value for the alpha record component
      baseWidth - the value for the baseWidth record component
      baseHeight - the value for the baseHeight record component
      slice - the value for the slice record component
      paddingX - the value for the paddingX record component
      paddingY - the value for the paddingY record component
      rowOffsetX - the value for the rowOffsetX record component
      rowOffsetY - the value for the rowOffsetY 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.
    • texture

      public net.minecraft.resources.Identifier texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • alpha

      public float alpha()
      Returns the value of the alpha record component.
      Returns:
      the value of the alpha record component
    • baseWidth

      public int baseWidth()
      Returns the value of the baseWidth record component.
      Returns:
      the value of the baseWidth record component
    • baseHeight

      public int baseHeight()
      Returns the value of the baseHeight record component.
      Returns:
      the value of the baseHeight record component
    • slice

      public int slice()
      Returns the value of the slice record component.
      Returns:
      the value of the slice record component
    • paddingX

      public int paddingX()
      Returns the value of the paddingX record component.
      Returns:
      the value of the paddingX record component
    • paddingY

      public int paddingY()
      Returns the value of the paddingY record component.
      Returns:
      the value of the paddingY record component
    • rowOffsetX

      public int rowOffsetX()
      Returns the value of the rowOffsetX record component.
      Returns:
      the value of the rowOffsetX record component
    • rowOffsetY

      public int rowOffsetY()
      Returns the value of the rowOffsetY record component.
      Returns:
      the value of the rowOffsetY record component