public class FabricLootSupplierBuilder
extends net.minecraft.loot.LootTable.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
FabricLootSupplierBuilder() |
| Modifier and Type | Method and Description |
|---|---|
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 |
withFunction(net.minecraft.loot.function.LootFunction.Builder function) |
FabricLootSupplierBuilder |
withFunction(net.minecraft.loot.function.LootFunction function) |
FabricLootSupplierBuilder |
withFunctions(Collection<net.minecraft.loot.function.LootFunction> functions) |
FabricLootSupplierBuilder |
withPool(net.minecraft.loot.LootPool.Builder pool) |
FabricLootSupplierBuilder |
withPool(net.minecraft.loot.LootPool pool) |
FabricLootSupplierBuilder |
withPools(Collection<net.minecraft.loot.LootPool> pools) |
FabricLootSupplierBuilder |
withType(net.minecraft.loot.context.LootContextType type) |
public FabricLootSupplierBuilder withPool(net.minecraft.loot.LootPool.Builder pool)
withPool in class net.minecraft.loot.LootTable.Builderpublic FabricLootSupplierBuilder withType(net.minecraft.loot.context.LootContextType type)
withType in class net.minecraft.loot.LootTable.Builderpublic FabricLootSupplierBuilder withFunction(net.minecraft.loot.function.LootFunction.Builder function)
withFunction in interface net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootTable.Builder>withFunction 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)