Class DataCommands

java.lang.Object
net.minecraft.server.commands.data.DataCommands

public class DataCommands extends Object
  • Field Details

    • ERROR_MERGE_UNCHANGED

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_MERGE_UNCHANGED
    • ERROR_GET_NOT_NUMBER

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_GET_NOT_NUMBER
    • ERROR_GET_NON_EXISTENT

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_GET_NON_EXISTENT
    • ERROR_MULTIPLE_TAGS

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_MULTIPLE_TAGS
    • ERROR_EXPECTED_LIST

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_EXPECTED_LIST
    • ERROR_EXPECTED_OBJECT

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_EXPECTED_OBJECT
    • ERROR_INVALID_INDEX

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_INDEX
    • ALL_PROVIDERS

      public static final List<Function<String,​DataCommands.DataProvider>> ALL_PROVIDERS
    • TARGET_PROVIDERS

      public static final List<DataCommands.DataProvider> TARGET_PROVIDERS
    • SOURCE_PROVIDERS

      public static final List<DataCommands.DataProvider> SOURCE_PROVIDERS
  • Constructor Details

    • DataCommands

      public DataCommands()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139366_)
    • insertAtIndex

      private static int insertAtIndex(int p_139361_, CompoundTag p_139362_, NbtPathArgument.NbtPath p_139363_, List<Tag> p_139364_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • decorateModification

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,​?> decorateModification(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,​?>,​DataCommands.DataManipulatorDecorator> p_139404_)
    • manipulateData

      private static int manipulateData(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_139376_, DataCommands.DataProvider p_139377_, DataCommands.DataManipulator p_139378_, List<Tag> p_139379_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • removeData

      private static int removeData(CommandSourceStack p_139386_, DataAccessor p_139387_, NbtPathArgument.NbtPath p_139388_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getSingleTag

      private static Tag getSingleTag(NbtPathArgument.NbtPath p_139399_, DataAccessor p_139400_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getData

      private static int getData(CommandSourceStack p_139444_, DataAccessor p_139445_, NbtPathArgument.NbtPath p_139446_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getNumeric

      private static int getNumeric(CommandSourceStack p_139390_, DataAccessor p_139391_, NbtPathArgument.NbtPath p_139392_, double p_139393_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getData

      private static int getData(CommandSourceStack p_139383_, DataAccessor p_139384_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • mergeData

      private static int mergeData(CommandSourceStack p_139395_, DataAccessor p_139396_, CompoundTag p_139397_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException