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 DataComponentPatch 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_330692_)
    • serializeComponents

      private String serializeComponents(HolderLookup.Provider p_331015_)
    • getItemName

      private String getItemName()