Package net.minecraft.server.commands
Class ExecuteCommand
java.lang.Object
net.minecraft.server.commands.ExecuteCommand
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface(package private) static interface - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSourceStack>>private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final intprivate static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_137075_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_137076_, boolean p_137077_, ExecuteCommand.CommandPredicate p_137078_) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_214438_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> p_214439_, boolean p_214440_, CommandBuildContext p_214441_) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_137080_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_137081_, boolean p_137082_, boolean p_137083_) private static booleancheckCustomPredicate(CommandSourceStack p_137105_, LootItemCondition p_137106_) private static intcheckIfRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137068_, boolean p_137069_) private static intcheckMatchingData(DataAccessor p_137146_, NbtPathArgument.NbtPath p_137147_) private static OptionalIntcheckRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137221_, boolean p_137222_) private static OptionalIntcheckRegions(ServerLevel p_137037_, BlockPos p_137038_, BlockPos p_137039_, BlockPos p_137040_, boolean p_137041_) private static booleancheckScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137065_, BiPredicate<Integer, Integer> p_137066_) private static booleancheckScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137059_, MinMaxBounds.Ints p_137060_) private static intcheckUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137194_, boolean p_137195_) private static com.mojang.brigadier.Command<CommandSourceStack>createNumericConditionalHandler(boolean p_137167_, ExecuteCommand.CommandNumericPredicate p_137168_) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>createRelationOperations(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_265189_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> p_265783_) private static com.mojang.brigadier.RedirectModifier<CommandSourceStack>expandOneToManyEntityRelation(Function<Entity, Stream<Entity>> p_265496_) private static com.mojang.brigadier.RedirectModifier<CommandSourceStack>expandOneToOneEntityRelation(Function<Entity, Optional<Entity>> p_265114_) private static Collection<CommandSourceStack>expect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137071_, boolean p_137072_, boolean p_137073_) private static booleanisChunkLoaded(ServerLevel p_265261_, BlockPos p_265260_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214435_, CommandBuildContext p_214436_) private static CommandSourceStackspawnEntityAndRedirect(CommandSourceStack p_270320_, Holder.Reference<EntityType<?>> p_270344_) private static CommandSourceStackstoreData(CommandSourceStack p_137118_, DataAccessor p_137119_, NbtPathArgument.NbtPath p_137120_, IntFunction<Tag> p_137121_, boolean p_137122_) private static CommandSourceStackstoreValue(CommandSourceStack p_137108_, Collection<String> p_137109_, Objective p_137110_, boolean p_137111_) private static CommandSourceStackstoreValue(CommandSourceStack p_137113_, CustomBossEvent p_137114_, boolean p_137115_, boolean p_137116_) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSourceStack> p_137094_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> p_137095_, boolean p_137096_)  
- 
Field Details
- 
MAX_TEST_AREA
private static final int MAX_TEST_AREA- See Also:
 
 - 
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 BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSourceStack>> CALLBACK_CHAINER - 
SUGGEST_PREDICATE
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> SUGGEST_PREDICATE 
 - 
 - 
Constructor Details
- 
ExecuteCommand
public ExecuteCommand() 
 - 
 - 
Method Details
- 
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214435_, CommandBuildContext p_214436_)  - 
wrapStores
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSourceStack> p_137094_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> p_137095_, boolean p_137096_)  - 
storeValue
private static CommandSourceStack storeValue(CommandSourceStack p_137108_, Collection<String> p_137109_, Objective p_137110_, boolean p_137111_)  - 
storeValue
private static CommandSourceStack storeValue(CommandSourceStack p_137113_, CustomBossEvent p_137114_, boolean p_137115_, boolean p_137116_)  - 
storeData
private static CommandSourceStack storeData(CommandSourceStack p_137118_, DataAccessor p_137119_, NbtPathArgument.NbtPath p_137120_, IntFunction<Tag> p_137121_, boolean p_137122_)  - 
isChunkLoaded
 - 
addConditionals
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_214438_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> p_214439_, boolean p_214440_, CommandBuildContext p_214441_)  - 
createNumericConditionalHandler
private static com.mojang.brigadier.Command<CommandSourceStack> createNumericConditionalHandler(boolean p_137167_, ExecuteCommand.CommandNumericPredicate p_137168_)  - 
checkMatchingData
private static int checkMatchingData(DataAccessor p_137146_, NbtPathArgument.NbtPath p_137147_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
checkScore
private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137065_, BiPredicate<Integer, Integer> p_137066_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
checkScore
private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137059_, MinMaxBounds.Ints p_137060_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
checkCustomPredicate
private static boolean checkCustomPredicate(CommandSourceStack p_137105_, LootItemCondition p_137106_)  - 
expect
private static Collection<CommandSourceStack> expect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137071_, boolean p_137072_, boolean p_137073_)  - 
addConditional
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_137075_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_137076_, boolean p_137077_, ExecuteCommand.CommandPredicate p_137078_)  - 
addIfBlocksConditional
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_137080_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_137081_, boolean p_137082_, boolean p_137083_)  - 
checkIfRegions
private static int checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137068_, boolean p_137069_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
checkUnlessRegions
private static int checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137194_, boolean p_137195_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
checkRegions
private static OptionalInt checkRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137221_, boolean p_137222_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
checkRegions
private static OptionalInt checkRegions(ServerLevel p_137037_, BlockPos p_137038_, BlockPos p_137039_, BlockPos p_137040_, boolean p_137041_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
expandOneToOneEntityRelation
private static com.mojang.brigadier.RedirectModifier<CommandSourceStack> expandOneToOneEntityRelation(Function<Entity, Optional<Entity>> p_265114_)  - 
expandOneToManyEntityRelation
private static com.mojang.brigadier.RedirectModifier<CommandSourceStack> expandOneToManyEntityRelation(Function<Entity, Stream<Entity>> p_265496_)  - 
createRelationOperations
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> createRelationOperations(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_265189_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> p_265783_)  - 
spawnEntityAndRedirect
private static CommandSourceStack spawnEntityAndRedirect(CommandSourceStack p_270320_, Holder.Reference<EntityType<?>> p_270344_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 
 -