Package net.minecraft.server.commands
Class ExecuteCommand
java.lang.Object
net.minecraft.server.commands.ExecuteCommand
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
(package private) static interface
(package private) static interface
(package private) static class
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final int
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
-
Constructor Summary
-
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 boolean
checkCustomPredicate
(CommandSourceStack p_137105_, LootItemCondition p_137106_) private static int
checkIfRegions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137068_, boolean p_137069_) private static int
checkMatchingData
(DataAccessor p_137146_, NbtPathArgument.NbtPath p_137147_) private static OptionalInt
checkRegions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137221_, boolean p_137222_) private static OptionalInt
checkRegions
(ServerLevel p_137037_, BlockPos p_137038_, BlockPos p_137039_, BlockPos p_137040_, boolean p_137041_) private static boolean
checkScore
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137059_, MinMaxBounds.Ints p_137060_) private static boolean
checkScore
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137065_, ExecuteCommand.IntBiPredicate p_312767_) private static int
checkUnlessRegions
(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 boolean
isChunkLoaded
(ServerLevel p_265261_, BlockPos p_265260_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214435_, CommandBuildContext p_214436_) static <T extends ExecutionCommandSource<T>>
voidscheduleFunctionConditionsAndTest
(T p_311643_, List<T> p_313143_, Function<T, T> p_312920_, IntPredicate p_311696_, com.mojang.brigadier.context.ContextChain<T> p_311450_, CompoundTag p_313177_, ExecutionControl<T> p_310605_, ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> p_311694_, ChainModifiers p_312493_) private static CommandSourceStack
spawnEntityAndRedirect
(CommandSourceStack p_270320_, Holder.Reference<EntityType<?>> p_270344_) private static CommandSourceStack
storeData
(CommandSourceStack p_137118_, DataAccessor p_137119_, NbtPathArgument.NbtPath p_137120_, IntFunction<Tag> p_137121_, boolean p_137122_) private static CommandSourceStack
storeValue
(CommandSourceStack p_137108_, Collection<ScoreHolder> p_137109_, Objective p_137110_, boolean p_137111_) private static CommandSourceStack
storeValue
(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 -
ERROR_FUNCTION_CONDITION_INSTANTATION_FAILURE
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_FUNCTION_CONDITION_INSTANTATION_FAILURE -
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<ScoreHolder> 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_, ExecuteCommand.IntBiPredicate p_312767_) 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
-
scheduleFunctionConditionsAndTest
public static <T extends ExecutionCommandSource<T>> void scheduleFunctionConditionsAndTest(T p_311643_, List<T> p_313143_, Function<T, T> p_312920_, IntPredicate p_311696_, com.mojang.brigadier.context.ContextChain<T> p_311450_, @Nullable CompoundTag p_313177_, ExecutionControl<T> p_310605_, ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> p_311694_, ChainModifiers p_312493_)
-