Class ContextChain<S>
java.lang.Object
com.mojang.brigadier.context.ContextChain<S>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandContext<S> private final List<CommandContext<S>> private ContextChain<S> -
Constructor Summary
ConstructorsConstructorDescriptionContextChain(List<CommandContext<S>> modifiers, CommandContext<S> executable) -
Method Summary
Modifier and TypeMethodDescriptionintexecuteAll(S source, ResultConsumer<S> resultConsumer) getStage()static <S> intrunExecutable(CommandContext<S> executable, S source, ResultConsumer<S> resultConsumer, boolean forkedMode) static <S> Collection<S> runModifier(CommandContext<S> modifier, S source, ResultConsumer<S> resultConsumer, boolean forkedMode) static <S> Optional<ContextChain<S>> tryFlatten(CommandContext<S> rootContext)
-
Field Details
-
modifiers
-
executable
-
nextStageCache
-
-
Constructor Details
-
ContextChain
-
-
Method Details
-
tryFlatten
-
runModifier
public static <S> Collection<S> runModifier(CommandContext<S> modifier, S source, ResultConsumer<S> resultConsumer, boolean forkedMode) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
runExecutable
public static <S> int runExecutable(CommandContext<S> executable, S source, ResultConsumer<S> resultConsumer, boolean forkedMode) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
executeAll
- Throws:
CommandSyntaxException
-
getStage
-
getTopContext
-
nextStage
-