public class FabricLootPoolBuilder
extends net.minecraft.loot.LootPool.Builder
Modifier and Type | Method and Description |
---|---|
FabricLootPoolBuilder |
apply(net.minecraft.loot.function.LootFunction.Builder function) |
static FabricLootPoolBuilder |
builder() |
FabricLootPoolBuilder |
conditionally(net.minecraft.loot.condition.LootCondition.Builder condition) |
FabricLootPoolBuilder |
copyFrom(net.minecraft.loot.LootPool pool)
Copies the entries, conditions and functions of the
pool to this
builder. |
FabricLootPoolBuilder |
copyFrom(net.minecraft.loot.LootPool pool,
boolean copyRolls)
Copies the entries, conditions and functions of the
pool to this
builder. |
static FabricLootPoolBuilder |
of(net.minecraft.loot.LootPool pool) |
FabricLootPoolBuilder |
rolls(net.minecraft.loot.LootTableRange range) |
FabricLootPoolBuilder |
with(net.minecraft.loot.entry.LootPoolEntry.Builder<?> entry) |
FabricLootPoolBuilder |
withCondition(net.minecraft.loot.condition.LootCondition condition) |
FabricLootPoolBuilder |
withEntry(net.minecraft.loot.entry.LootPoolEntry entry) |
FabricLootPoolBuilder |
withFunction(net.minecraft.loot.function.LootFunction function) |
public FabricLootPoolBuilder rolls(net.minecraft.loot.LootTableRange range)
rolls
in class net.minecraft.loot.LootPool.Builder
public FabricLootPoolBuilder with(net.minecraft.loot.entry.LootPoolEntry.Builder<?> entry)
with
in class net.minecraft.loot.LootPool.Builder
public FabricLootPoolBuilder conditionally(net.minecraft.loot.condition.LootCondition.Builder condition)
conditionally
in interface net.minecraft.loot.condition.LootConditionConsumingBuilder<net.minecraft.loot.LootPool.Builder>
conditionally
in class net.minecraft.loot.LootPool.Builder
public FabricLootPoolBuilder apply(net.minecraft.loot.function.LootFunction.Builder function)
apply
in interface net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootPool.Builder>
apply
in class net.minecraft.loot.LootPool.Builder
public FabricLootPoolBuilder withEntry(net.minecraft.loot.entry.LootPoolEntry entry)
public FabricLootPoolBuilder withCondition(net.minecraft.loot.condition.LootCondition condition)
public FabricLootPoolBuilder withFunction(net.minecraft.loot.function.LootFunction function)
public FabricLootPoolBuilder copyFrom(net.minecraft.loot.LootPool pool)
pool
to this
builder.
This is equal to copyFrom(pool, false)
.
public FabricLootPoolBuilder copyFrom(net.minecraft.loot.LootPool pool, boolean copyRolls)
pool
to this
builder.
If copyRolls
is true, the rolls
of the pool are also copied.
public static FabricLootPoolBuilder builder()
public static FabricLootPoolBuilder of(net.minecraft.loot.LootPool pool)