Class ReplaceItemCommand


  • public class ReplaceItemCommand
    extends java.lang.Object
    • Field Detail

      • ERROR_NOT_A_CONTAINER

        public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_A_CONTAINER
      • ERROR_INAPPLICABLE_SLOT

        public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INAPPLICABLE_SLOT
      • ERROR_ENTITY_SLOT

        public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_ENTITY_SLOT
    • Constructor Detail

      • ReplaceItemCommand

        public ReplaceItemCommand()
    • Method Detail

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198602_0_)
      • setBlockItem

        private static int setBlockItem​(CommandSource p_198603_0_,
                                        BlockPos p_198603_1_,
                                        int p_198603_2_,
                                        ItemStack p_198603_3_)
                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • setEntityItem

        private static int setEntityItem​(CommandSource p_198604_0_,
                                         java.util.Collection<? extends Entity> p_198604_1_,
                                         int p_198604_2_,
                                         ItemStack p_198604_3_)
                                  throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException