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 Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thebackgroundSpriterecord component.private final @Nullable IdentifierThe field for thedisabledScrollerSpriterecord component.private final booleanThe field for theresizingScrollbarrecord component.private final intThe field for thescrollbarMinHeightrecord component.private final intThe field for thescrollbarWidthrecord component.private final IdentifierThe field for thescrollerSpriterecord component.private final intThe field for thescrollRaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionScrollbarSettings(Identifier scrollerSprite, @Nullable Identifier disabledScrollerSprite, Identifier backgroundSprite, int scrollbarWidth, int scrollbarMinHeight, int scrollRate, boolean resizingScrollbar) Creates an instance of aScrollbarSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundSpriterecord component.@Nullable IdentifierReturns the value of thedisabledScrollerSpriterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theresizingScrollbarrecord component.intReturns the value of thescrollbarMinHeightrecord component.intReturns the value of thescrollbarWidthrecord component.Returns the value of thescrollerSpriterecord component.intReturns the value of thescrollRaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
scrollerSprite
The field for thescrollerSpriterecord component. -
disabledScrollerSprite
The field for thedisabledScrollerSpriterecord component. -
backgroundSprite
The field for thebackgroundSpriterecord component. -
scrollbarWidth
private final int scrollbarWidthThe field for thescrollbarWidthrecord component. -
scrollbarMinHeight
private final int scrollbarMinHeightThe field for thescrollbarMinHeightrecord component. -
scrollRate
private final int scrollRateThe field for thescrollRaterecord component. -
resizingScrollbar
private final boolean resizingScrollbarThe field for theresizingScrollbarrecord 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 aScrollbarSettingsrecord class.- Parameters:
scrollerSprite- the value for thescrollerSpriterecord componentdisabledScrollerSprite- the value for thedisabledScrollerSpriterecord componentbackgroundSprite- the value for thebackgroundSpriterecord componentscrollbarWidth- the value for thescrollbarWidthrecord componentscrollbarMinHeight- the value for thescrollbarMinHeightrecord componentscrollRate- the value for thescrollRaterecord componentresizingScrollbar- the value for theresizingScrollbarrecord 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. -
scrollerSprite
Returns the value of thescrollerSpriterecord component.- Returns:
- the value of the
scrollerSpriterecord component
-
disabledScrollerSprite
Returns the value of thedisabledScrollerSpriterecord component.- Returns:
- the value of the
disabledScrollerSpriterecord component
-
backgroundSprite
Returns the value of thebackgroundSpriterecord component.- Returns:
- the value of the
backgroundSpriterecord component
-
scrollbarWidth
public int scrollbarWidth()Returns the value of thescrollbarWidthrecord component.- Returns:
- the value of the
scrollbarWidthrecord component
-
scrollbarMinHeight
public int scrollbarMinHeight()Returns the value of thescrollbarMinHeightrecord component.- Returns:
- the value of the
scrollbarMinHeightrecord component
-
scrollRate
public int scrollRate()Returns the value of thescrollRaterecord component.- Returns:
- the value of the
scrollRaterecord component
-
resizingScrollbar
public boolean resizingScrollbar()Returns the value of theresizingScrollbarrecord component.- Returns:
- the value of the
resizingScrollbarrecord component
-