Record Class NativeUiInput.Mapping

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.Mapping
Enclosing class:
NativeUiInput

public static record NativeUiInput.Mapping(int source, int target, NativeUiInput.Kind kind, NativeUiInput.Scope scope, boolean firstRefusal, boolean handleSelect, boolean handleDeselect, boolean alternateScope, boolean consume, NativeUiInput.Condition condition, boolean ignoreScope) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Mapping(int source, int target, NativeUiInput.Kind kind, NativeUiInput.Scope scope, boolean firstRefusal, boolean handleSelect, boolean handleDeselect, boolean alternateScope, boolean consume, NativeUiInput.Condition condition, boolean ignoreScope)
    Creates an instance of a Mapping record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the alternateScope record component.
    Returns the value of the condition record component.
    boolean
    Returns the value of the consume record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the firstRefusal record component.
    boolean
    Returns the value of the handleDeselect record component.
    boolean
    Returns the value of the handleSelect record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the ignoreScope record component.
    Returns the value of the kind record component.
    Returns the value of the scope record component.
    int
    Returns the value of the source record component.
    int
    Returns the value of the target record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Mapping

      public Mapping(int source, int target, NativeUiInput.Kind kind, NativeUiInput.Scope scope, boolean firstRefusal, boolean handleSelect, boolean handleDeselect, boolean alternateScope, boolean consume, NativeUiInput.Condition condition, boolean ignoreScope)
      Creates an instance of a Mapping record class.
      Parameters:
      source - the value for the source record component
      target - the value for the target record component
      kind - the value for the kind record component
      scope - the value for the scope record component
      firstRefusal - the value for the firstRefusal record component
      handleSelect - the value for the handleSelect record component
      handleDeselect - the value for the handleDeselect record component
      alternateScope - the value for the alternateScope record component
      consume - the value for the consume record component
      condition - the value for the condition record component
      ignoreScope - the value for the ignoreScope 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.
    • source

      public int source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • target

      public int target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • kind

      public NativeUiInput.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • scope

      public NativeUiInput.Scope scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • firstRefusal

      public boolean firstRefusal()
      Returns the value of the firstRefusal record component.
      Returns:
      the value of the firstRefusal record component
    • handleSelect

      public boolean handleSelect()
      Returns the value of the handleSelect record component.
      Returns:
      the value of the handleSelect record component
    • handleDeselect

      public boolean handleDeselect()
      Returns the value of the handleDeselect record component.
      Returns:
      the value of the handleDeselect record component
    • alternateScope

      public boolean alternateScope()
      Returns the value of the alternateScope record component.
      Returns:
      the value of the alternateScope record component
    • consume

      public boolean consume()
      Returns the value of the consume record component.
      Returns:
      the value of the consume record component
    • condition

      public NativeUiInput.Condition condition()
      Returns the value of the condition record component.
      Returns:
      the value of the condition record component
    • ignoreScope

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