Package net.fabricmc.fabric.api.loot.v1
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 Summary
Modifier and TypeMethodDescriptionapply(net.minecraft.loot.function.LootFunction.Builder function)
static FabricLootPoolBuilder
builder()
conditionally(net.minecraft.loot.condition.LootCondition.Builder condition)
copyFrom(net.minecraft.loot.LootPool pool)
Copies the entries, conditions and functions of thepool
to this builder.copyFrom(net.minecraft.loot.LootPool pool, boolean copyRolls)
Copies the entries, conditions and functions of thepool
to this builder.static FabricLootPoolBuilder
of(net.minecraft.loot.LootPool pool)
rolls(net.minecraft.loot.provider.number.LootNumberProvider range)
with(net.minecraft.loot.entry.LootPoolEntry.Builder<?> entry)
withCondition(net.minecraft.loot.condition.LootCondition condition)
withEntry(net.minecraft.loot.entry.LootPoolEntry entry)
withFunction(net.minecraft.loot.function.LootFunction function)
Methods inherited from class net.minecraft.loot.LootPool.Builder
bonusRolls, build, getThis
-
Method Details
-
rolls
- Overrides:
rolls
in classnet.minecraft.loot.LootPool.Builder
-
with
- Overrides:
with
in classnet.minecraft.loot.LootPool.Builder
-
conditionally
public FabricLootPoolBuilder conditionally(net.minecraft.loot.condition.LootCondition.Builder condition)- Specified by:
conditionally
in interfacenet.minecraft.loot.condition.LootConditionConsumingBuilder<net.minecraft.loot.LootPool.Builder>
- Overrides:
conditionally
in classnet.minecraft.loot.LootPool.Builder
-
apply
- Specified by:
apply
in interfacenet.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootPool.Builder>
- Overrides:
apply
in classnet.minecraft.loot.LootPool.Builder
-
withEntry
-
withCondition
-
withFunction
-
copyFrom
Copies the entries, conditions and functions of thepool
to this builder.This is equal to
copyFrom(pool, false)
. -
copyFrom
Copies the entries, conditions and functions of thepool
to this builder.If
copyRolls
is true, therolls
of the pool are also copied. -
builder
-
of
-