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
ConstructorsConstructorDescriptionMapping(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 aMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealternateScoperecord component.Returns the value of theconditionrecord component.booleanconsume()Returns the value of theconsumerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefirstRefusalrecord component.booleanReturns the value of thehandleDeselectrecord component.booleanReturns the value of thehandleSelectrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreScoperecord component.kind()Returns the value of thekindrecord component.scope()Returns the value of thescoperecord component.intsource()Returns the value of thesourcerecord component.inttarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aMappingrecord class.- Parameters:
source- the value for thesourcerecord componenttarget- the value for thetargetrecord componentkind- the value for thekindrecord componentscope- the value for thescoperecord componentfirstRefusal- the value for thefirstRefusalrecord componenthandleSelect- the value for thehandleSelectrecord componenthandleDeselect- the value for thehandleDeselectrecord componentalternateScope- the value for thealternateScoperecord componentconsume- the value for theconsumerecord componentcondition- the value for theconditionrecord componentignoreScope- the value for theignoreScoperecord 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. -
source
public int source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
target
public int target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
firstRefusal
public boolean firstRefusal()Returns the value of thefirstRefusalrecord component.- Returns:
- the value of the
firstRefusalrecord component
-
handleSelect
public boolean handleSelect()Returns the value of thehandleSelectrecord component.- Returns:
- the value of the
handleSelectrecord component
-
handleDeselect
public boolean handleDeselect()Returns the value of thehandleDeselectrecord component.- Returns:
- the value of the
handleDeselectrecord component
-
alternateScope
public boolean alternateScope()Returns the value of thealternateScoperecord component.- Returns:
- the value of the
alternateScoperecord component
-
consume
public boolean consume()Returns the value of theconsumerecord component.- Returns:
- the value of the
consumerecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
ignoreScope
public boolean ignoreScope()Returns the value of theignoreScoperecord component.- Returns:
- the value of the
ignoreScoperecord component
-