Package net.fabricmc.fabric.api.loot.v1
Interface LootEntryTypeRegistry
public interface LootEntryTypeRegistry
Fabric's extensions to
net.minecraft.loot.entry.LootEntries
for registering
custom loot entry types.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
register(net.minecraft.util.Identifier id, net.minecraft.util.JsonSerializer<? extends net.minecraft.loot.entry.LootPoolEntry> serializer)
Registers a loot entry type serializer by its ID.
-
Field Details
-
INSTANCE
-
-
Method Details
-
register
void register(net.minecraft.util.Identifier id, net.minecraft.util.JsonSerializer<? extends net.minecraft.loot.entry.LootPoolEntry> serializer)Registers a loot entry type serializer by its ID.- Parameters:
id
- the loot entry's IDserializer
- the loot entry serializer
-