Skip to content

API reference Obsidian.API.Loot

LootTypeAttribute class

Marks the class that implements a vanilla loot type (an entry, function, condition or number provider), e.g. [LootType("minecraft:set_count")]. The loot table source generator instantiates the class whose resource location matches the JSON discriminator and that is assignable to the property being filled.

public sealed class LootTypeAttribute : Attribute

In Obsidian.API.

Constructors

LootTypeAttribute(string)

public LootTypeAttribute(string resourceLocation);

Marks the class that implements a vanilla loot type (an entry, function, condition or number provider), e.g. [LootType("minecraft:set_count")]. The loot table source generator instantiates the class whose resource location matches the JSON discriminator and that is assignable to the property being filled.

Properties

public string ResourceLocation { get; }

On this page