Interface LootManager


public interface LootManager
  • Method Details

    • getLootTable

      @Nullable @Nullable LootTable getLootTable(NamespacedId id)
      Gets a loot table from a given name.
      Parameters:
      id - the NamespacedId of the loot table
      Returns:
      the loot table
    • registerLootType

      void registerLootType(String name, LootParser parser)
      Registers a new loot type with a given name and parser.
      Parameters:
      name - the name used in the loot file as the value of the type field
      parser - the parser