public class FabricLootPoolBuilder
extends net.minecraft.loot.LootPool.Builder
Modifier and Type | Method and Description |
---|---|
static FabricLootPoolBuilder |
builder() |
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 |
withCondition(net.minecraft.loot.condition.LootCondition.Builder condition) |
FabricLootPoolBuilder |
withCondition(net.minecraft.loot.condition.LootCondition condition) |
FabricLootPoolBuilder |
withEntry(net.minecraft.loot.entry.LootEntry.Builder<?> entry) |
FabricLootPoolBuilder |
withEntry(net.minecraft.loot.entry.LootEntry entry) |
FabricLootPoolBuilder |
withFunction(net.minecraft.loot.function.LootFunction.Builder function) |
FabricLootPoolBuilder |
withFunction(net.minecraft.loot.function.LootFunction function) |
FabricLootPoolBuilder |
withRolls(net.minecraft.loot.LootTableRange range) |
public FabricLootPoolBuilder withRolls(net.minecraft.loot.LootTableRange range)
withRolls
in class net.minecraft.loot.LootPool.Builder
public FabricLootPoolBuilder withEntry(net.minecraft.loot.entry.LootEntry.Builder<?> entry)
withEntry
in class net.minecraft.loot.LootPool.Builder
public FabricLootPoolBuilder withCondition(net.minecraft.loot.condition.LootCondition.Builder condition)
withCondition
in interface net.minecraft.loot.condition.LootConditionConsumingBuilder<net.minecraft.loot.LootPool.Builder>
withCondition
in class net.minecraft.loot.LootPool.Builder
public FabricLootPoolBuilder withFunction(net.minecraft.loot.function.LootFunction.Builder function)
withFunction
in interface net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootPool.Builder>
withFunction
in class net.minecraft.loot.LootPool.Builder
public FabricLootPoolBuilder withEntry(net.minecraft.loot.entry.LootEntry 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)