Package net.minecraft.command.impl
Class ExecuteCommand
- java.lang.Object
-
- net.minecraft.command.impl.ExecuteCommand
-
public class ExecuteCommand extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
ExecuteCommand.IBooleanTest
(package private) static interface
ExecuteCommand.INumericTest
-
Field Summary
Fields Modifier and Type Field Description private static java.util.function.BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>>
CALLBACK_CHAINER
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_AREA_TOO_LARGE
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_CONDITIONAL_FAILED
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_CONDITIONAL_FAILED_COUNT
private static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
SUGGEST_PREDICATE
-
Constructor Summary
Constructors Constructor Description ExecuteCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?>
addConditional(com.mojang.brigadier.tree.CommandNode<CommandSource> p_210415_0_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> p_210415_1_, boolean p_210415_2_, ExecuteCommand.IBooleanTest p_210415_3_)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?>
addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSource> p_198394_0_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> p_198394_1_, boolean p_198394_2_)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?>
addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSource> p_212178_0_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> p_212178_1_, boolean p_212178_2_, boolean p_212178_3_)
private static boolean
checkCustomPredicate(CommandSource p_229767_0_, ILootCondition p_229767_1_)
private static int
checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212175_0_, boolean p_212175_1_)
private static int
checkMatchingData(IDataAccessor p_218831_0_, NBTPathArgument.NBTPath p_218831_1_)
private static java.util.OptionalInt
checkRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212169_0_, boolean p_212169_1_)
private static java.util.OptionalInt
checkRegions(ServerWorld p_198395_0_, BlockPos p_198395_1_, BlockPos p_198395_2_, BlockPos p_198395_3_, boolean p_198395_4_)
private static boolean
checkScore(com.mojang.brigadier.context.CommandContext<CommandSource> p_198371_0_, java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> p_198371_1_)
private static boolean
checkScore(com.mojang.brigadier.context.CommandContext<CommandSource> p_201115_0_, MinMaxBounds.IntBound p_201115_1_)
private static int
checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212173_0_, boolean p_212173_1_)
private static com.mojang.brigadier.Command<CommandSource>
createNumericConditionalHandler(boolean p_218834_0_, ExecuteCommand.INumericTest p_218834_1_)
private static java.util.Collection<CommandSource>
expect(com.mojang.brigadier.context.CommandContext<CommandSource> p_198411_0_, boolean p_198411_1_, boolean p_198411_2_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198378_0_)
private static CommandSource
storeData(CommandSource p_198397_0_, IDataAccessor p_198397_1_, NBTPathArgument.NBTPath p_198397_2_, java.util.function.IntFunction<INBT> p_198397_3_, boolean p_198397_4_)
private static CommandSource
storeValue(CommandSource p_209930_0_, java.util.Collection<java.lang.String> p_209930_1_, ScoreObjective p_209930_2_, boolean p_209930_3_)
private static CommandSource
storeValue(CommandSource p_209952_0_, CustomServerBossInfo p_209952_1_, boolean p_209952_2_, boolean p_209952_3_)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?>
wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> p_198392_0_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> p_198392_1_, boolean p_198392_2_)
-
-
-
Field Detail
-
ERROR_AREA_TOO_LARGE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_AREA_TOO_LARGE
-
ERROR_CONDITIONAL_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_CONDITIONAL_FAILED
-
ERROR_CONDITIONAL_FAILED_COUNT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_CONDITIONAL_FAILED_COUNT
-
CALLBACK_CHAINER
private static final java.util.function.BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> CALLBACK_CHAINER
-
SUGGEST_PREDICATE
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGEST_PREDICATE
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198378_0_)
-
wrapStores
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> p_198392_0_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> p_198392_1_, boolean p_198392_2_)
-
storeValue
private static CommandSource storeValue(CommandSource p_209930_0_, java.util.Collection<java.lang.String> p_209930_1_, ScoreObjective p_209930_2_, boolean p_209930_3_)
-
storeValue
private static CommandSource storeValue(CommandSource p_209952_0_, CustomServerBossInfo p_209952_1_, boolean p_209952_2_, boolean p_209952_3_)
-
storeData
private static CommandSource storeData(CommandSource p_198397_0_, IDataAccessor p_198397_1_, NBTPathArgument.NBTPath p_198397_2_, java.util.function.IntFunction<INBT> p_198397_3_, boolean p_198397_4_)
-
addConditionals
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSource> p_198394_0_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> p_198394_1_, boolean p_198394_2_)
-
createNumericConditionalHandler
private static com.mojang.brigadier.Command<CommandSource> createNumericConditionalHandler(boolean p_218834_0_, ExecuteCommand.INumericTest p_218834_1_)
-
checkMatchingData
private static int checkMatchingData(IDataAccessor p_218831_0_, NBTPathArgument.NBTPath p_218831_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkScore
private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSource> p_198371_0_, java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> p_198371_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkScore
private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSource> p_201115_0_, MinMaxBounds.IntBound p_201115_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkCustomPredicate
private static boolean checkCustomPredicate(CommandSource p_229767_0_, ILootCondition p_229767_1_)
-
expect
private static java.util.Collection<CommandSource> expect(com.mojang.brigadier.context.CommandContext<CommandSource> p_198411_0_, boolean p_198411_1_, boolean p_198411_2_)
-
addConditional
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> addConditional(com.mojang.brigadier.tree.CommandNode<CommandSource> p_210415_0_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> p_210415_1_, boolean p_210415_2_, ExecuteCommand.IBooleanTest p_210415_3_)
-
addIfBlocksConditional
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSource> p_212178_0_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> p_212178_1_, boolean p_212178_2_, boolean p_212178_3_)
-
checkIfRegions
private static int checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212175_0_, boolean p_212175_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkUnlessRegions
private static int checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212173_0_, boolean p_212173_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkRegions
private static java.util.OptionalInt checkRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212169_0_, boolean p_212169_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkRegions
private static java.util.OptionalInt checkRegions(ServerWorld p_198395_0_, BlockPos p_198395_1_, BlockPos p_198395_2_, BlockPos p_198395_3_, boolean p_198395_4_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-