类 ExecuteCommand
java.lang.Object
net.minecraft.server.commands.ExecuteCommand
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static interface
(专用程序包) static interface
-
字段概要
字段修饰符和类型字段说明private static final BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSourceStack>>
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final int
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,
?> addConditional
(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pContext, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> pBuilder, boolean pValue, ExecuteCommand.CommandPredicate pTest) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,
?> addConditionals
(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pParent, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> pLiteral, boolean pIsIf, CommandBuildContext pContext) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,
?> addIfBlocksConditional
(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pParent, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> pLiteral, boolean pIsIf, boolean pIsMasked) private static boolean
checkCustomPredicate
(CommandSourceStack pSource, LootItemCondition pPredicate) private static int
checkIfRegions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pIsMasked) private static int
checkMatchingData
(DataAccessor pAccessor, NbtPathArgument.NbtPath pPath) private static OptionalInt
checkRegions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pIsMasked) private static OptionalInt
checkRegions
(ServerLevel pLevel, BlockPos pBegin, BlockPos pEnd, BlockPos pDestination, boolean pIsMasked) private static boolean
checkScore
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, BiPredicate<Integer, Integer> pComparison) private static boolean
checkScore
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, MinMaxBounds.Ints pBounds) private static int
checkUnlessRegions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pIsMasked) private static com.mojang.brigadier.Command<CommandSourceStack>
createNumericConditionalHandler
(boolean p_137167_, ExecuteCommand.CommandNumericPredicate pPredicate) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
createRelationOperations
(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pNode, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> pArgumentBuilder) private static com.mojang.brigadier.RedirectModifier<CommandSourceStack>
expandOneToManyEntityRelation
(Function<Entity, Stream<Entity>> pRelation) private static com.mojang.brigadier.RedirectModifier<CommandSourceStack>
expandOneToOneEntityRelation
(Function<Entity, Optional<Entity>> pRelation) private static Collection<CommandSourceStack>
expect
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pActual, boolean pExpected) private static boolean
isChunkLoaded
(ServerLevel pLevel, BlockPos pPos) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher, CommandBuildContext pContext) private static CommandSourceStack
spawnEntityAndRedirect
(CommandSourceStack p_270320_, Holder.Reference<EntityType<?>> p_270344_) private static CommandSourceStack
storeData
(CommandSourceStack pSource, DataAccessor pAccessor, NbtPathArgument.NbtPath pPath, IntFunction<Tag> pTagConverter, boolean pStoringResult) private static CommandSourceStack
storeValue
(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective, boolean pStoringResult) private static CommandSourceStack
storeValue
(CommandSourceStack pSource, CustomBossEvent pBar, boolean pStoringValue, boolean pStoringResult) private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,
?> wrapStores
(com.mojang.brigadier.tree.LiteralCommandNode<CommandSourceStack> pParent, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> pLiteral, boolean pStoringResult)
-
字段详细资料
-
MAX_TEST_AREA
private static final int MAX_TEST_AREA- 另请参阅:
-
ERROR_AREA_TOO_LARGE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_AREA_TOO_LARGE -
ERROR_CONDITIONAL_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_CONDITIONAL_FAILED -
ERROR_CONDITIONAL_FAILED_COUNT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_CONDITIONAL_FAILED_COUNT -
CALLBACK_CHAINER
private static final BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSourceStack>> CALLBACK_CHAINER -
SUGGEST_PREDICATE
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> SUGGEST_PREDICATE
-
-
构造器详细资料
-
ExecuteCommand
public ExecuteCommand()
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher, CommandBuildContext pContext) -
wrapStores
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSourceStack> pParent, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> pLiteral, boolean pStoringResult) -
storeValue
private static CommandSourceStack storeValue(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective, boolean pStoringResult) -
storeValue
private static CommandSourceStack storeValue(CommandSourceStack pSource, CustomBossEvent pBar, boolean pStoringValue, boolean pStoringResult) -
storeData
private static CommandSourceStack storeData(CommandSourceStack pSource, DataAccessor pAccessor, NbtPathArgument.NbtPath pPath, IntFunction<Tag> pTagConverter, boolean pStoringResult) -
isChunkLoaded
-
addConditionals
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pParent, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> pLiteral, boolean pIsIf, CommandBuildContext pContext) -
createNumericConditionalHandler
private static com.mojang.brigadier.Command<CommandSourceStack> createNumericConditionalHandler(boolean p_137167_, ExecuteCommand.CommandNumericPredicate pPredicate) -
checkMatchingData
private static int checkMatchingData(DataAccessor pAccessor, NbtPathArgument.NbtPath pPath) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkScore
private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, BiPredicate<Integer, Integer> pComparison) throws com.mojang.brigadier.exceptions.CommandSyntaxException- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkScore
private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, MinMaxBounds.Ints pBounds) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkCustomPredicate
private static boolean checkCustomPredicate(CommandSourceStack pSource, LootItemCondition pPredicate) -
expect
private static Collection<CommandSourceStack> expect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pActual, boolean pExpected) -
addConditional
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pContext, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> pBuilder, boolean pValue, ExecuteCommand.CommandPredicate pTest) -
addIfBlocksConditional
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pParent, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> pLiteral, boolean pIsIf, boolean pIsMasked) -
checkIfRegions
private static int checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pIsMasked) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkUnlessRegions
private static int checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pIsMasked) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkRegions
private static OptionalInt checkRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pIsMasked) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkRegions
private static OptionalInt checkRegions(ServerLevel pLevel, BlockPos pBegin, BlockPos pEnd, BlockPos pDestination, boolean pIsMasked) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
expandOneToOneEntityRelation
private static com.mojang.brigadier.RedirectModifier<CommandSourceStack> expandOneToOneEntityRelation(Function<Entity, Optional<Entity>> pRelation) -
expandOneToManyEntityRelation
private static com.mojang.brigadier.RedirectModifier<CommandSourceStack> expandOneToManyEntityRelation(Function<Entity, Stream<Entity>> pRelation) -
createRelationOperations
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> createRelationOperations(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pNode, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> pArgumentBuilder) -
spawnEntityAndRedirect
private static CommandSourceStack spawnEntityAndRedirect(CommandSourceStack p_270320_, Holder.Reference<EntityType<?>> p_270344_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-