Record Class CommandResponseTracker.DispatchWithArgs<Result,Element,Arg0,Arg1>
java.lang.Object
java.lang.Record
net.minecraft.server.commands.CommandResponseTracker.DispatchWithArgs<Result,Element,Arg0,Arg1>
- Enclosing class:
CommandResponseTracker<Element>
public static record CommandResponseTracker.DispatchWithArgs<Result,Element,Arg0,Arg1> (CommandResponseTracker.SingleHandlerWithArgs<Result,Element,Arg0,Arg1> onSingle, CommandResponseTracker.MultipleHandlerWithArgs<Result,Arg0,Arg1> onMultiple)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandResponseTracker.MultipleHandlerWithArgs<Result, Arg0, Arg1> The field for theonMultiplerecord component.private final CommandResponseTracker.SingleHandlerWithArgs<Result, Element, Arg0, Arg1> The field for theonSinglerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDispatchWithArgs(CommandResponseTracker.SingleHandlerWithArgs<Result, Element, Arg0, Arg1> onSingle, CommandResponseTracker.MultipleHandlerWithArgs<Result, Arg0, Arg1> onMultiple) Creates an instance of aDispatchWithArgsrecord 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 theonMultiplerecord component.onSingle()Returns the value of theonSinglerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
onSingle
The field for theonSinglerecord component. -
onMultiple
The field for theonMultiplerecord component.
-
-
Constructor Details
-
DispatchWithArgs
public DispatchWithArgs(CommandResponseTracker.SingleHandlerWithArgs<Result, Element, Arg0, Arg1> onSingle, CommandResponseTracker.MultipleHandlerWithArgs<Result, Arg0, Arg1> onMultiple) Creates an instance of aDispatchWithArgsrecord class.- Parameters:
onSingle- the value for theonSinglerecord componentonMultiple- the value for theonMultiplerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
onSingle
Returns the value of theonSinglerecord component.- Returns:
- the value of the
onSinglerecord component
-
onMultiple
Returns the value of theonMultiplerecord component.- Returns:
- the value of the
onMultiplerecord component
-