Interface ItemType

    • Method Detail

      • maxStackQuantity

        int maxStackQuantity()
        Gets the default maximum quantity for ItemStacks of this item.
        Returns:
        Max stack quantity
      • isAnyOf

        boolean isAnyOf​(Supplier<? extends ItemType>... types)
        Returns true if this type is any of the given item types
        Parameters:
        types - the item types to check
        Returns:
        true if this type is any of the given item types
      • isAnyOf

        boolean isAnyOf​(ItemType... types)
        Returns true if this type is any of the given item types
        Parameters:
        types - the item types to check
        Returns:
        true if this type is any of the given item types