API reference Obsidian.API.Registries
TagsRegistry class
public static class TagsRegistry
In Obsidian.API.
Properties
public static Tag[] All { get; }Revision
public static int Revision { get; }How many times plugins' tags were applied. It changes once the tags (vanilla's included, whose entries plugins change) are rebuilt, so whatever caches tag contents can tell they're stale.
Methods
Contains(string, string, int)
public static bool Contains(string registry, string identifier, int id);Whether the entry with the given id in a tag's registry is in the tag; false if there's no such tag.
TryGet(string, string, Tag)
public static bool TryGet(string registry, string identifier, out Tag tag);Finds a tag, vanilla's or a plugin's, by its registry (like block) and identifier (like minecraft:mineable/pickaxe).
Fields
public static Dictionary<string, Tag[]> Categories;