Uses of Class
com.mojang.brigadier.context.CommandContext
Packages that use CommandContext
Package
Description
-
Uses of CommandContext in com.mojang.brigadier
Methods in com.mojang.brigadier with parameters of type CommandContextModifier and TypeMethodDescriptionRedirectModifier.apply(CommandContext<S> context) SingleRedirectModifier.apply(CommandContext<S> context) voidResultConsumer.onCommandComplete(CommandContext<S> context, boolean success, int result) intCommand.run(CommandContext<S> context) -
Uses of CommandContext in com.mojang.brigadier.arguments
Methods in com.mojang.brigadier.arguments with parameters of type CommandContextModifier and TypeMethodDescriptionstatic booleanBoolArgumentType.getBool(CommandContext<?> context, String name) static doubleDoubleArgumentType.getDouble(CommandContext<?> context, String name) static floatFloatArgumentType.getFloat(CommandContext<?> context, String name) static intIntegerArgumentType.getInteger(CommandContext<?> context, String name) static longLongArgumentType.getLong(CommandContext<?> context, String name) static StringStringArgumentType.getString(CommandContext<?> context, String name) default <S> CompletableFuture<Suggestions> ArgumentType.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) BoolArgumentType.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) -
Uses of CommandContext in com.mojang.brigadier.context
Fields in com.mojang.brigadier.context declared as CommandContextModifier and TypeFieldDescriptionprivate final CommandContext<S> CommandContext.childprivate final CommandContext<S> ContextChain.executableFields in com.mojang.brigadier.context with type parameters of type CommandContextMethods in com.mojang.brigadier.context that return CommandContextModifier and TypeMethodDescriptionCommandContext.getChild()CommandContext.getLastChild()ContextChain.getTopContext()Methods in com.mojang.brigadier.context with parameters of type CommandContextModifier and TypeMethodDescriptionstatic <S> intContextChain.runExecutable(CommandContext<S> executable, S source, ResultConsumer<S> resultConsumer, boolean forkedMode) static <S> Collection<S> ContextChain.runModifier(CommandContext<S> modifier, S source, ResultConsumer<S> resultConsumer, boolean forkedMode) static <S> Optional<ContextChain<S>> ContextChain.tryFlatten(CommandContext<S> rootContext) Constructors in com.mojang.brigadier.context with parameters of type CommandContextModifierConstructorDescriptionCommandContext(S source, String input, Map<String, ParsedArgument<S, ?>> arguments, Command<S> command, CommandNode<S> rootNode, List<ParsedCommandNode<S>> nodes, StringRange range, CommandContext<S> child, RedirectModifier<S> modifier, boolean forks) ContextChain(List<CommandContext<S>> modifiers, CommandContext<S> executable) Constructor parameters in com.mojang.brigadier.context with type arguments of type CommandContextModifierConstructorDescriptionContextChain(List<CommandContext<S>> modifiers, CommandContext<S> executable) -
Uses of CommandContext in com.mojang.brigadier.suggestion
Methods in com.mojang.brigadier.suggestion with parameters of type CommandContextModifier and TypeMethodDescriptionSuggestionProvider.getSuggestions(CommandContext<S> context, SuggestionsBuilder builder) -
Uses of CommandContext in com.mojang.brigadier.tree
Methods in com.mojang.brigadier.tree with parameters of type CommandContextModifier and TypeMethodDescriptionArgumentCommandNode.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) abstract CompletableFuture<Suggestions> CommandNode.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) LiteralCommandNode.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) RootCommandNode.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) -
Uses of CommandContext in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type CommandContextModifier and TypeMethodDescriptionClientSuggestionProvider.customSuggestion(CommandContext<?> context) ClientSuggestionProvider.suggestRegistryElements(ResourceKey<? extends Registry<?>> key, SharedSuggestionProvider.ElementSuggestionType elements, SuggestionsBuilder builder, CommandContext<?> context) -
Uses of CommandContext in net.minecraft.commands
Methods in net.minecraft.commands with parameters of type CommandContextModifier and TypeMethodDescriptionCommandSourceStack.customSuggestion(CommandContext<?> context) SharedSuggestionProvider.customSuggestion(CommandContext<?> context) static <S> CompletableFuture<Suggestions> SharedSuggestionProvider.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder, ResourceKey<? extends Registry<?>> registryKey, SharedSuggestionProvider.ElementSuggestionType type) CommandSourceStack.suggestRegistryElements(ResourceKey<? extends Registry<?>> key, SharedSuggestionProvider.ElementSuggestionType elements, SuggestionsBuilder builder, CommandContext<?> context) SharedSuggestionProvider.suggestRegistryElements(ResourceKey<? extends Registry<?>> key, SharedSuggestionProvider.ElementSuggestionType elements, SuggestionsBuilder builder, CommandContext<?> context) -
Uses of CommandContext in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments with parameters of type CommandContextModifier and TypeMethodDescriptionstatic AdvancementHolderResourceKeyArgument.getAdvancement(CommandContext<CommandSourceStack> context, String name) static EntityAnchorArgument.AnchorEntityAnchorArgument.getAnchor(CommandContext<CommandSourceStack> context, String name) static floatAngleArgument.getAngle(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<Attribute> ResourceArgument.getAttribute(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<WorldClock> ResourceArgument.getClock(CommandContext<CommandSourceStack> context, String name) static ChatFormattingColorArgument.getColor(CommandContext<CommandSourceStack> context, String name) static <S> CompoundTagCompoundTagArgument.getCompoundTag(CommandContext<S> context, String name) static Holder.Reference<ConfiguredFeature<?, ?>> ResourceArgument.getConfiguredFeature(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<ConfiguredFeature<?, ?>> ResourceKeyArgument.getConfiguredFeature(CommandContext<CommandSourceStack> context, String name) static ObjectiveCriteriaObjectiveCriteriaArgument.getCriteria(CommandContext<CommandSourceStack> context, String name) ResourceOrIdArgument.getDialog(CommandContext<CommandSourceStack> context, String name) static ServerLevelDimensionArgument.getDimension(CommandContext<CommandSourceStack> context, String name) static DisplaySlotScoreboardSlotArgument.getDisplaySlot(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<Enchantment> ResourceArgument.getEnchantment(CommandContext<CommandSourceStack> context, String name) static Collection<? extends Entity> EntityArgument.getEntities(CommandContext<CommandSourceStack> context, String name) static EntityEntityArgument.getEntity(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<EntityType<?>> ResourceArgument.getEntityType(CommandContext<CommandSourceStack> context, String name) static GameTypeGameModeArgument.getGameMode(CommandContext<CommandSourceStack> context, String name) static Collection<NameAndId> GameProfileArgument.getGameProfiles(CommandContext<CommandSourceStack> source, String name) static Heightmap.TypesHeightmapTypeArgument.getHeightmap(CommandContext<CommandSourceStack> context, String name) static IntegerHexColorArgument.getHexColor(CommandContext<CommandSourceStack> context, String name) static IdentifierIdentifierArgument.getId(CommandContext<CommandSourceStack> context, String name) static Holder<LootItemFunction> ResourceOrIdArgument.getLootModifier(CommandContext<CommandSourceStack> context, String name) static Holder<LootItemCondition> ResourceOrIdArgument.getLootPredicate(CommandContext<CommandSourceStack> context, String name) ResourceOrIdArgument.getLootTable(CommandContext<CommandSourceStack> context, String name) static ComponentMessageArgument.getMessage(CommandContext<CommandSourceStack> context, String name) static MirrorTemplateMirrorArgument.getMirror(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<MobEffect> ResourceArgument.getMobEffect(CommandContext<CommandSourceStack> context, String name) static ScoreHolderScoreHolderArgument.getName(CommandContext<CommandSourceStack> context, String name) static Collection<ScoreHolder> ScoreHolderArgument.getNames(CommandContext<CommandSourceStack> context, String name) static Collection<ScoreHolder> ScoreHolderArgument.getNames(CommandContext<CommandSourceStack> context, String name, Supplier<Collection<ScoreHolder>> wildcard) static Collection<ScoreHolder> ScoreHolderArgument.getNamesWithDefaultWildcard(CommandContext<CommandSourceStack> context, String name) static <S> TagNbtTagArgument.getNbtTag(CommandContext<S> context, String name) static ObjectiveObjectiveArgument.getObjective(CommandContext<CommandSourceStack> context, String name) static OperationArgument.OperationOperationArgument.getOperation(CommandContext<CommandSourceStack> context, String name) static Collection<? extends Entity> EntityArgument.getOptionalEntities(CommandContext<CommandSourceStack> context, String name) static Collection<ServerPlayer> EntityArgument.getOptionalPlayers(CommandContext<CommandSourceStack> context, String name) static ParticleOptionsParticleArgument.getParticle(CommandContext<CommandSourceStack> context, String name) static NbtPathArgument.NbtPathNbtPathArgument.getPath(CommandContext<CommandSourceStack> context, String name) static ServerPlayerEntityArgument.getPlayer(CommandContext<CommandSourceStack> context, String name) static Collection<ServerPlayer> EntityArgument.getPlayers(CommandContext<CommandSourceStack> context, String name) static MinMaxBounds.DoublesRangeArgument.Floats.getRange(CommandContext<CommandSourceStack> context, String name) static MinMaxBounds.IntsRangeArgument.Ints.getRange(CommandContext<CommandSourceStack> context, String name) static ComponentComponentArgument.getRawComponent(CommandContext<CommandSourceStack> context, String name) static RecipeHolder<?> ResourceKeyArgument.getRecipe(CommandContext<CommandSourceStack> context, String name) private static <T> Registry<T> ResourceKeyArgument.getRegistry(CommandContext<CommandSourceStack> context, ResourceKey<? extends Registry<T>> registryKey) static <T> ResourceKey<T> ResourceKeyArgument.getRegistryKey(CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey, DynamicCommandExceptionType exceptionType) static ComponentComponentArgument.getResolvedComponent(CommandContext<CommandSourceStack> context, String name) static ComponentComponentArgument.getResolvedComponent(CommandContext<CommandSourceStack> context, String name, Entity contentEntity) static <T> Holder.Reference<T> ResourceArgument.getResource(CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey) private static <T> Holder<T> ResourceOrIdArgument.getResource(CommandContext<CommandSourceStack> context, String name) static <T> ResourceOrTagArgument.Result<T> ResourceOrTagArgument.getResourceOrTag(CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey) static <T> ResourceOrTagKeyArgument.Result<T> ResourceOrTagKeyArgument.getResourceOrTagKey(CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey, DynamicCommandExceptionType exceptionType) static RotationTemplateRotationArgument.getRotation(CommandContext<CommandSourceStack> context, String name) static <T> Collection<Holder.Reference<T>> ResourceSelectorArgument.getSelectedResources(CommandContext<CommandSourceStack> context, String name) static intSlotArgument.getSlot(CommandContext<CommandSourceStack> context, String name) static SlotRangeSlotsArgument.getSlots(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<Structure> ResourceArgument.getStructure(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<Structure> ResourceKeyArgument.getStructure(CommandContext<CommandSourceStack> context, String name) ResourceKeyArgument.getStructureTemplatePool(CommandContext<CommandSourceStack> context, String name) static StyleStyleArgument.getStyle(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<EntityType<?>> ResourceArgument.getSummonableEntityType(CommandContext<CommandSourceStack> context, String name) static PlayerTeamTeamArgument.getTeam(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<Timeline> ResourceArgument.getTimeline(CommandContext<CommandSourceStack> context, String name) static UUIDUuidArgument.getUuid(CommandContext<CommandSourceStack> source, String name) static WaypointTransmitterWaypointArgument.getWaypoint(CommandContext<CommandSourceStack> context, String name) static ObjectiveObjectiveArgument.getWritableObjective(CommandContext<CommandSourceStack> context, String name) ColorArgument.listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) DimensionArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) EntityAnchorArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) EntityArgument.listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) GameModeArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) GameProfileArgument.listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) HexColorArgument.listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) ObjectiveArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ObjectiveCriteriaArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) OperationArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ParticleArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ResourceArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ResourceKeyArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ResourceOrIdArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ResourceOrTagArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ResourceOrTagKeyArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ResourceSelectorArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ScoreboardSlotArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) SlotArgument.listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) SlotsArgument.listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) StringRepresentableArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) TeamArgument.listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) TimeArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) static voidMessageArgument.resolveChatMessage(CommandContext<CommandSourceStack> context, String name, Consumer<PlayerChatMessage> task) private static <T> Holder.Reference<T> ResourceKeyArgument.resolveKey(CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey, DynamicCommandExceptionType exception) -
Uses of CommandContext in net.minecraft.commands.arguments.blocks
Methods in net.minecraft.commands.arguments.blocks with parameters of type CommandContextModifier and TypeMethodDescriptionstatic BlockInputBlockStateArgument.getBlock(CommandContext<CommandSourceStack> context, String name) static Predicate<BlockInWorld> BlockPredicateArgument.getBlockPredicate(CommandContext<CommandSourceStack> context, String name) BlockPredicateArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) BlockStateArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) -
Uses of CommandContext in net.minecraft.commands.arguments.coordinates
Methods in net.minecraft.commands.arguments.coordinates with parameters of type CommandContextModifier and TypeMethodDescriptionstatic BlockPosBlockPosArgument.getBlockPos(CommandContext<CommandSourceStack> context, String name) static ColumnPosColumnPosArgument.getColumnPos(CommandContext<CommandSourceStack> context, String name) static CoordinatesVec3Argument.getCoordinates(CommandContext<CommandSourceStack> context, String name) static BlockPosBlockPosArgument.getLoadedBlockPos(CommandContext<CommandSourceStack> context, String name) static BlockPosBlockPosArgument.getLoadedBlockPos(CommandContext<CommandSourceStack> context, ServerLevel level, String name) static CoordinatesRotationArgument.getRotation(CommandContext<CommandSourceStack> context, String name) static BlockPosBlockPosArgument.getSpawnablePos(CommandContext<CommandSourceStack> context, String name) static EnumSet<Direction.Axis> SwizzleArgument.getSwizzle(CommandContext<CommandSourceStack> context, String name) static Vec2Vec2Argument.getVec2(CommandContext<CommandSourceStack> context, String name) static Vec3Vec3Argument.getVec3(CommandContext<CommandSourceStack> context, String name) BlockPosArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ColumnPosArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) Vec2Argument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) Vec3Argument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) -
Uses of CommandContext in net.minecraft.commands.arguments.item
Methods in net.minecraft.commands.arguments.item with parameters of type CommandContextModifier and TypeMethodDescriptionFunctionArgument.Result.create(CommandContext<CommandSourceStack> context) private static CommandFunction<CommandSourceStack> FunctionArgument.getFunction(CommandContext<CommandSourceStack> c, Identifier id) static Pair<Identifier, Collection<CommandFunction<CommandSourceStack>>> FunctionArgument.getFunctionCollection(CommandContext<CommandSourceStack> context, String name) static Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.getFunctionOrTag(CommandContext<CommandSourceStack> context, String name) static Collection<CommandFunction<CommandSourceStack>> FunctionArgument.getFunctions(CommandContext<CommandSourceStack> context, String name) private static Collection<CommandFunction<CommandSourceStack>> FunctionArgument.getFunctionTag(CommandContext<CommandSourceStack> c, Identifier id) static <S> ItemInputItemArgument.getItem(CommandContext<S> context, String name) static ItemPredicateArgument.ResultItemPredicateArgument.getItemPredicate(CommandContext<CommandSourceStack> context, String name) ItemArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.Result.unwrap(CommandContext<CommandSourceStack> context) FunctionArgument.Result.unwrapToCollection(CommandContext<CommandSourceStack> context) -
Uses of CommandContext in net.minecraft.commands.execution
Methods in net.minecraft.commands.execution with parameters of type CommandContextModifier and TypeMethodDescriptiondefault Collection<T> CustomModifierExecutor.ModifierAdapter.apply(CommandContext<T> context) default intCustomCommandExecutor.CommandAdapter.run(CommandContext<T> context) -
Uses of CommandContext in net.minecraft.commands.execution.tasks
Fields in net.minecraft.commands.execution.tasks declared as CommandContextConstructors in net.minecraft.commands.execution.tasks with parameters of type CommandContextModifierConstructorDescriptionExecuteCommand(String commandInput, ChainModifiers modifiers, CommandContext<T> executionContext) -
Uses of CommandContext in net.minecraft.commands.synchronization
Methods in net.minecraft.commands.synchronization with parameters of type CommandContextModifier and TypeMethodDescriptionSuggestionProviders.RegisteredSuggestion.getSuggestions(CommandContext<SharedSuggestionProvider> context, SuggestionsBuilder builder) -
Uses of CommandContext in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type CommandContextModifier and TypeMethodDescriptionTestFinder.Builder.allNearby(CommandContext<CommandSourceStack> sourceStack) TestFinder.Builder.byResourceSelection(CommandContext<CommandSourceStack> sourceStack, Collection<Holder.Reference<GameTestInstance>> holders) TestFinder.Builder.failedTests(CommandContext<CommandSourceStack> sourceStack) TestFinder.Builder.failedTests(CommandContext<CommandSourceStack> sourceStack, boolean onlyRequiredTests) TestFinder.Builder.lookedAt(CommandContext<CommandSourceStack> sourceStack) TestFinder.Builder.nearest(CommandContext<CommandSourceStack> sourceStack) TestFinder.Builder.radius(CommandContext<CommandSourceStack> sourceStack, int radius) static CompletableFuture<Suggestions> TestCommand.suggestTestFunction(CommandContext<CommandSourceStack> context, SuggestionsBuilder builder) Method parameters in net.minecraft.gametest.framework with type arguments of type CommandContextModifier and TypeMethodDescriptionprivate static ArgumentBuilder<CommandSourceStack, ?> TestCommand.runWithRetryOptions(ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<CommandContext<CommandSourceStack>, TestFinder> finder) private static ArgumentBuilder<CommandSourceStack, ?> TestCommand.runWithRetryOptions(ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<CommandContext<CommandSourceStack>, TestFinder> finder, Function<ArgumentBuilder<CommandSourceStack, ?>, ArgumentBuilder<CommandSourceStack, ?>> then) private static ArgumentBuilder<CommandSourceStack, ?> TestCommand.runWithRetryOptionsAndBuildInfo(ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<CommandContext<CommandSourceStack>, TestFinder> finder) -
Uses of CommandContext in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type CommandContextModifier and TypeMethodDescriptionintLootCommand.DropConsumer.accept(CommandContext<CommandSourceStack> context, List<ItemStack> drops, LootCommand.Callback successCallback) protected abstract @Nullable CompoundTagFunctionCommand.FunctionCustomExecutor.arguments(CommandContext<CommandSourceStack> context) private static intExecuteCommand.checkIfRegions(CommandContext<CommandSourceStack> context, boolean skipAir) private static OptionalIntExecuteCommand.checkRegions(CommandContext<CommandSourceStack> context, boolean skipAir) private static booleanExecuteCommand.checkScore(CommandContext<CommandSourceStack> context, MinMaxBounds.Ints range) private static booleanExecuteCommand.checkScore(CommandContext<CommandSourceStack> context, ExecuteCommand.IntBiPredicate operation) private static booleanExecuteCommand.checkStopwatch(CommandContext<CommandSourceStack> context, MinMaxBounds.Doubles range) private static intExecuteCommand.checkUnlessRegions(CommandContext<CommandSourceStack> context, boolean skipAir) private static intLootCommand.drop(CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, LootParams lootParams, LootCommand.DropConsumer output) private static intLootCommand.dropBlockLoot(CommandContext<CommandSourceStack> context, BlockPos pos, ItemInstance tool, LootCommand.DropConsumer output) private static intLootCommand.dropChestLoot(CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, LootCommand.DropConsumer output) private static intLootCommand.dropFishingLoot(CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, BlockPos pos, ItemInstance tool, LootCommand.DropConsumer output) private static intLootCommand.dropKillLoot(CommandContext<CommandSourceStack> context, Entity target, LootCommand.DropConsumer output) private static Collection<CommandSourceStack> ExecuteCommand.expect(CommandContext<CommandSourceStack> context, boolean expected, boolean result) private static List<AdvancementHolder> AdvancementCommands.getAdvancements(CommandContext<CommandSourceStack> context, AdvancementHolder target, AdvancementCommands.Mode mode) static CustomBossEventBossBarCommands.getBossBar(CommandContext<CommandSourceStack> context) TimeCommand.ClockGetter.getClock(CommandContext<CommandSourceStack> context) private static CloneCommands.DimensionAndPositionCloneCommands.getLoadedDimensionAndPosition(CommandContext<CommandSourceStack> context, ServerLevel level, String positionArgument) private static PackDataPackCommand.getPack(CommandContext<CommandSourceStack> context, String name, boolean enabling) intScoreboardCommand.NumberFormatCommandExecutor.run(CommandContext<CommandSourceStack> context, @Nullable NumberFormat format) private static intGameModeCommand.setMode(CommandContext<CommandSourceStack> context, Collection<ServerPlayer> players, GameType type) private static <T> intGameRuleCommand.setRule(CommandContext<CommandSourceStack> context, GameRule<T> gameRule) private static CompletableFuture<Suggestions> RandomCommand.suggestRandomSequence(CommandContext<CommandSourceStack> context, SuggestionsBuilder builder) intExecuteCommand.CommandNumericPredicate.test(CommandContext<CommandSourceStack> c) booleanExecuteCommand.CommandPredicate.test(CommandContext<CommandSourceStack> c) Method parameters in net.minecraft.server.commands with type arguments of type CommandContextModifier and TypeMethodDescriptionprivate static ArgumentBuilder<CommandSourceStack, ?> CloneCommands.beginEndDestinationAndModeSuffix(CommandBuildContext context, InCommandFunction<CommandContext<CommandSourceStack>, ServerLevel> fromDimension) private static ArgumentBuilder<CommandSourceStack, ?> CloneCommands.destinationAndStrictSuffix(CommandBuildContext context, InCommandFunction<CommandContext<CommandSourceStack>, ServerLevel> fromDimension, InCommandFunction<CommandContext<CommandSourceStack>, ServerLevel> toDimension) private static ArgumentBuilder<CommandSourceStack, ?> CloneCommands.modeSuffix(CommandBuildContext context, InCommandFunction<CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> beginPos, InCommandFunction<CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> endPos, InCommandFunction<CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> destinationPos, boolean strict, ArgumentBuilder<CommandSourceStack, ?> builder) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest(T originalSource, List<T> currentSources, Function<T, T> functionContextModifier, IntPredicate check, ContextChain<T> currentStep, @Nullable CompoundTag parameters, ExecutionControl<T> output, InCommandFunction<CommandContext<T>, Collection<CommandFunction<T>>> functionGetter, ChainModifiers modifiers) private static ArgumentBuilder<CommandSourceStack, ?> CloneCommands.wrapWithCloneMode(InCommandFunction<CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> beginPos, InCommandFunction<CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> endPos, InCommandFunction<CommandContext<CommandSourceStack>, CloneCommands.DimensionAndPosition> destinationPos, InCommandFunction<CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> filter, boolean strict, ArgumentBuilder<CommandSourceStack, ?> builder) private static ArgumentBuilder<CommandSourceStack, ?> FillCommand.wrapWithMode(CommandBuildContext context, ArgumentBuilder<CommandSourceStack, ?> builder, InCommandFunction<CommandContext<CommandSourceStack>, BlockPos> from, InCommandFunction<CommandContext<CommandSourceStack>, BlockPos> to, InCommandFunction<CommandContext<CommandSourceStack>, BlockInput> block, FillCommand.NullableCommandFunction<CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> filter) private static ArgumentBuilder<CommandSourceStack, ?> FillCommand.wrapWithMode(CommandBuildContext context, ArgumentBuilder<CommandSourceStack, ?> builder, InCommandFunction<CommandContext<CommandSourceStack>, BlockPos> from, InCommandFunction<CommandContext<CommandSourceStack>, BlockPos> to, InCommandFunction<CommandContext<CommandSourceStack>, BlockInput> block, FillCommand.NullableCommandFunction<CommandContext<CommandSourceStack>, Predicate<BlockInWorld>> filter) -
Uses of CommandContext in net.minecraft.server.commands.data
Methods in net.minecraft.server.commands.data with parameters of type CommandContextModifier and TypeMethodDescriptionDataCommands.DataProvider.access(CommandContext<CommandSourceStack> context) private static CommandStorageStorageDataAccessor.getGlobalTags(CommandContext<CommandSourceStack> context) DataCommands.getSingletonSource(CommandContext<CommandSourceStack> context, DataCommands.DataProvider sourceProvider) private static intDataCommands.manipulateData(CommandContext<CommandSourceStack> context, DataCommands.DataProvider targetProvider, DataCommands.DataManipulator manipulator, List<Tag> source) intDataCommands.DataManipulator.modify(CommandContext<CommandSourceStack> context, CompoundTag targetData, NbtPathArgument.NbtPath targetPath, List<Tag> source) DataCommands.resolveSourcePath(CommandContext<CommandSourceStack> context, DataCommands.DataProvider sourceProvider) -
Uses of CommandContext in net.minecraft.util.parsing.packrat.commands
Methods in net.minecraft.util.parsing.packrat.commands with parameters of type CommandContextModifier and TypeMethodDescriptionParserBasedArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) -
Uses of CommandContext in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type CommandContextModifier and TypeMethodDescriptionClientCommandSourceStack.suggestRegistryElements(ResourceKey<? extends Registry<?>> registry, SharedSuggestionProvider.ElementSuggestionType suggestionType, SuggestionsBuilder suggestionsBuilder, CommandContext<?> context) -
Uses of CommandContext in net.neoforged.neoforge.client.command
Methods in net.neoforged.neoforge.client.command with parameters of type CommandContextModifier and TypeMethodDescriptionprivate static intClientConfigCommand.ShowFile.showFile(CommandContext<CommandSourceStack> context) -
Uses of CommandContext in net.neoforged.neoforge.server.command
Methods in net.neoforged.neoforge.server.command with parameters of type CommandContextModifier and TypeMethodDescriptionprivate static intDumpCommand.dumpRegistry(CommandContext<CommandSourceStack> ctx, boolean alphabeticalSort, boolean printNumericIds) private static booleanGenerateCommand.getBool(CommandContext<CommandSourceStack> ctx, String name) private static intGenerateCommand.getInt(CommandContext<CommandSourceStack> ctx, String name) static <T> Optional<ResourceKey<T>> CommandUtils.getResourceKey(CommandContext<CommandSourceStack> ctx, String name, ResourceKey<Registry<T>> registryKey) private static intDataComponentCommand.listComponents(CommandContext<CommandSourceStack> ctx) EnumArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) ModIdArgument.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) private static intTagsCommand.listTagElements(CommandContext<CommandSourceStack> ctx, int page) private static intTagsCommand.listTags(CommandContext<CommandSourceStack> ctx, int page) private static intTagsCommand.queryElementTags(CommandContext<CommandSourceStack> ctx, int page) private static intTPSCommand.sendTime(CommandContext<CommandSourceStack> context, @Nullable ServerLevel dimension) private static intConfigCommand.ShowFile.showFile(CommandContext<CommandSourceStack> context) static CompletableFuture<Suggestions> CommandUtils.suggestRegistries(CommandContext<CommandSourceStack> ctx, SuggestionsBuilder builder)