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.world.level.storage.loot.LootPool.Builderadd(Collection<? extends net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer> entries) Adds entries to this builder.default net.minecraft.world.level.storage.loot.LootPool.Builderadd(net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry) Adds an entry to this builder.default net.minecraft.world.level.storage.loot.LootPool.Builderapply(Collection<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> functions) Applies loot functions to this builder.default net.minecraft.world.level.storage.loot.LootPool.Builderapply(net.minecraft.world.level.storage.loot.functions.LootItemFunction function) Applies a function to this builder.static net.minecraft.world.level.storage.loot.LootPool.BuildercopyOf(net.minecraft.world.level.storage.loot.LootPool pool) Creates a builder copy of a loot pool.default net.minecraft.world.level.storage.loot.LootPool.Builderwhen(Collection<? extends net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions) Adds conditions to this builder.default net.minecraft.world.level.storage.loot.LootPool.Builderwhen(net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition) Adds a condition to this builder.
-
Method Details
-
add
default net.minecraft.world.level.storage.loot.LootPool.Builder add(net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry) Adds an entry to this builder.- Parameters:
entry- the added loot entry- Returns:
- this builder
-
add
default net.minecraft.world.level.storage.loot.LootPool.Builder add(Collection<? extends net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer> entries) Adds entries to this builder.- Parameters:
entries- the added loot entries- Returns:
- this builder
-
when
default net.minecraft.world.level.storage.loot.LootPool.Builder when(net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition) Adds a condition to this builder.- Parameters:
condition- the added condition- Returns:
- this builder
-
when
default net.minecraft.world.level.storage.loot.LootPool.Builder when(Collection<? extends net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions) Adds conditions to this builder.- Parameters:
conditions- the added conditions- Returns:
- this builder
-
apply
default net.minecraft.world.level.storage.loot.LootPool.Builder apply(net.minecraft.world.level.storage.loot.functions.LootItemFunction function) Applies a function to this builder.- Parameters:
function- the applied loot function- Returns:
- this builder
-
apply
default net.minecraft.world.level.storage.loot.LootPool.Builder apply(Collection<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> functions) Applies loot functions to this builder.- Parameters:
functions- the applied loot functions- Returns:
- this builder
-
copyOf
static net.minecraft.world.level.storage.loot.LootPool.Builder copyOf(net.minecraft.world.level.storage.loot.LootPool pool) Creates a builder copy of a loot pool.- Parameters:
pool- the loot pool- Returns:
- the copied builder
-