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
Constructors Modifier Constructor Description protected
FabricLootSupplierBuilder()
-
Method Summary
Modifier and Type Method Description FabricLootSupplierBuilder
apply(net.minecraft.loot.function.LootFunction.Builder function)
static FabricLootSupplierBuilder
builder()
FabricLootSupplierBuilder
copyFrom(net.minecraft.loot.LootTable supplier)
Copies the pools and functions of thesupplier
to this builder.FabricLootSupplierBuilder
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)
FabricLootSupplierBuilder
pool(net.minecraft.loot.LootPool.Builder pool)
FabricLootSupplierBuilder
type(net.minecraft.loot.context.LootContextType type)
FabricLootSupplierBuilder
withFunction(net.minecraft.loot.function.LootFunction function)
FabricLootSupplierBuilder
withFunctions(Collection<net.minecraft.loot.function.LootFunction> functions)
FabricLootSupplierBuilder
withPool(net.minecraft.loot.LootPool pool)
FabricLootSupplierBuilder
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
-