Package net.fabricmc.fabric.api.loot.v1
Class FabricLootSupplierBuilder
java.lang.Object
net.minecraft.loot.LootTable.Builder
net.fabricmc.fabric.api.loot.v1.FabricLootSupplierBuilder
- All Implemented Interfaces:
net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootTable.Builder>
public class FabricLootSupplierBuilder
extends net.minecraft.loot.LootTable.Builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply(net.minecraft.loot.function.LootFunction.Builder function)
static FabricLootSupplierBuilder
builder()
copyFrom(net.minecraft.loot.LootTable supplier)
Copies the pools and functions of thesupplier
to this builder.copyFrom(net.minecraft.loot.LootTable supplier, boolean copyType)
Copies the pools and functions of thesupplier
to this builder.static FabricLootSupplierBuilder
of(net.minecraft.loot.LootTable supplier)
pool(net.minecraft.loot.LootPool.Builder pool)
type(net.minecraft.loot.context.LootContextType type)
withFunction(net.minecraft.loot.function.LootFunction function)
withFunctions(Collection<net.minecraft.loot.function.LootFunction> functions)
withPool(net.minecraft.loot.LootPool pool)
withPools(Collection<net.minecraft.loot.LootPool> pools)
Methods inherited from class net.minecraft.loot.LootTable.Builder
build, getThis
-
Constructor Details
-
FabricLootSupplierBuilder
protected FabricLootSupplierBuilder()
-
-
Method Details
-
pool
- Overrides:
pool
in classnet.minecraft.loot.LootTable.Builder
-
type
- Overrides:
type
in classnet.minecraft.loot.LootTable.Builder
-
apply
- Specified by:
apply
in interfacenet.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootTable.Builder>
- Overrides:
apply
in classnet.minecraft.loot.LootTable.Builder
-
withPool
-
withFunction
-
withPools
-
withFunctions
public FabricLootSupplierBuilder withFunctions(Collection<net.minecraft.loot.function.LootFunction> functions) -
copyFrom
Copies the pools and functions of thesupplier
to this builder. This is equal tocopyFrom(supplier, false)
. -
copyFrom
Copies the pools and functions of thesupplier
to this builder. IfcopyType
is true, thetype
of the supplier is also copied. -
builder
-
of
-