Class Category<T extends Keyed>

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

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

    • id

      protected final String id
  • Constructor Details

  • Method Details

    • getId

      public final String getId()
    • getAll

      public final Set<T> getAll()
    • load

      @Deprecated protected abstract Set<T> load()
      Deprecated.
      The load system will be removed in a future WorldEdit release. The registries should be populated by the platforms via the supplier constructor.
      Loads the contents of this category from the platform.
      Returns:
      The loaded contents of the category
    • 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