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 FabricLootPoolBuilderbuilder()conditionally(net.minecraft.loot.condition.LootCondition.Builder condition) copyFrom(net.minecraft.loot.LootPool pool) Copies the entries, conditions and functions of thepoolto this builder.copyFrom(net.minecraft.loot.LootPool pool, boolean copyRolls) Copies the entries, conditions and functions of thepoolto this builder.static FabricLootPoolBuilderof(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:
rollsin classnet.minecraft.loot.LootPool.Builder
-
with
- Overrides:
within classnet.minecraft.loot.LootPool.Builder
-
conditionally
public FabricLootPoolBuilder conditionally(net.minecraft.loot.condition.LootCondition.Builder condition) - Specified by:
conditionallyin interfacenet.minecraft.loot.condition.LootConditionConsumingBuilder<net.minecraft.loot.LootPool.Builder>- Overrides:
conditionallyin classnet.minecraft.loot.LootPool.Builder
-
apply
- Specified by:
applyin interfacenet.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootPool.Builder>- Overrides:
applyin classnet.minecraft.loot.LootPool.Builder
-
withEntry
-
withCondition
-
withFunction
-
copyFrom
Copies the entries, conditions and functions of thepoolto this builder.This is equal to
copyFrom(pool, false). -
copyFrom
Copies the entries, conditions and functions of thepoolto this builder.If
copyRollsis true, therollsof the pool are also copied. -
builder
-
of
-