Record Class GuiScrollSnapType
java.lang.Object
java.lang.Record
com.render.api.gui.GuiScrollSnapType
- Record Components:
axis- snapping axisstrictness- proximity or mandatory snapping
public record GuiScrollSnapType(GuiScrollSnapType.Axis axis, GuiScrollSnapType.Strictness strictness)
extends Record
Retained child scroll-snap policy.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiScrollSnapType(GuiScrollSnapType.Axis axis, GuiScrollSnapType.Strictness strictness) Creates an instance of aGuiScrollSnapTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionaxis()Returns the value of theaxisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestrictnessrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
-
Constructor Details
-
GuiScrollSnapType
Creates an instance of aGuiScrollSnapTyperecord class.- Parameters:
axis- the value for theaxisrecord componentstrictness- the value for thestrictnessrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
axis
-
strictness
Returns the value of thestrictnessrecord component.- Returns:
- the value of the
strictnessrecord component
-