Class ItemInput

java.lang.Object
net.minecraft.commands.arguments.item.ItemInput

public class ItemInput extends Object
  • Field Details

    • ERROR_STACK_TOO_BIG

      private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_STACK_TOO_BIG
    • item

      private final Holder<Item> item
    • components

      private final DataComponentMap components
  • Constructor Details

  • Method Details

    • getItem

      public Item getItem()
    • createItemStack

      public ItemStack createItemStack(int p_120981_, boolean p_120982_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • serialize

      public String serialize(HolderLookup.Provider p_331128_)
    • serializeComponents

      private String serializeComponents(HolderLookup.Provider p_332272_)
    • getItemName

      private String getItemName()