Record Class NativeUiInput
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput
public record NativeUiInput(NativeUiInput.Options options, List<NativeUiInput.Mapping> mappings, List<NativeUiInput.HoverBinding> hoverBindings)
extends Record
Native mapping factory fields, event phases, pointer scopes and double-press state.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordRetains the native raw phase; only phase one is a pressed controller event.static enumstatic final recordstatic final recordstatic final recordAncestors are supplied nearest first; native input tests only the nearest clipping ancestor.static final recordstatic final recordstatic enumstatic final recordstatic final recordstatic final recordstatic enumstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionNativeUiInput(NativeUiInput.Options options, List<NativeUiInput.Mapping> mappings, List<NativeUiInput.HoverBinding> hoverBindings) Creates an instance of aNativeUiInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehoverBindingsrecord component.mappings()Returns the value of themappingsrecord component.options()Returns the value of theoptionsrecord component.static NativeUiInputparse(com.google.gson.JsonObject properties) static intfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NativeUiInput
public NativeUiInput(NativeUiInput.Options options, List<NativeUiInput.Mapping> mappings, List<NativeUiInput.HoverBinding> hoverBindings) Creates an instance of aNativeUiInputrecord class.- Parameters:
options- the value for theoptionsrecord componentmappings- the value for themappingsrecord componenthoverBindings- the value for thehoverBindingsrecord component
-
-
Method Details
-
parse
-
symbol
-
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). -
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
mappings
Returns the value of themappingsrecord component.- Returns:
- the value of the
mappingsrecord component
-
hoverBindings
Returns the value of thehoverBindingsrecord component.- Returns:
- the value of the
hoverBindingsrecord component
-