net.minecraft.command

public class ElementAggregator<Element>

net.minecraft.server.commands.CommandResponseTracker
net.minecraft.class_1_1083
net.minecraft.command.ElementAggregator

Field summary

Modifier and TypeField
private int
totalValue
field_1_7556
total
private Element
onlyElement
field_1_7554
uniqueTarget
private int
elementCount
field_1_7552
numTargets
private Element
onlyNonZeroElement
field_1_7555
uniqueNonzeroTarget
private int
nonZeroElementCount
field_1_7553
numNonzeroTargets

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static <T> ElementAggregator<T>
create()
method_1_6908()
create()
public void
track(Element element, int value)
method_1_6936(Element arg0, int arg1)
add(Element target, int count)
public void
track(Element element, boolean value)
method_1_6937(Element arg0, boolean arg1)
add(Element target, boolean success)
public void
track(Element element)
method_1_6935(Element arg0)
add(Element target)
private Element
firstElement(CommandResponseTracker$ElementType type)
method_1_6913(class_1_1083$class_1_1087 arg0)
getUniqueTarget(ElementAggregator$QueryType type)
private int
elementCount(CommandResponseTracker$ElementType type)
method_1_6912(class_1_1083$class_1_1087 arg0)
getNumTargets(ElementAggregator$QueryType type)
public int
totalValue()
method_1_6934()
getTotal()
public static <Element> ElementAggregator$Reporter<Element>
messages(CommandResponseTracker$SingleHandler<Component, Element> onSingle, CommandResponseTracker$MultipleHandler<Component> onMultiple)
method_1_6925(class_1_1083$class_1_1097<class_2561, Element> arg0, class_1_1083$class_1_1094<class_2561> arg1)
reporter(ElementAggregator$OnSingleFunction<Text, Element> onSingle, ElementAggregator$OnMultipleFunction<Text> onMultiple)
public static <Element> ElementAggregator$Reporter<Element>
messages(CommandResponseTracker$ErrorHandler onZero, CommandResponseTracker$SingleHandler<Component, Element> onSingle, CommandResponseTracker$MultipleHandler<Component> onMultiple)
method_1_6922(class_1_1083$class_1_1088 arg0, class_1_1083$class_1_1097<class_2561, Element> arg1, class_1_1083$class_1_1094<class_2561> arg2)
reporter(ElementAggregator$ErrorSupplier onZero, ElementAggregator$OnSingleFunction<Text, Element> onSingle, ElementAggregator$OnMultipleFunction<Text> onMultiple)
public static <Element> ElementAggregator$Reporter<Element>
messages(com.mojang.brigadier.exceptions.SimpleCommandExceptionType onZero, CommandResponseTracker$SingleHandler<Component, Element> onSingle, CommandResponseTracker$MultipleHandler<Component> onMultiple)
method_1_6919(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, class_1_1083$class_1_1097<class_2561, Element> arg1, class_1_1083$class_1_1094<class_2561> arg2)
reporter(com.mojang.brigadier.exceptions.SimpleCommandExceptionType onZero, ElementAggregator$OnSingleFunction<Text, Element> onSingle, ElementAggregator$OnMultipleFunction<Text> onMultiple)
public <Result> Result
dispatch(CommandResponseTracker$ElementType elementType, CommandResponseTracker$Dispatch<Result, ? super Element> dispatch)
method_1_6909(class_1_1083$class_1_1087 arg0, class_1_1083$class_1_1084<Result, ? super Element> arg1)
report(ElementAggregator$QueryType queryType, ElementAggregator$NonzeroReporter<Result, ? super Element> reporter)
public int
sendFeedback(CommandSourceStack sourceStack, boolean broadcast, CommandResponseTracker$ElementType elementType, CommandResponseTracker$Messages<? super Element> messages)
method_1_6928(class_2168 arg0, boolean arg1, class_1_1083$class_1_1087 arg2, class_1_1083$class_1_1091<? super Element> arg3)
report(ServerCommandSource source, boolean broadcastToOps, ElementAggregator$QueryType queryType, ElementAggregator$Reporter<? super Element> reporter)
public int
sendFeedback(CommandSourceStack sourceStack, boolean broadcast, CommandResponseTracker$Messages<? super Element> messages)
method_1_6931(class_2168 arg0, boolean arg1, class_1_1083$class_1_1091<? super Element> arg2)
report(ServerCommandSource source, boolean broadcastToOps, ElementAggregator$Reporter<? super Element> reporter)
public static <Element, Arg> ElementAggregator$Reporter1<Element, Arg>
messages(CommandResponseTracker$SingleHandlerWithArg<Component, Element, Arg> onSingle, CommandResponseTracker$MultipleHandlerWithArg<Component, Arg> onMultiple)
method_1_6926(class_1_1083$class_1_1098<class_2561, Element, Arg> arg0, class_1_1083$class_1_1095<class_2561, Arg> arg1)
reporter1(ElementAggregator$OnSingleFunction1<Text, Element, Arg> onSingle, ElementAggregator$OnMultipleFunction1<Text, Arg> onMultiple)
public static <Element, Arg> ElementAggregator$Reporter1<Element, Arg>
messages(CommandResponseTracker$ErrorHandlerWithArg<Arg> onZero, CommandResponseTracker$SingleHandlerWithArg<Component, Element, Arg> onSingle, CommandResponseTracker$MultipleHandlerWithArg<Component, Arg> onMultiple)
method_1_6923(class_1_1083$class_1_1089<Arg> arg0, class_1_1083$class_1_1098<class_2561, Element, Arg> arg1, class_1_1083$class_1_1095<class_2561, Arg> arg2)
reporter1(ElementAggregator$ToErrorFunction<Arg> onZero, ElementAggregator$OnSingleFunction1<Text, Element, Arg> onSingle, ElementAggregator$OnMultipleFunction1<Text, Arg> onMultiple)
public static <Element, Arg> ElementAggregator$Reporter1<Element, Arg>
messages(com.mojang.brigadier.exceptions.SimpleCommandExceptionType onZero, CommandResponseTracker$SingleHandlerWithArg<Component, Element, Arg> onSingle, CommandResponseTracker$MultipleHandlerWithArg<Component, Arg> onMultiple)
method_1_6920(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, class_1_1083$class_1_1098<class_2561, Element, Arg> arg1, class_1_1083$class_1_1095<class_2561, Arg> arg2)
reporter1(com.mojang.brigadier.exceptions.SimpleCommandExceptionType onZero, ElementAggregator$OnSingleFunction1<Text, Element, Arg> onSingle, ElementAggregator$OnMultipleFunction1<Text, Arg> onMultiple)
public <Result, Arg> Result
dispatch(CommandResponseTracker$ElementType elementType, CommandResponseTracker$DispatchWithArg<Result, ? super Element, Arg> dispatch, Arg argument)
method_1_6910(class_1_1083$class_1_1087 arg0, class_1_1083$class_1_1085<Result, ? super Element, Arg> arg1, Arg arg2)
report(ElementAggregator$QueryType queryType, ElementAggregator$NonzeroReporter1<Result, ? super Element, Arg> reporter, Arg arg)
public <Arg> int
sendFeedback(CommandSourceStack sourceStack, boolean broadcast, CommandResponseTracker$ElementType elementType, CommandResponseTracker$MessagesWithArg<? super Element, Arg> messages, Arg argument)
method_1_6929(class_2168 arg0, boolean arg1, class_1_1083$class_1_1087 arg2, class_1_1083$class_1_1092<? super Element, Arg> arg3, Arg arg4)
report(ServerCommandSource source, boolean broadcastToOps, ElementAggregator$QueryType queryType, ElementAggregator$Reporter1<? super Element, Arg> reporter, Arg arg)
public <Arg> int
sendFeedback(CommandSourceStack sourceStack, boolean broadcast, CommandResponseTracker$MessagesWithArg<? super Element, Arg> messages, Arg argument)
method_1_6932(class_2168 arg0, boolean arg1, class_1_1083$class_1_1092<? super Element, Arg> arg2, Arg arg3)
report(ServerCommandSource source, boolean broadcastToOps, ElementAggregator$Reporter1<? super Element, Arg> reporter, Arg arg)
public static <Element, Arg0, Arg1> ElementAggregator$Reporter2<Element, Arg0, Arg1>
messages(CommandResponseTracker$SingleHandlerWithArgs<Component, Element, Arg0, Arg1> onSingle, CommandResponseTracker$MultipleHandlerWithArgs<Component, Arg0, Arg1> onMultiple)
method_1_6927(class_1_1083$class_1_1099<class_2561, Element, Arg0, Arg1> arg0, class_1_1083$class_1_1096<class_2561, Arg0, Arg1> arg1)
reporter2(ElementAggregator$OnSingleFunction2<Text, Element, Arg0, Arg1> onSingle, ElementAggregator$OnMultipleFunction2<Text, Arg0, Arg1> onMultiple)
public static <Element, Arg0, Arg1> ElementAggregator$Reporter2<Element, Arg0, Arg1>
messages(CommandResponseTracker$ErrorHandlerWithArgs<Arg0, Arg1> onZero, CommandResponseTracker$SingleHandlerWithArgs<Component, Element, Arg0, Arg1> onSingle, CommandResponseTracker$MultipleHandlerWithArgs<Component, Arg0, Arg1> onMultiple)
method_1_6924(class_1_1083$class_1_1090<Arg0, Arg1> arg0, class_1_1083$class_1_1099<class_2561, Element, Arg0, Arg1> arg1, class_1_1083$class_1_1096<class_2561, Arg0, Arg1> arg2)
reporter2(ElementAggregator$ToErrorBiFunction<Arg0, Arg1> onZero, ElementAggregator$OnSingleFunction2<Text, Element, Arg0, Arg1> onSingle, ElementAggregator$OnMultipleFunction2<Text, Arg0, Arg1> onMultiple)
public static <Element, Arg0, Arg1> ElementAggregator$Reporter2<Element, Arg0, Arg1>
messages(com.mojang.brigadier.exceptions.SimpleCommandExceptionType onZero, CommandResponseTracker$SingleHandlerWithArgs<Component, Element, Arg0, Arg1> onSingle, CommandResponseTracker$MultipleHandlerWithArgs<Component, Arg0, Arg1> onMultiple)
method_1_6921(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, class_1_1083$class_1_1099<class_2561, Element, Arg0, Arg1> arg1, class_1_1083$class_1_1096<class_2561, Arg0, Arg1> arg2)
reporter2(com.mojang.brigadier.exceptions.SimpleCommandExceptionType onZero, ElementAggregator$OnSingleFunction2<Text, Element, Arg0, Arg1> onSingle, ElementAggregator$OnMultipleFunction2<Text, Arg0, Arg1> onMultiple)
public <Result, Arg0, Arg1> Result
dispatch(CommandResponseTracker$ElementType elementType, CommandResponseTracker$DispatchWithArgs<Result, ? super Element, Arg0, Arg1> messages, Arg0 argument0, Arg1 argument1)
method_1_6911(class_1_1083$class_1_1087 arg0, class_1_1083$class_1_1086<Result, ? super Element, Arg0, Arg1> arg1, Arg0 arg2, Arg1 arg3)
report(ElementAggregator$QueryType queryType, ElementAggregator$NonzeroReporter2<Result, ? super Element, Arg0, Arg1> reporter, Arg0 arg0, Arg1 arg1)
public <Arg0, Arg1> int
sendFeedback(CommandSourceStack sourceStack, boolean broadcast, CommandResponseTracker$ElementType elementType, CommandResponseTracker$MessagesWithArgs<? super Element, Arg0, Arg1> messages, Arg0 argument0, Arg1 argument1)
method_1_6930(class_2168 arg0, boolean arg1, class_1_1083$class_1_1087 arg2, class_1_1083$class_1_1093<? super Element, Arg0, Arg1> arg3, Arg0 arg4, Arg1 arg5)
report(ServerCommandSource source, boolean broadcastToOps, ElementAggregator$QueryType queryType, ElementAggregator$Reporter2<? super Element, Arg0, Arg1> reporter, Arg0 arg0, Arg1 arg1)
public <Arg0, Arg1> int
sendFeedback(CommandSourceStack sourceStack, boolean broadcast, CommandResponseTracker$MessagesWithArgs<? super Element, Arg0, Arg1> messages, Arg0 argument0, Arg1 argument1)
method_1_6933(class_2168 arg0, boolean arg1, class_1_1083$class_1_1093<? super Element, Arg0, Arg1> arg2, Arg0 arg3, Arg1 arg4)
report(ServerCommandSource source, boolean broadcastToOps, ElementAggregator$Reporter2<? super Element, Arg0, Arg1> reporter2, Arg0 arg0, Arg1 arg1)
private Text
lambda$sendFeedback$2(CommandResponseTracker$ElementType arg0, CommandResponseTracker$MessagesWithArgs arg1, Object arg2, Object arg3)
method_1_6918(class_1_1083$class_1_1087 arg0, class_1_1083$class_1_1093 arg1, Object arg2, Object arg3)
method_1_6918(ElementAggregator$QueryType arg0, ElementAggregator$Reporter2 arg1, Object arg2, Object arg3)
private static com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$messages$1(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, Object arg1, Object arg2)
method_1_6915(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, Object arg1, Object arg2)
method_1_6915(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, Object arg0, Object arg1)
private Text
lambda$sendFeedback$1(CommandResponseTracker$ElementType arg0, CommandResponseTracker$MessagesWithArg arg1, Object arg2)
method_1_6917(class_1_1083$class_1_1087 arg0, class_1_1083$class_1_1092 arg1, Object arg2)
method_1_6917(ElementAggregator$QueryType arg0, ElementAggregator$Reporter1 arg1, Object arg2)
private static com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$messages$0(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, Object arg1)
method_1_6914(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, Object arg1)
method_1_6914(com.mojang.brigadier.exceptions.SimpleCommandExceptionType arg0, Object arg)
private Text
lambda$sendFeedback$0(CommandResponseTracker$ElementType arg0, CommandResponseTracker$Messages arg1)
method_1_6916(class_1_1083$class_1_1087 arg0, class_1_1083$class_1_1091 arg1)
method_1_6916(ElementAggregator$QueryType arg0, ElementAggregator$Reporter arg1)