Class ReplaceItemCommand

java.lang.Object
net.minecraft.command.impl.ReplaceItemCommand

public class ReplaceItemCommand extends Object
  • Field Details

    • 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 Details

    • ReplaceItemCommand

      public ReplaceItemCommand()
  • Method Details

    • 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_, 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