Class ItemCategory

java.lang.Object
com.sk89q.worldedit.registry.Category<ItemType>
com.sk89q.worldedit.world.item.ItemCategory
All Implemented Interfaces:
Keyed

public class ItemCategory extends Category<ItemType> implements Keyed
A category of items. This is due to the splitting up of items such as wool into separate ids.
  • Field Details

  • Constructor Details

    • ItemCategory

      public ItemCategory(String id)
  • Method Details

    • load

      protected Set<ItemType> load()
      Description copied from class: Category
      Loads the contents of this category from the platform.
      Specified by:
      load in class Category<ItemType>
      Returns:
      The loaded contents of the category
    • contains

      public boolean contains(BaseItem baseItem)
      Checks whether the BaseItem is contained within this category.
      Parameters:
      baseItem - The item
      Returns:
      If it's a part of this category