Package net.fabricmc.fabric.api.loot.v2
Interface FabricLootPoolBuilder
@NonExtendable
public interface FabricLootPoolBuilder
Convenience extensions to
LootPool.Builder
for adding pre-built objects or collections.
This interface is automatically injected to LootPool.Builder
.
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.loot.LootPool.Builder
apply
(Collection<? extends net.minecraft.loot.function.LootFunction> functions) Applies loot functions to this builder.default net.minecraft.loot.LootPool.Builder
apply
(net.minecraft.loot.function.LootFunction function) Applies a function to this builder.default net.minecraft.loot.LootPool.Builder
conditionally
(Collection<? extends net.minecraft.loot.condition.LootCondition> conditions) Adds conditions to this builder.default net.minecraft.loot.LootPool.Builder
conditionally
(net.minecraft.loot.condition.LootCondition condition) Adds a condition to this builder.static net.minecraft.loot.LootPool.Builder
copyOf
(net.minecraft.loot.LootPool pool) Creates a builder copy of a loot pool.default net.minecraft.loot.LootPool.Builder
with
(Collection<? extends net.minecraft.loot.entry.LootPoolEntry> entries) Adds entries to this builder.default net.minecraft.loot.LootPool.Builder
with
(net.minecraft.loot.entry.LootPoolEntry entry) Adds an entry to this builder.
-
Method Details
-
with
default net.minecraft.loot.LootPool.Builder with(net.minecraft.loot.entry.LootPoolEntry entry) Adds an entry to this builder.- Parameters:
entry
- the added loot entry- Returns:
- this builder
-
with
default net.minecraft.loot.LootPool.Builder with(Collection<? extends net.minecraft.loot.entry.LootPoolEntry> entries) Adds entries to this builder.- Parameters:
entries
- the added loot entries- Returns:
- this builder
-
conditionally
default net.minecraft.loot.LootPool.Builder conditionally(net.minecraft.loot.condition.LootCondition condition) Adds a condition to this builder.- Parameters:
condition
- the added condition- Returns:
- this builder
-
conditionally
default net.minecraft.loot.LootPool.Builder conditionally(Collection<? extends net.minecraft.loot.condition.LootCondition> conditions) Adds conditions to this builder.- Parameters:
conditions
- the added conditions- Returns:
- this builder
-
apply
default net.minecraft.loot.LootPool.Builder apply(net.minecraft.loot.function.LootFunction function) Applies a function to this builder.- Parameters:
function
- the applied loot function- Returns:
- this builder
-
apply
default net.minecraft.loot.LootPool.Builder apply(Collection<? extends net.minecraft.loot.function.LootFunction> functions) Applies loot functions to this builder.- Parameters:
functions
- the applied loot functions- Returns:
- this builder
-
copyOf
static net.minecraft.loot.LootPool.Builder copyOf(net.minecraft.loot.LootPool pool) Creates a builder copy of a loot pool.- Parameters:
pool
- the loot pool- Returns:
- the copied builder
-