Uses of Class
com.mojang.brigadier.exceptions.CommandSyntaxException
Packages that use CommandSyntaxException
Package
Description
-
Uses of CommandSyntaxException in com.mojang.brigadier
Fields in com.mojang.brigadier with type parameters of type CommandSyntaxExceptionModifier and TypeFieldDescriptionprivate final Map<CommandNode<S>, CommandSyntaxException> ParseResults.exceptionsMethods in com.mojang.brigadier that return types with arguments of type CommandSyntaxExceptionMethods in com.mojang.brigadier that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionRedirectModifier.apply(CommandContext<S> context) SingleRedirectModifier.apply(CommandContext<S> context) intCommandDispatcher.execute(ParseResults<S> parse) Executes a given pre-parsed command.intCommandDispatcher.execute(StringReader input, S source) Parses and executes a given command.intParses and executes a given command.voidStringReader.expect(char c) booleanStringReader.readBoolean()doubleStringReader.readDouble()floatStringReader.readFloat()intStringReader.readInt()longStringReader.readLong()StringReader.readQuotedString()StringReader.readString()StringReader.readStringUntil(char terminator) intCommand.run(CommandContext<S> context) Constructor parameters in com.mojang.brigadier with type arguments of type CommandSyntaxExceptionModifierConstructorDescriptionParseResults(CommandContextBuilder<S> context, ImmutableStringReader reader, Map<CommandNode<S>, CommandSyntaxException> exceptions) -
Uses of CommandSyntaxException in com.mojang.brigadier.arguments
Methods in com.mojang.brigadier.arguments that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionArgumentType.parse(StringReader reader) default <S> TArgumentType.parse(StringReader reader, S source) BoolArgumentType.parse(StringReader reader) DoubleArgumentType.parse(StringReader reader) FloatArgumentType.parse(StringReader reader) IntegerArgumentType.parse(StringReader reader) LongArgumentType.parse(StringReader reader) StringArgumentType.parse(StringReader reader) -
Uses of CommandSyntaxException in com.mojang.brigadier.context
Methods in com.mojang.brigadier.context that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionintContextChain.executeAll(S source, ResultConsumer<S> resultConsumer) static <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) -
Uses of CommandSyntaxException in com.mojang.brigadier.exceptions
Methods in com.mojang.brigadier.exceptions that return CommandSyntaxExceptionModifier and TypeMethodDescriptionSimpleCommandExceptionType.create()Dynamic2CommandExceptionType.createWithContext(ImmutableStringReader reader, Object a, Object b) Dynamic3CommandExceptionType.createWithContext(ImmutableStringReader reader, Object a, Object b, Object c) Dynamic4CommandExceptionType.createWithContext(ImmutableStringReader reader, Object a, Object b, Object c, Object d) DynamicCommandExceptionType.createWithContext(ImmutableStringReader reader, Object arg) DynamicNCommandExceptionType.createWithContext(ImmutableStringReader reader, Object... args) SimpleCommandExceptionType.createWithContext(ImmutableStringReader reader) -
Uses of CommandSyntaxException in com.mojang.brigadier.suggestion
Methods in com.mojang.brigadier.suggestion that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionSuggestionProvider.getSuggestions(CommandContext<S> context, SuggestionsBuilder builder) -
Uses of CommandSyntaxException in com.mojang.brigadier.tree
Methods in com.mojang.brigadier.tree that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionArgumentCommandNode.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) abstract CompletableFuture<Suggestions> CommandNode.listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) voidArgumentCommandNode.parse(StringReader reader, CommandContextBuilder<S> contextBuilder) abstract voidCommandNode.parse(StringReader reader, CommandContextBuilder<S> contextBuilder) voidLiteralCommandNode.parse(StringReader reader, CommandContextBuilder<S> contextBuilder) voidRootCommandNode.parse(StringReader reader, CommandContextBuilder<S> contextBuilder) -
Uses of CommandSyntaxException in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionstatic <T extends Number & Comparable<T>>
MinMaxBounds.Bounds<T> MinMaxBounds.Bounds.fromReader(StringReader reader, Function<String, T> converter, Supplier<DynamicCommandExceptionType> parseExc) static MinMaxBounds.DoublesMinMaxBounds.Doubles.fromReader(StringReader reader) static MinMaxBounds.FloatDegreesMinMaxBounds.FloatDegrees.fromReader(StringReader reader) static MinMaxBounds.IntsMinMaxBounds.Ints.fromReader(StringReader reader) MinMaxBounds.Bounds.readNumber(StringReader reader, Function<String, T> converter, Supplier<DynamicCommandExceptionType> parseExc) -
Uses of CommandSyntaxException in net.minecraft.client.gui.components
Methods in net.minecraft.client.gui.components with parameters of type CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate static FormattedCharSequenceCommandSuggestions.getExceptionMessage(CommandSyntaxException e) -
Uses of CommandSyntaxException in net.minecraft.commands
Methods in net.minecraft.commands that return CommandSyntaxExceptionModifier and TypeMethodDescriptionstatic <S> @Nullable CommandSyntaxExceptionCommands.getParseException(ParseResults<S> parse) Methods in net.minecraft.commands with parameters of type CommandSyntaxExceptionModifier and TypeMethodDescriptiondefault voidExecutionCommandSource.handleError(CommandSyntaxException e, boolean forked, @Nullable TraceCallbacks tracer) Methods in net.minecraft.commands that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionCommandSourceStack.getEntityOrException()CommandSourceStack.getPlayerOrException()voidCommands.ParseFunction.parse(StringReader value) static <S> voidCommands.validateParseResults(ParseResults<S> command) -
Uses of CommandSyntaxException in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate CommandSyntaxExceptionNbtPathArgument.NbtPath.createNotFoundException(NbtPathArgument.Node node) Methods in net.minecraft.commands.arguments that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionvoidOperationArgument.Operation.apply(ScoreAccess a, ScoreAccess b) intOperationArgument.SimpleOperation.apply(int a, int b) default voidOperationArgument.SimpleOperation.apply(ScoreAccess a, ScoreAccess b) static AdvancementHolderResourceKeyArgument.getAdvancement(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 Holder.Reference<ConfiguredFeature<?, ?>> ResourceArgument.getConfiguredFeature(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<ConfiguredFeature<?, ?>> ResourceKeyArgument.getConfiguredFeature(CommandContext<CommandSourceStack> context, String name) static ServerLevelDimensionArgument.getDimension(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) ResourceOrIdArgument.getLootTable(CommandContext<CommandSourceStack> context, String name) static ComponentMessageArgument.getMessage(CommandContext<CommandSourceStack> context, String name) static Holder.Reference<MobEffect> ResourceArgument.getMobEffect(CommandContext<CommandSourceStack> context, String name) static ScoreHolderScoreHolderArgument.getName(CommandContext<CommandSourceStack> context, String name) GameProfileArgument.Result.getNames(CommandSourceStack sender) GameProfileArgument.SelectorResult.getNames(CommandSourceStack sender) static Collection<ScoreHolder> ScoreHolderArgument.getNames(CommandContext<CommandSourceStack> context, String name) static Collection<ScoreHolder> ScoreHolderArgument.getNames(CommandContext<CommandSourceStack> context, String name, Supplier<Collection<ScoreHolder>> wildcard) ScoreHolderArgument.Result.getNames(CommandSourceStack sender, Supplier<Collection<ScoreHolder>> wildcard) ScoreHolderArgument.SelectorResult.getNames(CommandSourceStack sender, Supplier<Collection<ScoreHolder>> wildcard) static Collection<ScoreHolder> ScoreHolderArgument.getNamesWithDefaultWildcard(CommandContext<CommandSourceStack> context, String name) static ObjectiveObjectiveArgument.getObjective(CommandContext<CommandSourceStack> context, String name) private static OperationArgument.OperationOperationArgument.getOperation(String op) static Collection<? extends Entity> EntityArgument.getOptionalEntities(CommandContext<CommandSourceStack> context, String name) static Collection<ServerPlayer> EntityArgument.getOptionalPlayers(CommandContext<CommandSourceStack> context, String name) NbtPathArgument.NbtPath.getOrCreate(Tag tag, Supplier<Tag> newTagValue) NbtPathArgument.NbtPath.getOrCreateParents(Tag tag) static ServerPlayerEntityArgument.getPlayer(CommandContext<CommandSourceStack> context, String name) static Collection<ServerPlayer> EntityArgument.getPlayers(CommandContext<CommandSourceStack> context, String name) static RecipeHolder<?> ResourceKeyArgument.getRecipe(CommandContext<CommandSourceStack> context, String name) 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) 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) private static OperationArgument.SimpleOperationOperationArgument.getSimpleOperation(String op) 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 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 WaypointTransmitterWaypointArgument.getWaypoint(CommandContext<CommandSourceStack> context, String name) static ObjectiveObjectiveArgument.getWritableObjective(CommandContext<CommandSourceStack> context, String name) intNbtPathArgument.NbtPath.insert(int index, CompoundTag target, List<Tag> toInsert) static NbtPathArgument.NbtPathAngleArgument.parse(StringReader reader) ColorArgument.parse(StringReader reader) CompoundTagArgument.parse(StringReader reader) DimensionArgument.parse(StringReader reader) EntityAnchorArgument.parse(StringReader reader) EntityArgument.parse(StringReader reader) private EntitySelectorEntityArgument.parse(StringReader reader, boolean allowSelectors) <S> EntitySelectorEntityArgument.parse(StringReader reader, S source) GameModeArgument.parse(StringReader reader) GameProfileArgument.parse(StringReader reader) private static GameProfileArgument.ResultGameProfileArgument.parse(StringReader reader, boolean allowSelectors) GameProfileArgument.parse(StringReader reader, S source) HexColorArgument.parse(StringReader reader) IdentifierArgument.parse(StringReader reader) MessageArgument.parse(StringReader reader) MessageArgument.parse(StringReader reader, @Nullable S source) NbtPathArgument.parse(StringReader reader) ObjectiveArgument.parse(StringReader reader) ObjectiveCriteriaArgument.parse(StringReader reader) OperationArgument.parse(StringReader reader) ParticleArgument.parse(StringReader reader) RangeArgument.Floats.parse(StringReader reader) RangeArgument.Ints.parse(StringReader reader) ResourceArgument.parse(StringReader reader) ResourceKeyArgument.parse(StringReader reader) ResourceOrIdArgument.InlineResult.parse(ImmutableStringReader reader, HolderLookup.Provider lookup, DynamicOps<O> ops, Codec<T> codec, HolderLookup.RegistryLookup<T> elementLookup) ResourceOrIdArgument.parse(StringReader reader) ResourceOrIdArgument.parse(StringReader reader, Grammar<ResourceOrIdArgument.Result<T, O>> grammar, DynamicOps<O> ops) ResourceOrIdArgument.ReferenceResult.parse(ImmutableStringReader reader, HolderLookup.Provider lookup, DynamicOps<O> ops, Codec<T> codec, HolderLookup.RegistryLookup<T> elementLookup) ResourceOrIdArgument.Result.parse(ImmutableStringReader reader, HolderLookup.Provider lookup, DynamicOps<O> ops, Codec<T> codec, HolderLookup.RegistryLookup<T> elementLookup) ResourceOrTagArgument.parse(StringReader reader) ResourceOrTagKeyArgument.parse(StringReader reader) ResourceSelectorArgument.parse(StringReader reader) ScoreboardSlotArgument.parse(StringReader reader) ScoreHolderArgument.parse(StringReader reader) private ScoreHolderArgument.ResultScoreHolderArgument.parse(StringReader reader, boolean allowSelectors) ScoreHolderArgument.parse(StringReader reader, S source) SlotArgument.parse(StringReader reader) SlotsArgument.parse(StringReader reader) StringRepresentableArgument.parse(StringReader reader) TeamArgument.parse(StringReader reader) TimeArgument.parse(StringReader reader) UuidArgument.parse(StringReader reader) private static NbtPathArgument.NodeNbtPathArgument.parseNode(StringReader reader, boolean firstNode) static MessageArgument.MessageMessageArgument.Message.parseText(StringReader reader, boolean allowSelectors) private static NbtPathArgument.NodeNbtPathArgument.readObjectNode(StringReader reader, String name) static ParticleOptionsParticleArgument.readParticle(StringReader reader, HolderLookup.Provider registries) private static <T extends ParticleOptions, O>
TParticleArgument.readParticle(TagParser<O> parser, StringReader reader, ParticleType<T> type, HolderLookup.Provider registries) private static ParticleType<?> ParticleArgument.readParticleType(StringReader reader, HolderLookup<ParticleType<?>> particles) private static StringNbtPathArgument.readUnquotedName(StringReader reader) static voidMessageArgument.resolveChatMessage(CommandContext<CommandSourceStack> context, String name, Consumer<PlayerChatMessage> task) private ComponentMessageArgument.Message.resolveComponent(CommandSourceStack sender) private static <T> Holder.Reference<T> ResourceKeyArgument.resolveKey(CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey, DynamicCommandExceptionType exception) intMessageArgument.Message.toComponent(CommandSourceStack sender, boolean allowSelectors) MessageArgument.Part.toComponent(CommandSourceStack sender) -
Uses of CommandSyntaxException in net.minecraft.commands.arguments.blocks
Methods in net.minecraft.commands.arguments.blocks that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionstatic Predicate<BlockInWorld> BlockPredicateArgument.getBlockPredicate(CommandContext<CommandSourceStack> context, String name) BlockPredicateArgument.parse(StringReader reader) BlockPredicateArgument.parse(HolderLookup<Block> blocks, StringReader reader) BlockStateArgument.parse(StringReader reader) private voidBlockStateParser.parse()static BlockStateParser.BlockResultBlockStateParser.parseForBlock(HolderLookup<Block> blocks, StringReader reader, boolean allowNbt) static BlockStateParser.BlockResultBlockStateParser.parseForBlock(HolderLookup<Block> blocks, String value, boolean allowNbt) BlockStateParser.parseForTesting(HolderLookup<Block> blocks, StringReader reader, boolean allowNbt) BlockStateParser.parseForTesting(HolderLookup<Block> blocks, String value, boolean allowNbt) private voidBlockStateParser.readBlock()private voidBlockStateParser.readNbt()private voidBlockStateParser.readProperties()private voidBlockStateParser.readTag()private voidBlockStateParser.readVagueProperties()private <T extends Comparable<T>>
void -
Uses of CommandSyntaxException in net.minecraft.commands.arguments.coordinates
Methods in net.minecraft.commands.arguments.coordinates that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionstatic BlockPosBlockPosArgument.getLoadedBlockPos(CommandContext<CommandSourceStack> context, String name) static BlockPosBlockPosArgument.getLoadedBlockPos(CommandContext<CommandSourceStack> context, ServerLevel level, String name) static BlockPosBlockPosArgument.getSpawnablePos(CommandContext<CommandSourceStack> context, String name) BlockPosArgument.parse(StringReader reader) ColumnPosArgument.parse(StringReader reader) static LocalCoordinatesLocalCoordinates.parse(StringReader reader) RotationArgument.parse(StringReader reader) SwizzleArgument.parse(StringReader reader) Vec2Argument.parse(StringReader reader) Vec3Argument.parse(StringReader reader) static WorldCoordinateWorldCoordinate.parseDouble(StringReader reader, boolean center) static WorldCoordinatesWorldCoordinates.parseDouble(StringReader reader, boolean centerCorrect) static WorldCoordinateWorldCoordinate.parseInt(StringReader reader) static WorldCoordinatesWorldCoordinates.parseInt(StringReader reader) private static doubleLocalCoordinates.readDouble(StringReader reader, int start) -
Uses of CommandSyntaxException in net.minecraft.commands.arguments.item
Methods in net.minecraft.commands.arguments.item that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionFunctionArgument.Result.create(CommandContext<CommandSourceStack> context) static <T> ItemPredicateArgument.ComponentWrapperItemPredicateArgument.ComponentWrapper.create(ImmutableStringReader reader, Identifier id, DataComponentType<T> type) ComponentPredicateParser.Context.createComponentTest(ImmutableStringReader reader, C componentType, Dynamic<?> value) ItemPredicateArgument.Context.createComponentTest(ImmutableStringReader reader, ItemPredicateArgument.ComponentWrapper componentType, Dynamic<?> value) ItemInput.createItemStack(int count) ComponentPredicateParser.Context.createPredicateTest(ImmutableStringReader reader, P predicateType, Dynamic<?> value) ItemPredicateArgument.Context.createPredicateTest(ImmutableStringReader reader, ItemPredicateArgument.PredicateWrapper predicateType, Dynamic<?> value) ItemPredicateArgument.ComponentWrapper.decode(ImmutableStringReader reader, Dynamic<?> value) ItemPredicateArgument.PredicateWrapper.decode(ImmutableStringReader reader, Dynamic<?> value) ComponentPredicateParser.Context.forElementType(ImmutableStringReader reader, Identifier id) ItemPredicateArgument.Context.forElementType(ImmutableStringReader reader, Identifier id) ComponentPredicateParser.Context.forTagType(ImmutableStringReader reader, Identifier id) ItemPredicateArgument.Context.forTagType(ImmutableStringReader reader, Identifier id) 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) ComponentPredicateParser.Context.lookupComponentType(ImmutableStringReader reader, Identifier id) ItemPredicateArgument.Context.lookupComponentType(ImmutableStringReader reader, Identifier componentId) ComponentPredicateParser.Context.lookupPredicateType(ImmutableStringReader reader, Identifier id) ItemPredicateArgument.Context.lookupPredicateType(ImmutableStringReader reader, Identifier componentId) FunctionArgument.parse(StringReader reader) ItemArgument.parse(StringReader reader) ItemParser.parse(StringReader reader) voidItemParser.parse(StringReader reader, ItemParser.Visitor visitor) voidItemParser.State.parse()private <T,O> void ItemParser.State.readComponent(TagParser<O> tagParser, RegistryOps<O> registryOps, DataComponentType<T> componentType) private voidItemParser.State.readComponents()static DataComponentType<?> ItemParser.State.readComponentType(StringReader reader) private voidItemParser.State.readItem()Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.Result.unwrap(CommandContext<CommandSourceStack> context) FunctionArgument.Result.unwrapToCollection(CommandContext<CommandSourceStack> context) -
Uses of CommandSyntaxException in net.minecraft.commands.arguments.selector
Methods in net.minecraft.commands.arguments.selector that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate voidEntitySelector.checkPermissions(CommandSourceStack sender) EntitySelector.findEntities(CommandSourceStack sender) EntitySelector.findPlayers(CommandSourceStack sender) EntitySelector.findSingleEntity(CommandSourceStack sender) EntitySelector.findSinglePlayer(CommandSourceStack sender) EntitySelectorParser.parse()protected voidEntitySelectorParser.parseNameOrUUID()voidEntitySelectorParser.parseOptions()protected voidEntitySelectorParser.parseSelector() -
Uses of CommandSyntaxException in net.minecraft.commands.arguments.selector.options
Methods in net.minecraft.commands.arguments.selector.options that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionEntitySelectorOptions.get(EntitySelectorParser parser, String key, int start) voidEntitySelectorOptions.Modifier.handle(EntitySelectorParser parser) -
Uses of CommandSyntaxException in net.minecraft.commands.execution
Methods in net.minecraft.commands.execution with parameters of type CommandSyntaxExceptionModifier and TypeMethodDescriptionprotected voidCustomCommandExecutor.WithErrorHandling.onError(CommandSyntaxException e, T sender, ChainModifiers modifiers, @Nullable TraceCallbacks tracer) Methods in net.minecraft.commands.execution that throw CommandSyntaxExceptionModifier and TypeMethodDescriptiondefault Collection<T> CustomModifierExecutor.ModifierAdapter.apply(CommandContext<T> context) default intCustomCommandExecutor.CommandAdapter.run(CommandContext<T> context) protected abstract voidCustomCommandExecutor.WithErrorHandling.runGuarded(T sender, ContextChain<T> currentStep, ChainModifiers modifiers, ExecutionControl<T> output) -
Uses of CommandSyntaxException in net.minecraft.commands.functions
Methods in net.minecraft.commands.functions that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionstatic <T extends ExecutionCommandSource<T>>
UnboundEntryAction<T> CommandFunction.parseCommand(CommandDispatcher<T> dispatcher, T compilationContext, StringReader input) -
Uses of CommandSyntaxException in net.minecraft.commands.synchronization
Methods in net.minecraft.commands.synchronization that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionSuggestionProviders.RegisteredSuggestion.getSuggestions(CommandContext<SharedSuggestionProvider> context, SuggestionsBuilder builder) -
Uses of CommandSyntaxException in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate static intTestCommand.clear(TestFinder finder) private static intTestCommand.createNewStructure(CommandSourceStack source, Identifier id, int xSize, int ySize, int zSize) private static intTestCommand.export(TestFinder finder) private static intTestCommand.locate(TestFinder finder) private static intTestCommand.reset(TestFinder finder) private static intTestCommand.showPos(CommandSourceStack source, String varName) -
Uses of CommandSyntaxException in net.minecraft.nbt
Fields in net.minecraft.nbt with type parameters of type CommandSyntaxExceptionModifier and TypeFieldDescriptionprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_EMPTY_KEYprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_EXPECTED_BINARY_NUMERALprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_EXPECTED_DECIMAL_NUMERALprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_EXPECTED_FLOAT_TYPEprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_EXPECTED_HEX_NUMERALprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_EXPECTED_INTEGER_TYPEprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_EXPECTED_NON_NEGATIVE_NUMBERprivate static final DelayedException<CommandSyntaxException> SnbtOperations.ERROR_EXPECTED_NUMBER_OR_BOOLEANprivate static final DelayedException<CommandSyntaxException> SnbtOperations.ERROR_EXPECTED_STRING_UUIDprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_EXPECTED_UNQUOTED_STRINGprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_INFINITY_NOT_ALLOWEDprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_INVALID_ARRAY_ELEMENT_TYPEprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_INVALID_CHARACTER_NAMEprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_INVALID_STRING_CONTENTSprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_INVALID_UNQUOTED_STARTprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_LEADING_ZERO_NOT_ALLOWEDprivate static final DelayedException<CommandSyntaxException> SnbtGrammar.ERROR_UNDESCORE_NOT_ALLOWEDMethods in net.minecraft.nbt that return types with arguments of type CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate static DelayedException<CommandSyntaxException> SnbtGrammar.createNumberParseError(NumberFormatException ex) Methods in net.minecraft.nbt that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate static CompoundTagTagParser.castToCompoundOrThrow(StringReader reader, Tag result) TagParser.parseAsArgument(StringReader reader) static CompoundTagTagParser.parseCompoundAsArgument(StringReader reader) static CompoundTagTagParser.parseCompoundFully(String input) TagParser.parseFully(StringReader reader) TagParser.parseFully(String input) static CompoundTagNbtUtils.snbtToStructure(String snbt) -
Uses of CommandSyntaxException in net.minecraft.network.chat
Methods in net.minecraft.network.chat that throw CommandSyntaxExceptionModifier and TypeMethodDescriptiondefault MutableComponentComponentContents.resolve(ResolutionContext context, int recursionDepth) static Optional<MutableComponent> ComponentUtils.resolve(ResolutionContext context, Optional<Component> component, int recursionDepth) static MutableComponentComponentUtils.resolve(ResolutionContext context, Component component) static MutableComponentComponentUtils.resolve(ResolutionContext context, Component component, int recursionDepth) private static StyleComponentUtils.resolveStyle(ResolutionContext context, Style style, int recursionDepth) -
Uses of CommandSyntaxException in net.minecraft.network.chat.contents
Methods in net.minecraft.network.chat.contents that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate ScoreHolderScoreContents.findTargetName(CommandSourceStack source) NbtContents.resolve(ResolutionContext context, int recursionDepth) ObjectContents.resolve(ResolutionContext context, int recursionDepth) ScoreContents.resolve(ResolutionContext context, int recursionDepth) SelectorContents.resolve(ResolutionContext context, int recursionDepth) TranslatableContents.resolve(ResolutionContext context, int recursionDepth) -
Uses of CommandSyntaxException in net.minecraft.network.chat.contents.data
Methods in net.minecraft.network.chat.contents.data that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionDataSource.getData(CommandSourceStack sender) EntityDataSource.getData(CommandSourceStack sender) -
Uses of CommandSyntaxException in net.minecraft.resources
Methods in net.minecraft.resources that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionstatic IdentifierIdentifier.read(StringReader reader) static IdentifierIdentifier.readNonEmpty(StringReader reader) -
Uses of CommandSyntaxException in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return types with arguments of type CommandSyntaxExceptionModifier and TypeMethodDescriptionstatic Either<Integer, CommandSyntaxException> static Either<Integer, CommandSyntaxException> FillBiomeCommand.fill(ServerLevel level, BlockPos rawFrom, BlockPos rawTo, Holder<Biome> biome, Predicate<Holder<Biome>> filter, Consumer<Supplier<Component>> successMessageConsumer) Methods in net.minecraft.server.commands that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionvoidintLootCommand.DropConsumer.accept(CommandContext<CommandSourceStack> context, List<ItemStack> drops, LootCommand.Callback successCallback) private static intAttributeCommand.addModifier(CommandSourceStack source, Entity target, Holder<Attribute> attribute, Identifier id, double value, AttributeModifier.Operation operation) private static intScoreboardCommand.addObjective(CommandSourceStack source, String name, ObjectiveCriteria criteria, Component displayName) private static intWhitelistCommand.addPlayers(CommandSourceStack source, Collection<NameAndId> targets) private static intTagCommand.addTag(CommandSourceStack source, Collection<? extends Entity> targets, String name) private static intTriggerCommand.addValue(CommandSourceStack source, ServerPlayer player, Objective objective, int amount) void@Nullable Rprotected abstract @Nullable CompoundTagFunctionCommand.FunctionCustomExecutor.arguments(CommandContext<CommandSourceStack> context) private static intBanIpCommands.banIp(CommandSourceStack source, String ip, @Nullable Component reason) private static intBanIpCommands.banIpOrName(CommandSourceStack source, String target, @Nullable Component reason) private static intBanPlayerCommands.banPlayers(CommandSourceStack source, Collection<NameAndId> players, @Nullable Component reason) private static intLootCommand.blockDistribute(CommandSourceStack source, BlockPos pos, List<ItemStack> drops, LootCommand.Callback callback) private static intLootCommand.blockReplace(CommandSourceStack source, BlockPos pos, int startSlot, int slotCount, List<ItemStack> drops, LootCommand.Callback callback) private static intItemCommands.blockToBlock(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos targetPos, int targetSlot) private static intItemCommands.blockToBlock(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos targetPos, int targetSlot, Holder<LootItemFunction> modifier) private static intItemCommands.blockToEntities(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot) private static intItemCommands.blockToEntities(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot, Holder<LootItemFunction> modifier) private static intForceLoadCommand.changeForceLoad(CommandSourceStack source, ColumnPos from, ColumnPos to, boolean add) private static intRaidCommand.check(CommandSourceStack source) private static intExecuteCommand.checkIfRegions(CommandContext<CommandSourceStack> context, boolean skipAir) private static voidPlaceCommand.checkLoaded(ServerLevel level, ChunkPos chunkMin, ChunkPos chunkMax) private static intExecuteCommand.checkMatchingData(DataAccessor accessor, NbtPathArgument.NbtPath path) private static OptionalIntExecuteCommand.checkRegions(CommandContext<CommandSourceStack> context, boolean skipAir) private static OptionalIntExecuteCommand.checkRegions(ServerLevel level, BlockPos startPos, BlockPos endPos, BlockPos destPos, 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 intScoreboardCommand.clearDisplaySlot(CommandSourceStack source, DisplaySlot slot) private static intEffectCommands.clearEffect(CommandSourceStack source, Collection<? extends Entity> entities, Holder<MobEffect> effectHolder) private static intEffectCommands.clearEffects(CommandSourceStack source, Collection<? extends Entity> entities) private static intClearInventoryCommands.clearInventory(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate, int maxCount) private static intClearInventoryCommands.clearUnlimited(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate) private static intCloneCommands.clone(CommandSourceStack source, CloneCommands.DimensionAndPosition startPosAndDimension, CloneCommands.DimensionAndPosition endPosAndDimension, CloneCommands.DimensionAndPosition destPosAndDimension, Predicate<BlockInWorld> predicate, CloneCommands.Mode mode, boolean strict) private static intExecuteCommand.countItems(CommandSourceStack source, BlockPos pos, SlotRange slotRange, Predicate<ItemStack> predicate) private static intBossBarCommands.createBar(CommandSourceStack source, Identifier id, Component name) static EntitySummonCommand.createEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize) private static intDataPackCommand.createPack(CommandSourceStack source, String id, Component description) private static intStopwatchCommand.createStopwatch(CommandSourceStack source, Identifier id) private static intTeamCommand.createTeam(CommandSourceStack source, String name) private static intTeamCommand.createTeam(CommandSourceStack source, String name, Component displayName) private static intDamageCommand.damage(CommandSourceStack stack, Entity target, float amount, DamageSource source) private static intDeOpCommands.deopPlayers(CommandSourceStack source, Collection<NameAndId> players) private static intWhitelistCommand.disableWhitelist(CommandSourceStack source) private static intRideCommand.dismount(CommandSourceStack source, Entity target) 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.dropInWorld(CommandSourceStack source, Vec3 pos, List<ItemStack> drops, LootCommand.Callback callback) private static intLootCommand.dropKillLoot(CommandContext<CommandSourceStack> context, Entity target, LootCommand.DropConsumer output) private static intTeamCommand.emptyTeam(CommandSourceStack source, PlayerTeam team) private static intDataPackCommand.enablePack(CommandSourceStack source, Pack unopened, DataPackCommand.Inserter inserter) private static intScoreboardCommand.enableTrigger(CommandSourceStack source, Collection<ScoreHolder> names, Objective objective) private static intWhitelistCommand.enableWhitelist(CommandSourceStack source) private static intEnchantCommand.enchant(CommandSourceStack source, Collection<? extends Entity> targets, Holder<Enchantment> enchantmentHolder, int level) private static intLootCommand.entityReplace(Collection<? extends Entity> entities, int startSlot, int count, List<ItemStack> drops, LootCommand.Callback callback) private static intItemCommands.entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos targetPos, int targetSlot) private static intItemCommands.entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos targetPos, int targetSlot, Holder<LootItemFunction> modifier) private static intItemCommands.entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot) private static intItemCommands.entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot, Holder<LootItemFunction> modifier) private static intFillBiomeCommand.fill(CommandSourceStack source, BlockPos rawFrom, BlockPos rawTo, Holder.Reference<Biome> biome, Predicate<Holder<Biome>> filter) private static intDebugPathCommand.fillBlocks(CommandSourceStack source, BlockPos target) private static intFillCommand.fillBlocks(CommandSourceStack source, BoundingBox region, BlockInput target, FillCommand.Mode mode, @Nullable Predicate<BlockInWorld> predicate, boolean strict) private static CompoundTagFunctionCommand.getArgumentTag(NbtPathArgument.NbtPath path, DataAccessor accessor) private static intAttributeCommand.getAttributeBase(CommandSourceStack source, Entity target, Holder<Attribute> attribute, double scale) private static AttributeInstanceAttributeCommand.getAttributeInstance(Entity target, Holder<Attribute> attribute) private static intAttributeCommand.getAttributeModifier(CommandSourceStack source, Entity target, Holder<Attribute> attribute, Identifier id, double scale) private static Stream<Identifier> AttributeCommand.getAttributeModifiers(Entity target, Holder<Attribute> attribute) private static intAttributeCommand.getAttributeValue(CommandSourceStack source, Entity target, Holder<Attribute> attribute, double scale) private static ItemStackItemCommands.getBlockItem(CommandSourceStack source, BlockPos pos, int slot) static CustomBossEventBossBarCommands.getBossBar(CommandContext<CommandSourceStack> context) TimeCommand.ClockGetter.getClock(CommandContext<CommandSourceStack> context) (package private) static ContainerItemCommands.getContainer(CommandSourceStack source, BlockPos pos, Dynamic3CommandExceptionType exceptionType) private static ContainerLootCommand.getContainer(CommandSourceStack source, BlockPos pos) private static Holder<WorldClock> TimeCommand.getDefaultClock(CommandSourceStack source) private static LivingEntityAttributeCommand.getEntityWithAttribute(Entity target, Holder<Attribute> attribute) private static ItemStackItemCommands.getItemInSlot(SlotProvider slotProvider, int slot) private static LivingEntityAttributeCommand.getLivingEntity(Entity target) private static CloneCommands.DimensionAndPositionCloneCommands.getLoadedDimensionAndPosition(CommandContext<CommandSourceStack> context, ServerLevel level, String positionArgument) private static PackDataPackCommand.getPack(CommandContext<CommandSourceStack> context, String name, boolean enabling) private static intScoreboardCommand.getScore(CommandSourceStack source, ScoreHolder target, Objective objective) private static ScoreAccessTriggerCommand.getScore(Scoreboard scoreboard, ScoreHolder scoreHolder, Objective objective) private static ItemStackLootCommand.getSourceHandItem(CommandSourceStack source, EquipmentSlot slot) private static intEffectCommands.giveEffect(CommandSourceStack source, Collection<? extends Entity> entities, Holder<MobEffect> effectHolder, @Nullable Integer seconds, int amplifier, boolean particles) private static intGiveCommand.giveItem(CommandSourceStack source, ItemInput input, Collection<ServerPlayer> players, int count) private static intRecipeCommand.giveRecipes(CommandSourceStack source, Collection<ServerPlayer> players, Collection<RecipeHolder<?>> recipes) private static intRaidCommand.glow(CommandSourceStack source) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.instantiateAndQueueFunctions(@Nullable CompoundTag arguments, ExecutionControl<T> output, CommandDispatcher<T> dispatcher, T noCallbackSource, CommandFunction<T> function, Identifier id, CommandResultCallback functionResultCollector, boolean returnParentFrame) private static intKickCommand.kickPlayers(CommandSourceStack source, Collection<ServerPlayer> players, Component reason) private static intLocateCommand.locateBiome(CommandSourceStack source, ResourceOrTagArgument.Result<Biome> elementOrTag) private static intLocateCommand.locatePoi(CommandSourceStack source, ResourceOrTagArgument.Result<PoiType> resourceOrTag) private static intLocateCommand.locateStructure(CommandSourceStack source, ResourceOrTagKeyArgument.Result<Structure> resourceOrTag) private static intItemCommands.modifyBlockItem(CommandSourceStack source, BlockPos pos, int slot, Holder<LootItemFunction> modifier) private static intItemCommands.modifyEntityItem(CommandSourceStack source, Collection<? extends Entity> entities, int slot, Holder<LootItemFunction> modifier) private static intRideCommand.mount(CommandSourceStack source, Entity target, Entity vehicle) private static intOpCommand.opPlayers(CommandSourceStack source, Collection<NameAndId> players) private static intPardonCommand.pardonPlayers(CommandSourceStack source, Collection<NameAndId> players) private static intAdvancementCommands.perform(CommandSourceStack source, Collection<ServerPlayer> players, AdvancementCommands.Action action, Collection<AdvancementHolder> advancements) private static intAdvancementCommands.perform(CommandSourceStack source, Collection<ServerPlayer> players, AdvancementCommands.Action action, Collection<AdvancementHolder> advancements, boolean showAdvancements) private static intAdvancementCommands.performCriterion(CommandSourceStack source, Collection<ServerPlayer> players, AdvancementCommands.Action action, AdvancementHolder holder, String criterion) private static intScoreboardCommand.performOperation(CommandSourceStack source, Collection<ScoreHolder> targets, Objective targetObjective, OperationArgument.Operation operation, Collection<ScoreHolder> sources, Objective sourceObjective) private static voidTeleportCommand.performTeleport(CommandSourceStack source, Entity victim, ServerLevel level, double x, double y, double z, Set<Relative> relatives, float yRot, float xRot, @Nullable LookAt lookAt) static intPlaceCommand.placeFeature(CommandSourceStack source, Holder.Reference<ConfiguredFeature<?, ?>> featureHolder, BlockPos pos) static intPlaceCommand.placeJigsaw(CommandSourceStack source, Holder<StructureTemplatePool> pool, Identifier target, int maxDepth, BlockPos pos) static intPlaceCommand.placeStructure(CommandSourceStack source, Holder.Reference<Structure> structureHolder, BlockPos pos) static intPlaceCommand.placeTemplate(CommandSourceStack source, Identifier template, BlockPos pos, Rotation rotation, Mirror mirror, float integrity, int seed, boolean strict) private static intLootCommand.playerGive(Collection<ServerPlayer> players, List<ItemStack> drops, LootCommand.Callback callback) private static intPlaySoundCommand.playSound(CommandSourceStack source, Collection<ServerPlayer> players, Identifier sound, SoundSource soundSource, Vec3 position, float volume, float pitch, float minVolume) private static intFetchProfileCommand.printForEntity(CommandSourceStack source, Entity entity) private static intPublishCommand.publish(CommandSourceStack source, int port, boolean allowCommands, @Nullable GameType type) private static intForceLoadCommand.queryForceLoad(CommandSourceStack source, ColumnPos pos) private static intStopwatchCommand.queryStopwatch(CommandSourceStack source, Identifier id, double scale) private static intTimeCommand.queryTimelineRepetitions(CommandSourceStack source, Holder<WorldClock> clock, Holder<Timeline> timeline) private static intTimeCommand.queryTimelineTicks(CommandSourceStack source, Holder<WorldClock> clock, Holder<Timeline> timeline) static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions(Collection<CommandFunction<T>> functions, @Nullable CompoundTag arguments, T originalSource, T functionSource, ExecutionControl<T> output, FunctionCommand.Callbacks<T> callbacks, ChainModifiers modifiers) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn(Collection<CommandFunction<T>> functions, @Nullable CompoundTag arguments, T originalSource, T functionSource, ExecutionControl<T> output, FunctionCommand.Callbacks<T> callbacks) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn(Collection<CommandFunction<T>> functions, @Nullable CompoundTag arguments, T originalSource, T functionSource, ExecutionControl<T> output, FunctionCommand.Callbacks<T> callbacks) private static intRandomCommand.randomSample(CommandSourceStack source, MinMaxBounds.Ints range, @Nullable Identifier sequence, boolean announce) private static intScheduleCommand.remove(CommandSourceStack source, String id) private static intAttributeCommand.removeModifier(CommandSourceStack source, Entity target, Holder<Attribute> attribute, Identifier id) private static intWhitelistCommand.removePlayers(CommandSourceStack source, Collection<NameAndId> targets) private static intStopwatchCommand.removeStopwatch(CommandSourceStack source, Identifier id) private static intTagCommand.removeTag(CommandSourceStack source, Collection<? extends Entity> targets, String name) private static intAttributeCommand.resetAttributeBase(CommandSourceStack source, Entity target, Holder<Attribute> attribute) private static intRandomCommand.resetSequence(CommandSourceStack source, Identifier sequence) private static intRandomCommand.resetSequence(CommandSourceStack source, Identifier sequence, int salt, boolean includeWorldSeed, boolean includeSequenceId) private static intStopwatchCommand.restartStopwatch(CommandSourceStack source, Identifier id) intScoreboardCommand.NumberFormatCommandExecutor.run(CommandContext<CommandSourceStack> context, @Nullable NumberFormat format) voidDebugCommand.TraceCustomExecutor.runGuarded(CommandSourceStack source, ContextChain<CommandSourceStack> currentStep, ChainModifiers modifiers, ExecutionControl<CommandSourceStack> context) voidFunctionCommand.FunctionCustomExecutor.runGuarded(CommandSourceStack sender, ContextChain<CommandSourceStack> currentStep, ChainModifiers modifiers, ExecutionControl<CommandSourceStack> output) private static intSaveAllCommand.saveAll(CommandSourceStack source, boolean flush) private static intScheduleCommand.schedule(CommandSourceStack source, Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> callback, int time, boolean replace) private static intParticleCommand.sendParticles(CommandSourceStack source, ParticleOptions particle, Vec3 pos, Vec3 delta, float speed, int count, boolean force, Collection<ServerPlayer> players) private static intAttributeCommand.setAttributeBase(CommandSourceStack source, Entity target, Holder<Attribute> attribute, double value) private static intSetBlockCommand.setBlock(CommandSourceStack source, BlockPos pos, BlockInput block, SetBlockCommand.Mode mode, @Nullable Predicate<BlockInWorld> predicate, boolean strict) private static intItemCommands.setBlockItem(CommandSourceStack source, BlockPos pos, int slot, ItemStack itemStack) private static intWorldBorderCommand.setCenter(CommandSourceStack source, Vec2 center) private static intTeamCommand.setCollision(CommandSourceStack source, PlayerTeam team, Team.CollisionRule collision) private static intBossBarCommands.setColor(CommandSourceStack source, CustomBossEvent bossBar, BossEvent.BossBarColor color) private static intTeamCommand.setColor(CommandSourceStack source, PlayerTeam team, ChatFormatting color) private static intWorldBorderCommand.setDamageAmount(CommandSourceStack source, float damagePerBlock) private static intWorldBorderCommand.setDamageBuffer(CommandSourceStack source, float distance) private static intTeamCommand.setDeathMessageVisibility(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) static intDifficultyCommand.setDifficulty(CommandSourceStack source, Difficulty difficulty) private static intTeamCommand.setDisplayName(CommandSourceStack source, PlayerTeam team, Component displayName) private static intScoreboardCommand.setDisplaySlot(CommandSourceStack source, DisplaySlot slot, Objective objective) private static intItemCommands.setEntityItem(CommandSourceStack source, Collection<? extends Entity> entities, int slot, ItemStack itemStack) private static intExperienceCommand.setExperience(CommandSourceStack source, Collection<? extends ServerPlayer> players, int amount, ExperienceCommand.Type type) private static intTeamCommand.setFriendlyFire(CommandSourceStack source, PlayerTeam team, boolean allowed) private static intTeamCommand.setFriendlySight(CommandSourceStack source, PlayerTeam team, boolean allowed) private static intBossBarCommands.setMax(CommandSourceStack source, CustomBossEvent bossBar, int value) private static intBossBarCommands.setName(CommandSourceStack source, CustomBossEvent bossBar, Component name) private static intTeamCommand.setNametagVisibility(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) private static intBossBarCommands.setPlayers(CommandSourceStack source, CustomBossEvent bossBar, Collection<ServerPlayer> targets) private static intRaidCommand.setRaidOmenLevel(CommandSourceStack source, int level) private static intWorldBorderCommand.setSize(CommandSourceStack source, double distance, long ticks) private static intBossBarCommands.setStyle(CommandSourceStack source, CustomBossEvent bossBar, BossEvent.BossBarOverlay style) private static intTimeCommand.setTimeToTimeMarker(CommandSourceStack source, Holder<WorldClock> clock, ResourceKey<ClockTimeMarker> timeMarkerId) private static intBossBarCommands.setValue(CommandSourceStack source, CustomBossEvent bossBar, int value) private static intTriggerCommand.setValue(CommandSourceStack source, ServerPlayer player, Objective objective, int amount) private static intBossBarCommands.setVisible(CommandSourceStack source, CustomBossEvent bossBar, boolean visible) private static intWorldBorderCommand.setWarningDistance(CommandSourceStack source, int distance) private static intWorldBorderCommand.setWarningTime(CommandSourceStack source, int ticks) private static intTitleCommand.showTitle(CommandSourceStack source, Collection<ServerPlayer> targets, Component title, String type, Function<Component, Packet<?>> factory) private static intTriggerCommand.simpleTrigger(CommandSourceStack source, ServerPlayer player, Objective objective) private static intSummonCommand.spawnEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize) private static CommandSourceStackExecuteCommand.spawnEntityAndRedirect(CommandSourceStack source, Holder.Reference<EntityType<?>> type) private static intSpectateCommand.spectate(CommandSourceStack source, @Nullable Entity target, ServerPlayer player) private static intSpreadPlayersCommand.spreadPlayers(CommandSourceStack source, Vec2 center, float spreadDistance, float maxRange, int maxHeight, boolean respectTeams, Collection<? extends Entity> entities) private static voidSpreadPlayersCommand.spreadPositions(Vec2 center, double spreadDist, ServerLevel level, RandomSource random, double minX, double minZ, double maxX, double maxZ, int maxHeight, SpreadPlayersCommand.Position[] positions, boolean respectTeams) private static intDebugCommand.start(CommandSourceStack source) private static intRaidCommand.start(CommandSourceStack source, int raidOmenLevel) private static intJfrCommand.startJfr(CommandSourceStack source) private static intPerfCommand.startProfilingDedicatedServer(CommandSourceStack source) private static intDebugCommand.stop(CommandSourceStack source) private static intRaidCommand.stop(CommandSourceStack source) private static intJfrCommand.stopJfr(CommandSourceStack source) private static intPerfCommand.stopProfilingDedicatedServer(CommandSourceStack source) private static intSwingCommand.swing(CommandSourceStack source, Collection<? extends Entity> targets, InteractionHand hand) private static intRecipeCommand.takeRecipes(CommandSourceStack source, Collection<ServerPlayer> players, Collection<RecipeHolder<?>> recipes) private static intTeleportCommand.teleportToEntity(CommandSourceStack source, Collection<? extends Entity> entities, Entity destination) private static intTeleportCommand.teleportToPos(CommandSourceStack source, Collection<? extends Entity> entities, ServerLevel level, Coordinates destination, @Nullable Coordinates rotation, @Nullable LookAt lookAt) intExecuteCommand.CommandNumericPredicate.test(CommandContext<CommandSourceStack> c) booleanExecuteCommand.CommandPredicate.test(CommandContext<CommandSourceStack> c) private static intTransferCommand.transfer(CommandSourceStack source, String hostname, int port, Collection<ServerPlayer> players) private static intPardonIpCommand.unban(CommandSourceStack source, String ip) -
Uses of CommandSyntaxException in net.minecraft.server.commands.data
Methods in net.minecraft.server.commands.data that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionDataCommands.DataProvider.access(CommandContext<CommandSourceStack> context) private static StringDataAccessor.getData()private static intDataCommands.getData(CommandSourceStack source, DataAccessor accessor) private static intDataCommands.getData(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path) private static intDataCommands.getNumeric(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path, double scale) static TagDataCommands.getSingleTag(NbtPathArgument.NbtPath path, DataAccessor accessor) DataCommands.getSingletonSource(CommandContext<CommandSourceStack> context, DataCommands.DataProvider sourceProvider) private static intDataCommands.manipulateData(CommandContext<CommandSourceStack> context, DataCommands.DataProvider targetProvider, DataCommands.DataManipulator manipulator, List<Tag> source) private static intDataCommands.mergeData(CommandSourceStack source, DataAccessor accessor, CompoundTag nbt) intDataCommands.DataManipulator.modify(CommandContext<CommandSourceStack> context, CompoundTag targetData, NbtPathArgument.NbtPath targetPath, List<Tag> source) private static intDataCommands.removeData(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path) DataCommands.resolveSourcePath(CommandContext<CommandSourceStack> context, DataCommands.DataProvider sourceProvider) voidDataAccessor.setData(CompoundTag tag) voidEntityDataAccessor.setData(CompoundTag tag) DataCommands.stringifyTagList(List<Tag> source, DataCommands.StringProcessor stringProcessor) private static Stringprivate static Stringprivate static StringDataCommands.validatedSubstring(String input, int start, int end) -
Uses of CommandSyntaxException in net.minecraft.util
Methods in net.minecraft.util with parameters of type CommandSyntaxExceptionModifier and TypeMethodDescriptionprotected abstract StringCompilableString.CommandParserHelper.errorMessage(String original, CommandSyntaxException exception) Methods in net.minecraft.util that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionprotected abstract TCompilableString.CommandParserHelper.parse(StringReader reader) -
Uses of CommandSyntaxException in net.minecraft.util.datafix.fixes
Methods in net.minecraft.util.datafix.fixes that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate static <T> Dynamic<T> ParticleUnflatteningFix.readVector(Dynamic<T> result, StringReader reader) -
Uses of CommandSyntaxException in net.minecraft.util.parsing.packrat
Methods in net.minecraft.util.parsing.packrat that return types with arguments of type CommandSyntaxExceptionModifier and TypeMethodDescriptionDelayedException.create(DynamicCommandExceptionType type, String argument) DelayedException.create(SimpleCommandExceptionType type) -
Uses of CommandSyntaxException in net.minecraft.util.parsing.packrat.commands
Fields in net.minecraft.util.parsing.packrat.commands with type parameters of type CommandSyntaxExceptionModifier and TypeFieldDescriptionprivate final DelayedException<CommandSyntaxException> GreedyPatternParseRule.errorprivate final DelayedException<CommandSyntaxException> GreedyPredicateParseRule.errorprivate final DelayedException<CommandSyntaxException> ResourceLookupRule.errorprivate final DelayedException<CommandSyntaxException> StringReaderTerms.TerminalCharacters.errorprivate final DelayedException<CommandSyntaxException> StringReaderTerms.TerminalWord.errorprivate final DelayedException<CommandSyntaxException> UnquotedStringParseRule.errorprivate final DelayedException<CommandSyntaxException> NumberRunParseRule.noValueErrorprivate final DelayedException<CommandSyntaxException> NumberRunParseRule.underscoreNotAllowedErrorMethods in net.minecraft.util.parsing.packrat.commands that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionParserBasedArgument.parse(StringReader reader) CommandArgumentParser.parseForCommands(StringReader reader) Grammar.parseForCommands(StringReader reader) Constructor parameters in net.minecraft.util.parsing.packrat.commands with type arguments of type CommandSyntaxExceptionModifierConstructorDescriptionGreedyPatternParseRule(Pattern pattern, DelayedException<CommandSyntaxException> error) GreedyPredicateParseRule(int minSize, int maxSize, DelayedException<CommandSyntaxException> error) GreedyPredicateParseRule(int minSize, DelayedException<CommandSyntaxException> error) NumberRunParseRule(DelayedException<CommandSyntaxException> noValueError, DelayedException<CommandSyntaxException> underscoreNotAllowedError) UnquotedStringParseRule(int minSize, DelayedException<CommandSyntaxException> error) -
Uses of CommandSyntaxException in net.minecraft.world.level.levelgen.structure.templatesystem.loader
Methods in net.minecraft.world.level.levelgen.structure.templatesystem.loader that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate static CompoundTagTemplateSource.readTextStructure(InputStream input) -
Uses of CommandSyntaxException in net.minecraft.world.level.storage.loot.functions
Methods in net.minecraft.world.level.storage.loot.functions that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionabstract voidCopyCustomDataFunction.MergeStrategy.merge(Tag target, NbtPathArgument.NbtPath path, List<Tag> sources) -
Uses of CommandSyntaxException in net.neoforged.neoforge.common.command
Methods in net.neoforged.neoforge.common.command that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionIEntitySelectorType.build(EntitySelectorParser parser) Returns anEntitySelectorbased on the givenEntitySelectorParser.static EntitySelectorEntitySelectorManager.parseSelector(EntitySelectorParser parser) This method is called inEntitySelectorParser.parse()
If the REGISTRY does not contain a custom selector for the command being parsed, this method returnsnulland the vanilla logic inEntitySelectorParser#parseSelector()is used. -
Uses of CommandSyntaxException in net.neoforged.neoforge.server.command
Methods in net.neoforged.neoforge.server.command that throw CommandSyntaxExceptionModifier and TypeMethodDescriptionprivate static intDumpCommand.dumpRegistry(CommandContext<CommandSourceStack> ctx, boolean alphabeticalSort, boolean printNumericIds) private static intEntityCommand.EntityListCommand.execute(CommandSourceStack sender, String filter, ResourceKey<Level> dim) private static intDataComponentCommand.listComponents(CommandContext<CommandSourceStack> ctx) private static intTagsCommand.listTagElements(CommandContext<CommandSourceStack> ctx, int page) private static intTagsCommand.listTags(CommandContext<CommandSourceStack> ctx, int page) EnumArgument.parse(StringReader reader) ModIdArgument.parse(StringReader reader) private static intTagsCommand.queryElementTags(CommandContext<CommandSourceStack> ctx, int page) private static intTPSCommand.sendTime(CommandContext<CommandSourceStack> context, @Nullable ServerLevel dimension)