Record Class NativeUiInput.Options
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.Options
- Enclosing class:
NativeUiInput
public static record NativeUiInput.Options(NativeUiInput.Scope wildcardScope, boolean alwaysHandlePointer, boolean alwaysHandleControllerDirection, boolean wildcard, boolean alwaysListenToInput, boolean modal, boolean inlineModal, boolean hoverEnabled, boolean consumeHoverEvents, boolean preventTouchInput, boolean gamepadDeflectionMode)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOptions(NativeUiInput.Scope wildcardScope, boolean alwaysHandlePointer, boolean alwaysHandleControllerDirection, boolean wildcard, boolean alwaysListenToInput, boolean modal, boolean inlineModal, boolean hoverEnabled, boolean consumeHoverEvents, boolean preventTouchInput, boolean gamepadDeflectionMode) Creates an instance of aOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealwaysHandleControllerDirectionrecord component.booleanReturns the value of thealwaysHandlePointerrecord component.booleanReturns the value of thealwaysListenToInputrecord component.booleanReturns the value of theconsumeHoverEventsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegamepadDeflectionModerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehoverEnabledrecord component.booleanReturns the value of theinlineModalrecord component.booleanmodal()Returns the value of themodalrecord component.booleanReturns the value of thepreventTouchInputrecord component.final StringtoString()Returns a string representation of this record class.booleanwildcard()Returns the value of thewildcardrecord component.Returns the value of thewildcardScoperecord component.
-
Constructor Details
-
Options
public Options(NativeUiInput.Scope wildcardScope, boolean alwaysHandlePointer, boolean alwaysHandleControllerDirection, boolean wildcard, boolean alwaysListenToInput, boolean modal, boolean inlineModal, boolean hoverEnabled, boolean consumeHoverEvents, boolean preventTouchInput, boolean gamepadDeflectionMode) Creates an instance of aOptionsrecord class.- Parameters:
wildcardScope- the value for thewildcardScoperecord componentalwaysHandlePointer- the value for thealwaysHandlePointerrecord componentalwaysHandleControllerDirection- the value for thealwaysHandleControllerDirectionrecord componentwildcard- the value for thewildcardrecord componentalwaysListenToInput- the value for thealwaysListenToInputrecord componentmodal- the value for themodalrecord componentinlineModal- the value for theinlineModalrecord componenthoverEnabled- the value for thehoverEnabledrecord componentconsumeHoverEvents- the value for theconsumeHoverEventsrecord componentpreventTouchInput- the value for thepreventTouchInputrecord componentgamepadDeflectionMode- the value for thegamepadDeflectionModerecord 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. -
wildcardScope
Returns the value of thewildcardScoperecord component.- Returns:
- the value of the
wildcardScoperecord component
-
alwaysHandlePointer
public boolean alwaysHandlePointer()Returns the value of thealwaysHandlePointerrecord component.- Returns:
- the value of the
alwaysHandlePointerrecord component
-
alwaysHandleControllerDirection
public boolean alwaysHandleControllerDirection()Returns the value of thealwaysHandleControllerDirectionrecord component.- Returns:
- the value of the
alwaysHandleControllerDirectionrecord component
-
wildcard
public boolean wildcard()Returns the value of thewildcardrecord component.- Returns:
- the value of the
wildcardrecord component
-
alwaysListenToInput
public boolean alwaysListenToInput()Returns the value of thealwaysListenToInputrecord component.- Returns:
- the value of the
alwaysListenToInputrecord component
-
modal
public boolean modal()Returns the value of themodalrecord component.- Returns:
- the value of the
modalrecord component
-
inlineModal
public boolean inlineModal()Returns the value of theinlineModalrecord component.- Returns:
- the value of the
inlineModalrecord component
-
hoverEnabled
public boolean hoverEnabled()Returns the value of thehoverEnabledrecord component.- Returns:
- the value of the
hoverEnabledrecord component
-
consumeHoverEvents
public boolean consumeHoverEvents()Returns the value of theconsumeHoverEventsrecord component.- Returns:
- the value of the
consumeHoverEventsrecord component
-
preventTouchInput
public boolean preventTouchInput()Returns the value of thepreventTouchInputrecord component.- Returns:
- the value of the
preventTouchInputrecord component
-
gamepadDeflectionMode
public boolean gamepadDeflectionMode()Returns the value of thegamepadDeflectionModerecord component.- Returns:
- the value of the
gamepadDeflectionModerecord component
-