net.minecraft.server.commands

public class ExecuteCommand

amt
net.minecraft.server.commands.ExecuteCommand
net.minecraft.class_3050
net.minecraft.server.command.ExecuteCommand
net.minecraft.src.C_5315_
net.minecraft.server.commands.CommandExecute

Field summary

Modifier and TypeField
private static final int
b
MAX_TEST_AREA
field_33390
MAX_BLOCKS
f_180148_
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
c
ERROR_AREA_TOO_LARGE
field_13635
BLOCKS_TOOBIG_EXCEPTION
f_137030_
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
d
ERROR_CONDITIONAL_FAILED
field_13636
CONDITIONAL_FAIL_EXCEPTION
f_137031_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
e
ERROR_CONDITIONAL_FAILED_COUNT
field_13637
CONDITIONAL_FAIL_COUNT_EXCEPTION
f_137032_
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
a
ERROR_FUNCTION_CONDITION_INSTANTATION_FAILURE
field_46642
INSTANTIATION_FAILURE_EXCEPTION
f_302541_
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
f
SUGGEST_PREDICATE
field_20852
LOOT_CONDITIONS
f_137034_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
a(com.mojang.brigadier.CommandDispatcher<et> arg0, ep arg1)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> arg0, CommandBuildContext arg1)
method_13271(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
m_214434_(com.mojang.brigadier.CommandDispatcher<C_2969_> p_214435_, C_213173_ p_214436_)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>
a(com.mojang.brigadier.tree.LiteralCommandNode<et> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<et> arg1, boolean arg2)
wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSourceStack> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> arg1, boolean arg2)
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)
m_137093_(com.mojang.brigadier.tree.LiteralCommandNode<C_2969_> p_137094_, com.mojang.brigadier.builder.LiteralArgumentBuilder<C_2969_> p_137095_, boolean p_137096_)
private static CommandSourceStack
a(et arg0, Collection<eyf> arg1, exy arg2, boolean arg3)
storeValue(CommandSourceStack arg0, Collection<ScoreHolder> arg1, Objective arg2, boolean arg3)
method_13290(class_2168 arg0, Collection<class_9015> arg1, class_266 arg2, boolean arg3)
executeStoreScore(ServerCommandSource source, Collection<ScoreHolder> targets, ScoreboardObjective objective, boolean requestResult)
m_137107_(C_2969_ p_137108_, Collection<C_301985_> p_137109_, C_3073_ p_137110_, boolean p_137111_)
private static CommandSourceStack
a(et arg0, als arg1, boolean arg2, boolean arg3)
storeValue(CommandSourceStack arg0, CustomBossEvent arg1, boolean arg2, boolean arg3)
method_13297(class_2168 arg0, class_3002 arg1, boolean arg2, boolean arg3)
executeStoreBossbar(ServerCommandSource source, CommandBossBar bossBar, boolean storeInValue, boolean requestResult)
m_137112_(C_2969_ p_137113_, C_5289_ p_137114_, boolean p_137115_, boolean p_137116_)
private static CommandSourceStack
a(et arg0, apg arg1, fl$g arg2, IntFunction<uy> arg3, boolean arg4)
storeData(CommandSourceStack arg0, DataAccessor arg1, NbtPathArgument$NbtPath arg2, IntFunction<Tag> arg3, boolean arg4)
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)
m_137117_(C_2969_ p_137118_, C_5395_ p_137119_, C_3685_$C_3692_ p_137120_, IntFunction<C_4950_> p_137121_, boolean p_137122_)
private static boolean
a(aqu arg0, jd arg1)
isChunkLoaded(ServerLevel arg0, BlockPos arg1)
method_48059(class_3218 arg0, class_2338 arg1)
isLoaded(ServerWorld world, BlockPos pos)
m_264155_(C_12_ p_265261_, C_4675_ p_265260_)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>
a(com.mojang.brigadier.tree.CommandNode<et> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<et> arg1, boolean arg2, ep arg3)
addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> arg1, boolean arg2, CommandBuildContext arg3)
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)
m_214437_(com.mojang.brigadier.tree.CommandNode<C_2969_> p_214438_, com.mojang.brigadier.builder.LiteralArgumentBuilder<C_2969_> p_214439_, boolean p_214440_, C_213173_ p_214441_)
private static int
a(Iterable<? extends bsr> arg0, crr arg1, Predicate<cuq> arg2)
countItems(Iterable<? extends Entity> arg0, SlotRange arg1, Predicate<ItemStack> arg2)
method_58035(Iterable<? extends class_1297> arg0, class_9348 arg1, Predicate<class_1799> arg2)
countMatchingItems(Iterable<? extends Entity> entities, SlotRange slotRange, Predicate<ItemStack> predicate)
m_321605_(Iterable<? extends C_507_> p_333878_, C_313666_ p_329600_, Predicate<C_1391_> p_334297_)
private static int
a(et arg0, jd arg1, crr arg2, Predicate<cuq> arg3)
countItems(CommandSourceStack arg0, BlockPos arg1, SlotRange arg2, Predicate<ItemStack> arg3)
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)
m_321039_(C_2969_ p_330313_, C_4675_ p_329129_, C_313666_ p_327989_, Predicate<C_1391_> p_331312_)
private static com.mojang.brigadier.Command<CommandSourceStack>
a(boolean arg0, amt$b arg1)
createNumericConditionalHandler(boolean arg0, ExecuteCommand$CommandNumericPredicate arg1)
method_13323(boolean arg0, class_3050$class_3051 arg1)
getExistsConditionExecute(boolean positive, ExecuteCommand$ExistsCondition condition)
m_137166_(boolean p_137167_, C_5315_$C_5316_ p_137168_)
private static int
a(apg arg0, fl$g arg1)
checkMatchingData(DataAccessor arg0, NbtPathArgument$NbtPath arg1)
method_13303(class_3162 arg0, class_2203$class_2209 arg1)
countPathMatches(DataCommandObject object, NbtPathArgumentType$NbtPath path)
m_137145_(C_5395_ p_137146_, C_3685_$C_3692_ p_137147_)
private static boolean
a(com.mojang.brigadier.context.CommandContext<et> arg0, amt$e arg1)
checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, ExecuteCommand$IntBiPredicate arg1)
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)
m_137064_(com.mojang.brigadier.context.CommandContext<C_2969_> p_137065_, C_5315_$C_301992_ p_312767_)
private static boolean
a(com.mojang.brigadier.context.CommandContext<et> arg0, dh$d arg1)
checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, MinMaxBounds$Ints arg1)
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)
m_137058_(com.mojang.brigadier.context.CommandContext<C_2969_> p_137059_, C_1863_$C_1867_ p_137060_)
private static boolean
a(et arg0, jm<evc> arg1)
checkCustomPredicate(CommandSourceStack arg0, Holder<LootItemCondition> arg1)
method_22829(class_2168 arg0, class_6880<class_5341> arg1)
testLootCondition(ServerCommandSource source, RegistryEntry<LootCondition> lootCondition)
m_137104_(C_2969_ p_137105_, C_203228_<C_3004_> p_335377_)
private static Collection<CommandSourceStack>
a(com.mojang.brigadier.context.CommandContext<et> arg0, boolean arg1, boolean arg2)
expect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, boolean arg1, boolean arg2)
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)
m_137070_(com.mojang.brigadier.context.CommandContext<C_2969_> p_137071_, boolean p_137072_, boolean p_137073_)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>
a(com.mojang.brigadier.tree.CommandNode<et> arg0, com.mojang.brigadier.builder.ArgumentBuilder<et, ?> arg1, boolean arg2, amt$c arg3)
addConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> arg0, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> arg1, boolean arg2, ExecuteCommand$CommandPredicate arg3)
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)
m_137074_(com.mojang.brigadier.tree.CommandNode<C_2969_> p_137075_, com.mojang.brigadier.builder.ArgumentBuilder<C_2969_, ?> p_137076_, boolean p_137077_, C_5315_$C_5317_ p_137078_)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>
a(com.mojang.brigadier.tree.CommandNode<et> arg0, com.mojang.brigadier.builder.ArgumentBuilder<et, ?> arg1, boolean arg2, boolean arg3)
addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> arg0, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> arg1, boolean arg2, boolean arg3)
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)
m_137079_(com.mojang.brigadier.tree.CommandNode<C_2969_> p_137080_, com.mojang.brigadier.builder.ArgumentBuilder<C_2969_, ?> p_137081_, boolean p_137082_, boolean p_137083_)
private static int
a(com.mojang.brigadier.context.CommandContext<et> arg0, boolean arg1)
checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, boolean arg1)
method_13306(com.mojang.brigadier.context.CommandContext<class_2168> arg0, boolean arg1)
executePositiveBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)
m_137067_(com.mojang.brigadier.context.CommandContext<C_2969_> p_137068_, boolean p_137069_)
private static int
b(com.mojang.brigadier.context.CommandContext<et> arg0, boolean arg1)
checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, boolean arg1)
method_13304(com.mojang.brigadier.context.CommandContext<class_2168> arg0, boolean arg1)
executeNegativeBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)
m_137193_(com.mojang.brigadier.context.CommandContext<C_2969_> p_137194_, boolean p_137195_)
private static OptionalInt
c(com.mojang.brigadier.context.CommandContext<et> arg0, boolean arg1)
checkRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, boolean arg1)
method_13272(com.mojang.brigadier.context.CommandContext<class_2168> arg0, boolean arg1)
testBlocksCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)
m_137220_(com.mojang.brigadier.context.CommandContext<C_2969_> p_137221_, boolean p_137222_)
private static OptionalInt
a(aqu arg0, jd arg1, jd arg2, jd arg3, boolean arg4)
checkRegions(ServerLevel arg0, BlockPos arg1, BlockPos arg2, BlockPos arg3, boolean arg4)
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)
m_137036_(C_12_ p_137037_, C_4675_ p_137038_, C_4675_ p_137039_, C_4675_ p_137040_, boolean p_137041_)
private static com.mojang.brigadier.RedirectModifier<CommandSourceStack>
a(Function<bsr, Optional<bsr>> arg0)
expandOneToOneEntityRelation(Function<Entity, Optional<Entity>> arg0)
method_48063(Function<class_1297, Optional<class_1297>> arg0)
createEntityModifier(Function<Entity, Optional<Entity>> function)
m_264445_(Function<C_507_, Optional<C_507_>> p_265114_)
private static com.mojang.brigadier.RedirectModifier<CommandSourceStack>
b(Function<bsr, Stream<bsr>> arg0)
expandOneToManyEntityRelation(Function<Entity, Stream<Entity>> arg0)
method_48066(Function<class_1297, Stream<class_1297>> arg0)
createMultiEntityModifier(Function<Entity, Stream<Entity>> function)
m_264350_(Function<C_507_, Stream<C_507_>> p_265496_)
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
a(com.mojang.brigadier.tree.CommandNode<et> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<et> arg1)
createRelationOperations(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> arg0, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> arg1)
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)
m_264124_(com.mojang.brigadier.tree.CommandNode<C_2969_> p_265189_, com.mojang.brigadier.builder.LiteralArgumentBuilder<C_2969_> p_265783_)
private static CommandSourceStack
a(et arg0, jm$c<bsx<?>> arg1)
spawnEntityAndRedirect(CommandSourceStack arg0, Holder$Reference<EntityType<?>> arg1)
method_48756(class_2168 arg0, class_6880$class_6883<class_1299<?>> arg1)
summon(ServerCommandSource source, RegistryEntry$Reference<EntityType<?>> entityType)
m_269381_(C_2969_ p_270320_, C_203228_$C_203231_<C_513_<?>> p_270344_)
public static <T extends ExecutionCommandSource<T>> void
a(T arg0, List<T> arg1, Function<T, T> arg2, IntPredicate arg3, com.mojang.brigadier.context.ContextChain<T> arg4, ub arg5, ht<T> arg6, amt$a<T, Collection<ig<T>>> arg7, hn arg8)
scheduleFunctionConditionsAndTest(T arg0, List<T> arg1, Function<T, T> arg2, IntPredicate arg3, com.mojang.brigadier.context.ContextChain<T> arg4, CompoundTag arg5, ExecutionControl<T> arg6, ExecuteCommand$CommandGetter<T, Collection<CommandFunction<T>>> arg7, ChainModifiers arg8)
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_3050$class_8830<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, ExecuteCommand$FunctionNamesGetter<T, Collection<CommandFunction<T>>> functionNamesGetter, ExecutionFlags flags)
m_304727_(T p_311643_, List<T> p_313143_, Function<T, T> p_312920_, IntPredicate p_311696_, com.mojang.brigadier.context.ContextChain<T> p_311450_, C_4917_ p_313177_, C_301895_<T> p_310605_, C_5315_$C_302105_<T, Collection<C_302141_<T>>> p_311694_, C_302156_ p_312493_)