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 protectedFabricLootSupplierBuilder() -
Method Summary
Modifier and Type Method Description FabricLootSupplierBuilderapply(net.minecraft.loot.function.LootFunction.Builder function)static FabricLootSupplierBuilderbuilder()FabricLootSupplierBuildercopyFrom(net.minecraft.loot.LootTable supplier)Copies the pools and functions of thesupplierto this builder.FabricLootSupplierBuildercopyFrom(net.minecraft.loot.LootTable supplier, boolean copyType)Copies the pools and functions of thesupplierto this builder.static FabricLootSupplierBuilderof(net.minecraft.loot.LootTable supplier)FabricLootSupplierBuilderpool(net.minecraft.loot.LootPool.Builder pool)FabricLootSupplierBuildertype(net.minecraft.loot.context.LootContextType type)FabricLootSupplierBuilderwithFunction(net.minecraft.loot.function.LootFunction function)FabricLootSupplierBuilderwithFunctions(Collection<net.minecraft.loot.function.LootFunction> functions)FabricLootSupplierBuilderwithPool(net.minecraft.loot.LootPool pool)FabricLootSupplierBuilderwithPools(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
-