Interface ItemType

All Known Implementing Classes:
BlockType, ItemTypes.IntItem

public sealed interface ItemType permits BlockType, ItemTypes.IntItem
  • Method Details

    • getId

      Identifier getId()
    • isBlock

      boolean isBlock()
    • isPlaceable

      boolean isPlaceable()
    • getBlock

      @Nullable BlockType getBlock()
    • getMetadataClass

      @Nullable Class<?> getMetadataClass()
    • getMaximumStackSize

      int getMaximumStackSize()
    • createItem

      default ItemStack createItem()
    • createItem

      ItemStack createItem(int amount, Object... metadata)
    • getAttackDamage

      default int getAttackDamage()
    • getArmorPoints

      default int getArmorPoints()
    • getToughness

      default int getToughness()
    • getDurability

      default int getDurability()
    • getFuelTime

      default short getFuelTime()
    • getBlockType

      default BlockType getBlockType()
    • isStackable

      default boolean isStackable()
    • getToolType

      @Nullable ToolType getToolType()
    • getTierType

      @Nullable TierType getTierType()