Record Class NativeUiInput.Dispatch
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.Dispatch
- Enclosing class:
NativeUiInput
public static record NativeUiInput.Dispatch(int result, List<NativeUiInput.ButtonEvent> events, List<Integer> captureRequests)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDispatch(int result, List<NativeUiInput.ButtonEvent> events, List<Integer> captureRequests) Creates an instance of aDispatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecaptureRequestsrecord 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.intresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Dispatch
Creates an instance of aDispatchrecord class.- Parameters:
result- the value for theresultrecord componentevents- the value for theeventsrecord componentcaptureRequests- the value for thecaptureRequestsrecord 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. -
result
public int result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
captureRequests
-