Class Category<T extends Keyed>

java.lang.Object
com.sk89q.worldedit.registry.Category<T>
All Implemented Interfaces:
RegistryItem
Direct Known Subclasses:
BlockCategory, FluidCategory, ItemCategory

public abstract class Category<T extends Keyed> extends Object implements RegistryItem
  • Field Details

    • id

      protected final String id
  • Constructor Details

    • Category

      protected Category(String id)
  • Method Details

    • getId

      public final String getId()
    • getAll

      public final Set<T> getAll()
    • setInternalId

      public void setInternalId(int internalId)
      Specified by:
      setInternalId in interface RegistryItem
    • getInternalId

      public int getInternalId()
      Specified by:
      getInternalId in interface RegistryItem
    • load

      protected abstract Set<T> load()
    • contains

      public boolean contains(T object)
      Checks if this category contains object.
      Parameters:
      object - the object
      Returns:
      true if this category contains the object
    • invalidateCache

      public void invalidateCache()
    • toString

      public String toString()
      Overrides:
      toString in class Object