net.minecraft.server.command

public class ExecuteCommand

net.minecraft.server.commands.ExecuteCommand
net.minecraft.server.commands.ExecuteCommand
net.minecraft.class_3050
net.minecraft.server.command.ExecuteCommand

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_60332
LOGGER
private static final int
MAX_TEST_AREA
MAX_TEST_AREA
field_33390
MAX_BLOCKS
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_AREA_TOO_LARGE
ERROR_AREA_TOO_LARGE
field_13635
BLOCKS_TOOBIG_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_CONDITIONAL_FAILED
ERROR_CONDITIONAL_FAILED
field_13636
CONDITIONAL_FAIL_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_CONDITIONAL_FAILED_COUNT
ERROR_CONDITIONAL_FAILED_COUNT
field_13637
CONDITIONAL_FAIL_COUNT_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_FUNCTION_CONDITION_INSTANTATION_FAILURE
ERROR_FUNCTION_CONDITION_INSTANTATION_FAILURE
field_46642
INSTANTIATION_FAILURE_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_13271(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>
wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSourceStack> execute, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> literal, boolean storeResult)
wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSourceStack> execute, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> literal, boolean storeResult)
method_13289(com.mojang.brigadier.tree.LiteralCommandNode<class_2168> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<class_2168> arg1, boolean arg2)
addStoreArguments(com.mojang.brigadier.tree.LiteralCommandNode<ServerCommandSource> node, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> builder, boolean requestResult)
private static ServerCommandSource
storeValue(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective, boolean storeResult)
storeValue(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective, boolean storeResult)
method_13290(class_2168 arg0, Collection<class_9015> arg1, class_266 arg2, boolean arg3)
executeStoreScore(ServerCommandSource source, Collection<ScoreHolder> targets, ScoreboardObjective objective, boolean requestResult)
private static ServerCommandSource
storeValue(CommandSourceStack source, CustomBossEvent event, boolean storeIntoValue, boolean storeResult)
storeValue(CommandSourceStack source, CustomBossEvent event, boolean storeIntoValue, boolean storeResult)
method_13297(class_2168 arg0, class_3002 arg1, boolean arg2, boolean arg3)
executeStoreBossbar(ServerCommandSource source, CommandBossBar bossBar, boolean storeInValue, boolean requestResult)
private static ServerCommandSource
storeData(CommandSourceStack source, DataAccessor accessor, NbtPathArgument$NbtPath path, IntFunction<Tag> constructor, boolean storeResult)
storeData(CommandSourceStack source, DataAccessor accessor, NbtPathArgument$NbtPath path, IntFunction<Tag> constructor, boolean storeResult)
method_13265(class_2168 arg0, class_3162 arg1, class_2203$class_2209 arg2, IntFunction<class_2520> arg3, boolean arg4)
executeStoreData(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType$NbtPath path, IntFunction<NbtElement> nbtSetter, boolean requestResult)
private static boolean
isChunkLoaded(ServerLevel level, BlockPos pos)
isChunkLoaded(ServerLevel level, BlockPos pos)
method_48059(class_3218 arg0, class_2338 arg1)
isLoaded(ServerWorld world, BlockPos pos)
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>
addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> execute, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> parent, boolean expected, CommandBuildContext context)
addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> execute, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> parent, boolean expected, CommandBuildContext context)
method_13298(com.mojang.brigadier.tree.CommandNode<class_2168> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<class_2168> arg1, boolean arg2, class_7157 arg3)
addConditionArguments(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> argumentBuilder, boolean positive, CommandRegistryAccess commandRegistryAccess)
private static int
countItems(Iterable<? extends SlotProvider> sources, SlotRange slotRange, Predicate<ItemStack> predicate)
countItems(Iterable<? extends SlotProvider> sources, SlotRange slotRange, Predicate<ItemStack> predicate)
method_58035(Iterable<? extends class_12260> arg0, class_9348 arg1, Predicate<class_1799> arg2)
countMatchingItems(Iterable<? extends StackReferenceGetter> entities, SlotRange slotRange, Predicate<ItemStack> predicate)
private static int
countItems(CommandSourceStack source, BlockPos pos, SlotRange slotRange, Predicate<ItemStack> predicate)
countItems(CommandSourceStack source, BlockPos pos, SlotRange slotRange, Predicate<ItemStack> predicate)
method_58034(class_2168 arg0, class_2338 arg1, class_9348 arg2, Predicate<class_1799> arg3)
countMatchingItems(ServerCommandSource source, BlockPos pos, SlotRange slotRange, Predicate<ItemStack> predicate)
private static com.mojang.brigadier.Command<ServerCommandSource>
createNumericConditionalHandler(boolean expected, ExecuteCommand$CommandNumericPredicate condition)
createNumericConditionalHandler(boolean expected, ExecuteCommand$CommandNumericPredicate condition)
method_13323(boolean arg0, class_3050$class_3051 arg1)
getExistsConditionExecute(boolean positive, ExecuteCommand$ExistsCondition condition)
private static int
checkMatchingData(DataAccessor accessor, NbtPathArgument$NbtPath path)
checkMatchingData(DataAccessor accessor, NbtPathArgument$NbtPath path)
method_13303(class_3162 arg0, class_2203$class_2209 arg1)
countPathMatches(DataCommandObject object, NbtPathArgumentType$NbtPath path)
private static boolean
checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, ExecuteCommand$IntBiPredicate operation)
checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, ExecuteCommand$IntBiPredicate operation)
method_13263(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_3050$class_9007 arg1)
testScoreCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, ExecuteCommand$ScoreComparisonPredicate predicate)
private static boolean
checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, MinMaxBounds$Ints range)
checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, MinMaxBounds$Ints range)
method_13313(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_2096$class_2100 arg1)
testScoreMatch(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NumberRange$IntRange range)
private static boolean
checkStopwatch(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, MinMaxBounds$Doubles range)
checkStopwatch(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, MinMaxBounds$Doubles range)
method_74975(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_2096$class_2099 arg1)
testStopwatchRange(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NumberRange$DoubleRange range)
private static boolean
checkCustomPredicate(CommandSourceStack source, Holder<LootItemCondition> predicate)
checkCustomPredicate(CommandSourceStack source, Holder<LootItemCondition> predicate)
method_22829(class_2168 arg0, class_6880<class_5341> arg1)
testLootCondition(ServerCommandSource source, RegistryEntry<LootCondition> lootCondition)
private static Collection<ServerCommandSource>
expect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean expected, boolean result)
expect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean expected, boolean result)
method_13319(com.mojang.brigadier.context.CommandContext<class_2168> arg0, boolean arg1, boolean arg2)
getSourceOrEmptyForConditionFork(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean positive, boolean value)
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>
addConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> root, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> argument, boolean expected, ExecuteCommand$CommandPredicate predicate)
addConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> root, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> argument, boolean expected, ExecuteCommand$CommandPredicate predicate)
method_13310(com.mojang.brigadier.tree.CommandNode<class_2168> arg0, com.mojang.brigadier.builder.ArgumentBuilder<class_2168, ?> arg1, boolean arg2, class_3050$class_3052 arg3)
addConditionLogic(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, ExecuteCommand$Condition condition)
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>
addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> root, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> argument, boolean expected, boolean skipAir)
addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> root, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> argument, boolean expected, boolean skipAir)
method_13320(com.mojang.brigadier.tree.CommandNode<class_2168> arg0, com.mojang.brigadier.builder.ArgumentBuilder<class_2168, ?> arg1, boolean arg2, boolean arg3)
addBlocksConditionLogic(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, boolean masked)
private static int
checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean skipAir)
checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean skipAir)
method_13306(com.mojang.brigadier.context.CommandContext<class_2168> arg0, boolean arg1)
executePositiveBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)
private static int
checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean skipAir)
checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean skipAir)
method_13304(com.mojang.brigadier.context.CommandContext<class_2168> arg0, boolean arg1)
executeNegativeBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)
private static OptionalInt
checkRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean skipAir)
checkRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean skipAir)
method_13272(com.mojang.brigadier.context.CommandContext<class_2168> arg0, boolean arg1)
testBlocksCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)
private static OptionalInt
checkRegions(ServerLevel level, BlockPos startPos, BlockPos endPos, BlockPos destPos, boolean skipAir)
checkRegions(ServerLevel level, BlockPos startPos, BlockPos endPos, BlockPos destPos, boolean skipAir)
method_13261(class_3218 arg0, class_2338 arg1, class_2338 arg2, class_2338 arg3, boolean arg4)
testBlocksCondition(ServerWorld world, BlockPos start, BlockPos end, BlockPos destination, boolean masked)
private static com.mojang.brigadier.RedirectModifier<ServerCommandSource>
expandOneToOneEntityRelation(Function<Entity, Optional<Entity>> unpacker)
expandOneToOneEntityRelation(Function<Entity, Optional<Entity>> unpacker)
method_48063(Function<class_1297, Optional<class_1297>> arg0)
createEntityModifier(Function<Entity, Optional<Entity>> function)
private static com.mojang.brigadier.RedirectModifier<ServerCommandSource>
expandOneToManyEntityRelation(Function<Entity, Stream<Entity>> unpacker)
expandOneToManyEntityRelation(Function<Entity, Stream<Entity>> unpacker)
method_48066(Function<class_1297, Stream<class_1297>> arg0)
createMultiEntityModifier(Function<Entity, Stream<Entity>> function)
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>
createRelationOperations(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> execute, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> on)
createRelationOperations(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> execute, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> on)
method_48061(com.mojang.brigadier.tree.CommandNode<class_2168> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<class_2168> arg1)
addOnArguments(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> node, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> builder)
private static ServerCommandSource
spawnEntityAndRedirect(CommandSourceStack source, Holder$Reference<EntityType<?>> type)
spawnEntityAndRedirect(CommandSourceStack source, Holder$Reference<EntityType<?>> type)
method_48756(class_2168 arg0, class_6880$class_6883<class_1299<?>> arg1)
summon(ServerCommandSource source, RegistryEntry$Reference<EntityType<?>> entityType)
public static <T extends AbstractServerCommandSource<T>> void
scheduleFunctionConditionsAndTest(T originalSource, List<T> currentSources, Function<T, T> functionContextModifier, IntPredicate check, com.mojang.brigadier.context.ContextChain<T> currentStep, CompoundTag parameters, ExecutionControl<T> output, InCommandFunction<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> functionGetter, ChainModifiers modifiers)
scheduleFunctionConditionsAndTest(T originalSource, List<T> currentSources, Function<T, T> functionContextModifier, IntPredicate check, com.mojang.brigadier.context.ContextChain<T> currentStep, CompoundTag parameters, ExecutionControl<T> output, InCommandFunction<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> functionGetter, ChainModifiers modifiers)
method_54264(T arg0, List<T> arg1, Function<T, T> arg2, IntPredicate arg3, com.mojang.brigadier.context.ContextChain<T> arg4, class_2487 arg5, class_8855<T> arg6, class_10618<com.mojang.brigadier.context.CommandContext<T>, Collection<class_2158<T>>> arg7, class_8936 arg8)
enqueueExecutions(T baseSource, List<T> sources, Function<T, T> functionSourceGetter, IntPredicate predicate, com.mojang.brigadier.context.ContextChain<T> contextChain, NbtCompound args, ExecutionControl<T> control, ArgumentGetter<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> functionNamesGetter, ExecutionFlags flags)