Class ItemInput

  • All Implemented Interfaces:
    java.util.function.Predicate<ItemStack>

    public class ItemInput
    extends java.lang.Object
    implements java.util.function.Predicate<ItemStack>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ItemStack createItemStack​(int p_197320_1_, boolean p_197320_2_)  
      Item getItem()  
      java.lang.String serialize()  
      boolean test​(ItemStack p_test_1_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Field Detail

      • ERROR_STACK_TOO_BIG

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

        private final Item item
    • Constructor Detail

      • ItemInput

        public ItemInput​(Item p_i47961_1_,
                         @Nullable
                         CompoundNBT p_i47961_2_)
    • Method Detail

      • getItem

        public Item getItem()
      • test

        public boolean test​(ItemStack p_test_1_)
        Specified by:
        test in interface java.util.function.Predicate<ItemStack>
      • createItemStack

        public ItemStack createItemStack​(int p_197320_1_,
                                         boolean p_197320_2_)
                                  throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • serialize

        public java.lang.String serialize()