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

    Constructors
    Constructor
    Description
    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 a Options record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the alwaysHandleControllerDirection record component.
    boolean
    Returns the value of the alwaysHandlePointer record component.
    boolean
    Returns the value of the alwaysListenToInput record component.
    boolean
    Returns the value of the consumeHoverEvents record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the gamepadDeflectionMode record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hoverEnabled record component.
    boolean
    Returns the value of the inlineModal record component.
    boolean
    Returns the value of the modal record component.
    boolean
    Returns the value of the preventTouchInput record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the wildcard record component.
    Returns the value of the wildcardScope record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Options record class.
      Parameters:
      wildcardScope - the value for the wildcardScope record component
      alwaysHandlePointer - the value for the alwaysHandlePointer record component
      alwaysHandleControllerDirection - the value for the alwaysHandleControllerDirection record component
      wildcard - the value for the wildcard record component
      alwaysListenToInput - the value for the alwaysListenToInput record component
      modal - the value for the modal record component
      inlineModal - the value for the inlineModal record component
      hoverEnabled - the value for the hoverEnabled record component
      consumeHoverEvents - the value for the consumeHoverEvents record component
      preventTouchInput - the value for the preventTouchInput record component
      gamepadDeflectionMode - the value for the gamepadDeflectionMode 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.
    • wildcardScope

      public NativeUiInput.Scope wildcardScope()
      Returns the value of the wildcardScope record component.
      Returns:
      the value of the wildcardScope record component
    • alwaysHandlePointer

      public boolean alwaysHandlePointer()
      Returns the value of the alwaysHandlePointer record component.
      Returns:
      the value of the alwaysHandlePointer record component
    • alwaysHandleControllerDirection

      public boolean alwaysHandleControllerDirection()
      Returns the value of the alwaysHandleControllerDirection record component.
      Returns:
      the value of the alwaysHandleControllerDirection record component
    • wildcard

      public boolean wildcard()
      Returns the value of the wildcard record component.
      Returns:
      the value of the wildcard record component
    • alwaysListenToInput

      public boolean alwaysListenToInput()
      Returns the value of the alwaysListenToInput record component.
      Returns:
      the value of the alwaysListenToInput record component
    • modal

      public boolean modal()
      Returns the value of the modal record component.
      Returns:
      the value of the modal record component
    • inlineModal

      public boolean inlineModal()
      Returns the value of the inlineModal record component.
      Returns:
      the value of the inlineModal record component
    • hoverEnabled

      public boolean hoverEnabled()
      Returns the value of the hoverEnabled record component.
      Returns:
      the value of the hoverEnabled record component
    • consumeHoverEvents

      public boolean consumeHoverEvents()
      Returns the value of the consumeHoverEvents record component.
      Returns:
      the value of the consumeHoverEvents record component
    • preventTouchInput

      public boolean preventTouchInput()
      Returns the value of the preventTouchInput record component.
      Returns:
      the value of the preventTouchInput record component
    • gamepadDeflectionMode

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