Interface CategoryRegistry<T extends Keyed>

All Known Subinterfaces:
BlockCategoryRegistry, ItemCategoryRegistry
All Known Implementing Classes:
NullBlockCategoryRegistry, NullItemCategoryRegistry

public interface CategoryRegistry<T extends Keyed>
A registry of categories. Minecraft internally calls these 'Tags'.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Set<T>
    getAll(Category<T> category)
     
    Gets a set of values with a given category.
  • Method Details

    • getCategorisedByName

      Set<T> getCategorisedByName(String category)
      Gets a set of values with a given category.
      Parameters:
      category - The category
      Returns:
      A set of values
    • getAll

      default Set<T> getAll(Category<T> category)