Interface ItemRegistry

All Known Implementing Classes:
BundledItemRegistry

public interface ItemRegistry
  • Method Details

    • getRichName

      com.sk89q.worldedit.util.formatting.text.Component getRichName(ItemType itemType)
      Gets the name for the given item.
      Parameters:
      itemType - the item
      Returns:
      The name
    • getRichName

      default com.sk89q.worldedit.util.formatting.text.Component getRichName(BaseItemStack itemStack)
      Gets the name for the given item stack.
      Parameters:
      itemStack - the item stack
      Returns:
      The name
    • getName

      @Deprecated @Nullable default String getName(ItemType itemType)
      Deprecated.
      Names are now translatable, use getRichName(ItemType).
      Gets the name for the given item.
      Parameters:
      itemType - the item
      Returns:
      The name, or null if it's unknown
    • getMaterial

      @Nullable ItemMaterial getMaterial(ItemType itemType)
      Get the material for the given item.
      Parameters:
      itemType - the item
      Returns:
      the material, or null if the material information is not known