Class BundledItemRegistry

java.lang.Object
com.sk89q.worldedit.world.registry.BundledItemRegistry
All Implemented Interfaces:
ItemRegistry

public class BundledItemRegistry extends Object implements ItemRegistry
A item registry that uses BundledItemRegistry to serve information about items.
  • Constructor Details

    • BundledItemRegistry

      public BundledItemRegistry()
  • Method Details

    • getRichName

      public com.sk89q.worldedit.util.formatting.text.Component getRichName(ItemType itemType)
      Description copied from interface: ItemRegistry
      Gets the name for the given item.
      Specified by:
      getRichName in interface ItemRegistry
      Parameters:
      itemType - the item
      Returns:
      The name
    • getName

      @Nullable @Deprecated public String getName(ItemType itemType)
      Deprecated.
      Description copied from interface: ItemRegistry
      Gets the name for the given item.
      Specified by:
      getName in interface ItemRegistry
      Parameters:
      itemType - the item
      Returns:
      The name, or null if it's unknown
    • getMaterial

      @Nullable public ItemMaterial getMaterial(ItemType itemType)
      Description copied from interface: ItemRegistry
      Get the material for the given item.
      Specified by:
      getMaterial in interface ItemRegistry
      Parameters:
      itemType - the item
      Returns:
      the material, or null if the material information is not known