Interface FabricLootTableBuilder


@NonExtendable public interface FabricLootTableBuilder
Convenience extensions to LootTable.Builder for adding pre-built objects or collections.

This interface is automatically injected to LootTable.Builder.

  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.loot.LootTable.Builder
    apply(Collection<? extends net.minecraft.loot.function.LootFunction> functions)
    Applies loot functions to this builder.
    default net.minecraft.loot.LootTable.Builder
    apply(net.minecraft.loot.function.LootFunction function)
    Applies a loot function to this builder.
    static net.minecraft.loot.LootTable.Builder
    copyOf(net.minecraft.loot.LootTable table)
    Creates a builder copy of a loot table.
    default net.minecraft.loot.LootTable.Builder
    pool(net.minecraft.loot.LootPool pool)
    Adds a loot pool to this builder.
    default net.minecraft.loot.LootTable.Builder
    pools(Collection<? extends net.minecraft.loot.LootPool> pools)
    Adds loot pools to this builder.
  • Method Details

    • pool

      default net.minecraft.loot.LootTable.Builder pool(net.minecraft.loot.LootPool pool)
      Adds a loot pool to this builder.
      Parameters:
      pool - the added pool
      Returns:
      this builder
    • apply

      default net.minecraft.loot.LootTable.Builder apply(net.minecraft.loot.function.LootFunction function)
      Applies a loot function to this builder.
      Parameters:
      function - the applied function
      Returns:
      this builder
    • pools

      default net.minecraft.loot.LootTable.Builder pools(Collection<? extends net.minecraft.loot.LootPool> pools)
      Adds loot pools to this builder.
      Parameters:
      pools - the added pools
      Returns:
      this builder
    • apply

      default net.minecraft.loot.LootTable.Builder apply(Collection<? extends net.minecraft.loot.function.LootFunction> functions)
      Applies loot functions to this builder.
      Parameters:
      functions - the applied functions
      Returns:
      this builder
    • copyOf

      static net.minecraft.loot.LootTable.Builder copyOf(net.minecraft.loot.LootTable table)
      Creates a builder copy of a loot table.
      Parameters:
      table - the loot table
      Returns:
      the copied builder