Skip to content

API reference Obsidian.API.Registries

BannerPatternsRegistry class

Vanilla's banner patterns (the minecraft:banner_pattern registry), numbered by identifier like a data pack's registry, and the tags that say which the loom offers: no_item_required's without a pattern item, a pattern_item/... tag's with one.

public static class BannerPatternsRegistry

In Obsidian.API.

Properties

Identifiers

public static ImmutableArray<string> Identifiers { get; }

The patterns' identifiers, by id.

Methods

IdOf(string)

public static int IdOf(string identifier);

The pattern's id, or -1 for an unknown identifier.

IsPatternItem(int)

public static bool IsPatternItem(int item);

Whether the item provides banner patterns to a loom.

Selectable(int?)

public static ImmutableArray<int> Selectable(int? patternItem);

The patterns a loom offers with patternItem in its pattern slot (null for none), in order.

Fields

public const string CodecKey = "minecraft:banner_pattern";

On this page