Record Class AbstractScrollArea.ScrollbarSettings

java.lang.Object
java.lang.Record
net.minecraft.client.gui.components.AbstractScrollArea.ScrollbarSettings
Enclosing class:
AbstractScrollArea

public static record AbstractScrollArea.ScrollbarSettings(Identifier scrollerSprite, @Nullable Identifier disabledScrollerSprite, Identifier backgroundSprite, int scrollbarWidth, int scrollbarMinHeight, int scrollRate, boolean resizingScrollbar) extends Record
  • Field Details

    • scrollerSprite

      private final Identifier scrollerSprite
      The field for the scrollerSprite record component.
    • disabledScrollerSprite

      private final @Nullable Identifier disabledScrollerSprite
      The field for the disabledScrollerSprite record component.
    • backgroundSprite

      private final Identifier backgroundSprite
      The field for the backgroundSprite record component.
    • scrollbarWidth

      private final int scrollbarWidth
      The field for the scrollbarWidth record component.
    • scrollbarMinHeight

      private final int scrollbarMinHeight
      The field for the scrollbarMinHeight record component.
    • scrollRate

      private final int scrollRate
      The field for the scrollRate record component.
    • resizingScrollbar

      private final boolean resizingScrollbar
      The field for the resizingScrollbar record component.
  • Constructor Details

    • ScrollbarSettings

      public ScrollbarSettings(Identifier scrollerSprite, @Nullable Identifier disabledScrollerSprite, Identifier backgroundSprite, int scrollbarWidth, int scrollbarMinHeight, int scrollRate, boolean resizingScrollbar)
      Creates an instance of a ScrollbarSettings record class.
      Parameters:
      scrollerSprite - the value for the scrollerSprite record component
      disabledScrollerSprite - the value for the disabledScrollerSprite record component
      backgroundSprite - the value for the backgroundSprite record component
      scrollbarWidth - the value for the scrollbarWidth record component
      scrollbarMinHeight - the value for the scrollbarMinHeight record component
      scrollRate - the value for the scrollRate record component
      resizingScrollbar - the value for the resizingScrollbar 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.
    • scrollerSprite

      public Identifier scrollerSprite()
      Returns the value of the scrollerSprite record component.
      Returns:
      the value of the scrollerSprite record component
    • disabledScrollerSprite

      public @Nullable Identifier disabledScrollerSprite()
      Returns the value of the disabledScrollerSprite record component.
      Returns:
      the value of the disabledScrollerSprite record component
    • backgroundSprite

      public Identifier backgroundSprite()
      Returns the value of the backgroundSprite record component.
      Returns:
      the value of the backgroundSprite record component
    • scrollbarWidth

      public int scrollbarWidth()
      Returns the value of the scrollbarWidth record component.
      Returns:
      the value of the scrollbarWidth record component
    • scrollbarMinHeight

      public int scrollbarMinHeight()
      Returns the value of the scrollbarMinHeight record component.
      Returns:
      the value of the scrollbarMinHeight record component
    • scrollRate

      public int scrollRate()
      Returns the value of the scrollRate record component.
      Returns:
      the value of the scrollRate record component
    • resizingScrollbar

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