Package net.fabricmc.fabric.api.loot.v2
Interface FabricLootPoolBuilder
Deprecated.
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.Builderapply(Collection<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> functions) Deprecated.Please useFabricLootPoolBuilder.apply(LootItemFunction)instead.default net.minecraft.world.level.storage.loot.LootPool.Builderapply(net.minecraft.world.level.storage.loot.functions.LootItemFunction function) Deprecated.Please useFabricLootPoolBuilder.apply(LootItemFunction)instead.default net.minecraft.world.level.storage.loot.LootPool.Builderconditionally(Collection<? extends net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions) Deprecated.Please useFabricLootPoolBuilder.conditionally(LootItemCondition)instead.default net.minecraft.world.level.storage.loot.LootPool.Builderconditionally(net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition) Deprecated.Please useFabricLootPoolBuilder.conditionally(LootItemCondition)instead.static net.minecraft.world.level.storage.loot.LootPool.BuildercopyOf(net.minecraft.world.level.storage.loot.LootPool pool) Deprecated.Please useFabricLootPoolBuilder.copyOf(LootPool)instead.default net.minecraft.world.level.storage.loot.LootPool.Builderwith(Collection<? extends net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer> entries) Deprecated.Please useFabricLootPoolBuilder.with(LootPoolEntryContainer)instead.default net.minecraft.world.level.storage.loot.LootPool.Builderwith(net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry) Deprecated.Please useFabricLootPoolBuilder.with(LootPoolEntryContainer)instead.
-
Method Details
-
with
@Deprecated default net.minecraft.world.level.storage.loot.LootPool.Builder with(net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry) Deprecated.Please useFabricLootPoolBuilder.with(LootPoolEntryContainer)instead.Adds an entry to this builder.- Parameters:
entry- the added loot entry- Returns:
- this builder
-
with
@Deprecated default net.minecraft.world.level.storage.loot.LootPool.Builder with(Collection<? extends net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer> entries) Deprecated.Please useFabricLootPoolBuilder.with(LootPoolEntryContainer)instead.Adds entries to this builder.- Parameters:
entries- the added loot entries- Returns:
- this builder
-
conditionally
@Deprecated default net.minecraft.world.level.storage.loot.LootPool.Builder conditionally(net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition) Deprecated.Please useFabricLootPoolBuilder.conditionally(LootItemCondition)instead.Adds a condition to this builder.- Parameters:
condition- the added condition- Returns:
- this builder
-
conditionally
@Deprecated default net.minecraft.world.level.storage.loot.LootPool.Builder conditionally(Collection<? extends net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditions) Deprecated.Please useFabricLootPoolBuilder.conditionally(LootItemCondition)instead.Adds conditions to this builder.- Parameters:
conditions- the added conditions- Returns:
- this builder
-
apply
@Deprecated default net.minecraft.world.level.storage.loot.LootPool.Builder apply(net.minecraft.world.level.storage.loot.functions.LootItemFunction function) Deprecated.Please useFabricLootPoolBuilder.apply(LootItemFunction)instead.Applies a function to this builder.- Parameters:
function- the applied loot function- Returns:
- this builder
-
apply
@Deprecated default net.minecraft.world.level.storage.loot.LootPool.Builder apply(Collection<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> functions) Deprecated.Please useFabricLootPoolBuilder.apply(LootItemFunction)instead.Applies loot functions to this builder.- Parameters:
functions- the applied loot functions- Returns:
- this builder
-
copyOf
@Deprecated static net.minecraft.world.level.storage.loot.LootPool.Builder copyOf(net.minecraft.world.level.storage.loot.LootPool pool) Deprecated.Please useFabricLootPoolBuilder.copyOf(LootPool)instead.Creates a builder copy of a loot pool.- Parameters:
pool- the loot pool- Returns:
- the copied builder
-
FabricLootPoolBuilderinstead.