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>

@Deprecated public class FabricLootPoolBuilder extends net.minecraft.loot.LootPool.Builder
Deprecated.
Replaced with FabricLootPoolBuilder.
  • Method Details

    • rolls

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

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

      public FabricLootPoolBuilder conditionally(net.minecraft.loot.condition.LootCondition.Builder condition)
      Deprecated.
      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)
      Deprecated.
      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)
      Deprecated.
    • withCondition

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

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

      public FabricLootPoolBuilder copyFrom(net.minecraft.loot.LootPool pool)
      Deprecated.
      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)
      Deprecated.
      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()
      Deprecated.
    • of

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