Class FabricLootPoolBuilder

java.lang.Object
net.minecraft.loot.LootPool.Builder
net.fabricmc.fabric.api.loot.v1.FabricLootPoolBuilder
All Implemented Interfaces:
net.minecraft.loot.condition.LootConditionConsumingBuilder<net.minecraft.loot.LootPool.Builder>, net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootPool.Builder>

public class FabricLootPoolBuilder extends net.minecraft.loot.LootPool.Builder
  • Method Details

    • rolls

      public FabricLootPoolBuilder rolls(net.minecraft.loot.provider.number.LootNumberProvider range)
      Overrides:
      rolls in class net.minecraft.loot.LootPool.Builder
    • with

      public FabricLootPoolBuilder with(net.minecraft.loot.entry.LootPoolEntry.Builder<?> entry)
      Overrides:
      with in class net.minecraft.loot.LootPool.Builder
    • conditionally

      public FabricLootPoolBuilder conditionally(net.minecraft.loot.condition.LootCondition.Builder condition)
      Specified by:
      conditionally in interface net.minecraft.loot.condition.LootConditionConsumingBuilder<net.minecraft.loot.LootPool.Builder>
      Overrides:
      conditionally in class net.minecraft.loot.LootPool.Builder
    • apply

      public FabricLootPoolBuilder apply(net.minecraft.loot.function.LootFunction.Builder function)
      Specified by:
      apply in interface net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootPool.Builder>
      Overrides:
      apply in class net.minecraft.loot.LootPool.Builder
    • withEntry

      public FabricLootPoolBuilder withEntry(net.minecraft.loot.entry.LootPoolEntry entry)
    • withCondition

      public FabricLootPoolBuilder withCondition(net.minecraft.loot.condition.LootCondition condition)
    • withFunction

      public FabricLootPoolBuilder withFunction(net.minecraft.loot.function.LootFunction function)
    • copyFrom

      public FabricLootPoolBuilder copyFrom(net.minecraft.loot.LootPool pool)
      Copies the entries, conditions and functions of the pool to this builder.

      This is equal to copyFrom(pool, false).

    • copyFrom

      public FabricLootPoolBuilder copyFrom(net.minecraft.loot.LootPool pool, boolean copyRolls)
      Copies the entries, conditions and functions of the pool to this builder.

      If copyRolls is true, the rolls of the pool are also copied.

    • builder

      public static FabricLootPoolBuilder builder()
    • of

      public static FabricLootPoolBuilder of(net.minecraft.loot.LootPool pool)