Interface ItemType

    • Method Detail

      • block

        java.util.Optional<BlockType> block()
        Gets the corresponding BlockType of this item if one exists.
        Returns:
        The Block
      • maxStackQuantity

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

        boolean isAnyOf​(java.util.function.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