Record Class NativeUiInputRouter.Result<K>
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInputRouter.Result<K>
- Enclosing class:
NativeUiInputRouter<K>
public static record NativeUiInputRouter.Result<K>(boolean consumed, List<NativeUiInputRouter.Event<K>> events)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(boolean consumed, List<NativeUiInputRouter.Event<K>> events) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanconsumed()Returns the value of theconsumedrecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
consumed- the value for theconsumedrecord componentevents- the value for theeventsrecord 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. -
consumed
public boolean consumed()Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-