public class FabricLootSupplierBuilder
extends net.minecraft.loot.LootTable.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
FabricLootSupplierBuilder() |
| Modifier and Type | Method and 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 the
supplier to this builder. |
FabricLootSupplierBuilder |
copyFrom(net.minecraft.loot.LootTable supplier,
boolean copyType)
Copies the pools and functions of the
supplier 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) |
public FabricLootSupplierBuilder pool(net.minecraft.loot.LootPool.Builder pool)
pool in class net.minecraft.loot.LootTable.Builderpublic FabricLootSupplierBuilder type(net.minecraft.loot.context.LootContextType type)
type in class net.minecraft.loot.LootTable.Builderpublic FabricLootSupplierBuilder apply(net.minecraft.loot.function.LootFunction.Builder function)
apply in interface net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootTable.Builder>apply in class net.minecraft.loot.LootTable.Builderpublic FabricLootSupplierBuilder withPool(net.minecraft.loot.LootPool pool)
public FabricLootSupplierBuilder withFunction(net.minecraft.loot.function.LootFunction function)
public FabricLootSupplierBuilder withPools(Collection<net.minecraft.loot.LootPool> pools)
public FabricLootSupplierBuilder withFunctions(Collection<net.minecraft.loot.function.LootFunction> functions)
public FabricLootSupplierBuilder copyFrom(net.minecraft.loot.LootTable supplier)
supplier to this builder.
This is equal to copyFrom(supplier, false).public FabricLootSupplierBuilder copyFrom(net.minecraft.loot.LootTable supplier, boolean copyType)
supplier to this builder.
If copyType is true, the type of the supplier is also copied.public static FabricLootSupplierBuilder builder()
public static FabricLootSupplierBuilder of(net.minecraft.loot.LootTable supplier)