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 -
Method Summary
Modifier and TypeMethodDescriptionapply(net.minecraft.loot.function.LootFunction.Builder function)static FabricLootSupplierBuilderbuilder()copyFrom(net.minecraft.loot.LootTable supplier)Copies the pools and functions of thesupplierto this builder.copyFrom(net.minecraft.loot.LootTable supplier, boolean copyType)Copies the pools and functions of thesupplierto this builder.static FabricLootSupplierBuilderof(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:
poolin classnet.minecraft.loot.LootTable.Builder
-
type
- Overrides:
typein classnet.minecraft.loot.LootTable.Builder
-
apply
- Specified by:
applyin interfacenet.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootTable.Builder>- Overrides:
applyin 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 thesupplierto this builder. This is equal tocopyFrom(supplier, false). -
copyFrom
Copies the pools and functions of thesupplierto this builder. IfcopyTypeis true, thetypeof the supplier is also copied. -
builder
-
of
-