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 LootPool.Builder
apply
(Collection<? extends LootFunction> functions) Deprecated.Please useFabricLootPoolBuilder.apply(LootFunction)
instead.default LootPool.Builder
apply
(LootFunction function) Deprecated.Please useFabricLootPoolBuilder.apply(LootFunction)
instead.default LootPool.Builder
conditionally
(Collection<? extends LootCondition> conditions) Deprecated.Please useFabricLootPoolBuilder.conditionally(LootCondition)
instead.default LootPool.Builder
conditionally
(LootCondition condition) Deprecated.Please useFabricLootPoolBuilder.conditionally(LootCondition)
instead.static LootPool.Builder
Deprecated.Please useFabricLootPoolBuilder.copyOf(LootPool)
instead.default LootPool.Builder
with
(Collection<? extends LootPoolEntry> entries) Deprecated.Please useFabricLootPoolBuilder.with(LootPoolEntry)
instead.default LootPool.Builder
with
(LootPoolEntry entry) Deprecated.Please useFabricLootPoolBuilder.with(LootPoolEntry)
instead.
-
Method Details
-
with
Deprecated.Please useFabricLootPoolBuilder.with(LootPoolEntry)
instead.Adds an entry to this builder.- Parameters:
entry
- the added loot entry- Returns:
- this builder
-
with
Deprecated.Please useFabricLootPoolBuilder.with(LootPoolEntry)
instead.Adds entries to this builder.- Parameters:
entries
- the added loot entries- Returns:
- this builder
-
conditionally
Deprecated.Please useFabricLootPoolBuilder.conditionally(LootCondition)
instead.Adds a condition to this builder.- Parameters:
condition
- the added condition- Returns:
- this builder
-
conditionally
Deprecated.Please useFabricLootPoolBuilder.conditionally(LootCondition)
instead.Adds conditions to this builder.- Parameters:
conditions
- the added conditions- Returns:
- this builder
-
apply
Deprecated.Please useFabricLootPoolBuilder.apply(LootFunction)
instead.Applies a function to this builder.- Parameters:
function
- the applied loot function- Returns:
- this builder
-
apply
Deprecated.Please useFabricLootPoolBuilder.apply(LootFunction)
instead.Applies loot functions to this builder.- Parameters:
functions
- the applied loot functions- Returns:
- this builder
-
copyOf
Deprecated.Please useFabricLootPoolBuilder.copyOf(LootPool)
instead.Creates a builder copy of a loot pool.- Parameters:
pool
- the loot pool- Returns:
- the copied builder
-
FabricLootPoolBuilder
instead.