public class ExecuteCommand
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
ExecuteCommand.IBooleanTest |
(package private) static interface |
ExecuteCommand.INumericTest |
Modifier and Type | Field and Description |
---|---|
private static java.util.function.BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> |
COMBINE_ON_RESULT_COMPLETE |
private static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> |
field_229760_e_ |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
TEST_FAILED |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
TEST_FAILED_COUNT |
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
TOO_MANY_BLOCKS |
Constructor and Description |
---|
ExecuteCommand() |
Modifier and Type | Method and Description |
---|---|
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> |
buildIfBlocks(com.mojang.brigadier.tree.CommandNode<CommandSource> parent,
com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> literal,
boolean isIf,
boolean isMasked) |
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> |
buildIfResult(com.mojang.brigadier.tree.CommandNode<CommandSource> context,
com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> builder,
boolean value,
ExecuteCommand.IBooleanTest test) |
private static int |
checkBlockCountIf(com.mojang.brigadier.context.CommandContext<CommandSource> context,
boolean isMasked) |
private static int |
checkBlockCountUnless(com.mojang.brigadier.context.CommandContext<CommandSource> context,
boolean isMasked) |
private static java.util.Collection<CommandSource> |
checkIfMatches(com.mojang.brigadier.context.CommandContext<CommandSource> context,
boolean actual,
boolean expected) |
private static boolean |
checkScore(com.mojang.brigadier.context.CommandContext<CommandSource> context,
MinMaxBounds.IntBound bounds) |
private static boolean |
compareScores(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> comparison) |
private static java.util.OptionalInt |
countMatchingBlocks(com.mojang.brigadier.context.CommandContext<CommandSource> context,
boolean isMasked) |
private static java.util.OptionalInt |
countMatchingBlocks(ServerWorld worldIn,
BlockPos begin,
BlockPos end,
BlockPos destination,
boolean isMasked) |
private static int |
func_218831_a(IDataAccessor p_218831_0_,
NBTPathArgument.NBTPath p_218831_1_) |
private static com.mojang.brigadier.Command<CommandSource> |
func_218834_a(boolean p_218834_0_,
ExecuteCommand.INumericTest p_218834_1_) |
private static boolean |
func_229767_a_(CommandSource p_229767_0_,
ILootCondition p_229767_1_) |
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> |
makeIfCommand(com.mojang.brigadier.tree.CommandNode<CommandSource> parent,
com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> literal,
boolean isIf) |
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> |
makeStoreSubcommand(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> parent,
com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> literal,
boolean storingResult) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static CommandSource |
storeIntoBossbar(CommandSource source,
CustomServerBossInfo bar,
boolean storingValue,
boolean storingResult) |
private static CommandSource |
storeIntoNBT(CommandSource source,
IDataAccessor accessor,
NBTPathArgument.NBTPath pathIn,
java.util.function.IntFunction<INBT> tagConverter,
boolean storingResult) |
private static CommandSource |
storeIntoScore(CommandSource source,
java.util.Collection<java.lang.String> targets,
ScoreObjective objective,
boolean storingResult) |
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType TOO_MANY_BLOCKS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TEST_FAILED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType TEST_FAILED_COUNT
private static final java.util.function.BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> COMBINE_ON_RESULT_COMPLETE
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> field_229760_e_
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> makeStoreSubcommand(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> parent, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> literal, boolean storingResult)
private static CommandSource storeIntoScore(CommandSource source, java.util.Collection<java.lang.String> targets, ScoreObjective objective, boolean storingResult)
private static CommandSource storeIntoBossbar(CommandSource source, CustomServerBossInfo bar, boolean storingValue, boolean storingResult)
private static CommandSource storeIntoNBT(CommandSource source, IDataAccessor accessor, NBTPathArgument.NBTPath pathIn, java.util.function.IntFunction<INBT> tagConverter, boolean storingResult)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> makeIfCommand(com.mojang.brigadier.tree.CommandNode<CommandSource> parent, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> literal, boolean isIf)
private static com.mojang.brigadier.Command<CommandSource> func_218834_a(boolean p_218834_0_, ExecuteCommand.INumericTest p_218834_1_)
private static int func_218831_a(IDataAccessor p_218831_0_, NBTPathArgument.NBTPath p_218831_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static boolean compareScores(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> comparison) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSource> context, MinMaxBounds.IntBound bounds) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static boolean func_229767_a_(CommandSource p_229767_0_, ILootCondition p_229767_1_)
private static java.util.Collection<CommandSource> checkIfMatches(com.mojang.brigadier.context.CommandContext<CommandSource> context, boolean actual, boolean expected)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> buildIfResult(com.mojang.brigadier.tree.CommandNode<CommandSource> context, com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> builder, boolean value, ExecuteCommand.IBooleanTest test)
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> buildIfBlocks(com.mojang.brigadier.tree.CommandNode<CommandSource> parent, com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> literal, boolean isIf, boolean isMasked)
private static int checkBlockCountIf(com.mojang.brigadier.context.CommandContext<CommandSource> context, boolean isMasked) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int checkBlockCountUnless(com.mojang.brigadier.context.CommandContext<CommandSource> context, boolean isMasked) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static java.util.OptionalInt countMatchingBlocks(com.mojang.brigadier.context.CommandContext<CommandSource> context, boolean isMasked) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static java.util.OptionalInt countMatchingBlocks(ServerWorld worldIn, BlockPos begin, BlockPos end, BlockPos destination, boolean isMasked) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException