Package net.minecraft.loot
Class LootTable.Builder
- java.lang.Object
-
- net.minecraft.loot.LootTable.Builder
-
- All Implemented Interfaces:
ILootFunctionConsumer<LootTable.Builder>
- Enclosing class:
- LootTable
public static class LootTable.Builder extends java.lang.Object implements ILootFunctionConsumer<LootTable.Builder>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ILootFunction>
functions
private LootParameterSet
paramSet
private java.util.List<LootPool>
pools
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LootTable.Builder
apply(ILootFunction.IBuilder p_212841_1_)
LootTable
build()
LootTable.Builder
setParamSet(LootParameterSet p_216039_1_)
LootTable.Builder
unwrap()
LootTable.Builder
withPool(LootPool.Builder p_216040_1_)
-
-
-
Field Detail
-
pools
private final java.util.List<LootPool> pools
-
functions
private final java.util.List<ILootFunction> functions
-
paramSet
private LootParameterSet paramSet
-
-
Method Detail
-
withPool
public LootTable.Builder withPool(LootPool.Builder p_216040_1_)
-
setParamSet
public LootTable.Builder setParamSet(LootParameterSet p_216039_1_)
-
apply
public LootTable.Builder apply(ILootFunction.IBuilder p_212841_1_)
- Specified by:
apply
in interfaceILootFunctionConsumer<LootTable.Builder>
-
unwrap
public LootTable.Builder unwrap()
- Specified by:
unwrap
in interfaceILootFunctionConsumer<LootTable.Builder>
-
build
public LootTable build()
-
-