Interface LootEntryTypeRegistry


public interface LootEntryTypeRegistry
Fabric's extensions to net.minecraft.loot.entry.LootEntries for registering custom loot entry types.
See Also:
register(net.minecraft.util.Identifier, net.minecraft.util.JsonSerializer<? extends net.minecraft.loot.entry.LootPoolEntry>)
  • Field Summary

    Fields
    Modifier and Type Field Description
    static LootEntryTypeRegistry INSTANCE  
  • Method Summary

    Modifier and Type Method Description
    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.
  • Field Details

  • 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 ID
      serializer - the loot entry serializer