Interface ItemArgument

All Superinterfaces:
ArgumentInf

@NullMarked public interface ItemArgument extends ArgumentInf
  • Method Details

    • getItem

      default ItemStack getItem(com.mojang.brigadier.context.CommandContext<? extends CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • createItemStack

      ItemStack createItemStack(com.mojang.brigadier.context.CommandContext<? extends CommandSourceStack> context, String name, int amount, boolean checkOverstack) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException