Package net.minecraft.loot
Class LootPool.Builder
- java.lang.Object
-
- net.minecraft.loot.LootPool.Builder
-
- All Implemented Interfaces:
ILootConditionConsumer<LootPool.Builder>
,ILootFunctionConsumer<LootPool.Builder>
- Enclosing class:
- LootPool
public static class LootPool.Builder extends java.lang.Object implements ILootFunctionConsumer<LootPool.Builder>, ILootConditionConsumer<LootPool.Builder>
-
-
Field Summary
Fields Modifier and Type Field Description private RandomValueRange
bonusRolls
private java.util.List<ILootCondition>
conditions
private java.util.List<LootEntry>
entries
private java.util.List<ILootFunction>
functions
private java.lang.String
name
private IRandomRange
rolls
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LootPool.Builder
add(LootEntry.Builder<?> p_216045_1_)
LootPool.Builder
apply(ILootFunction.IBuilder p_212841_1_)
LootPool.Builder
bonusRolls(float min, float max)
LootPool
build()
LootPool.Builder
name(java.lang.String name)
LootPool.Builder
setRolls(IRandomRange p_216046_1_)
LootPool.Builder
unwrap()
LootPool.Builder
when(ILootCondition.IBuilder p_212840_1_)
-
-
-
Field Detail
-
entries
private final java.util.List<LootEntry> entries
-
conditions
private final java.util.List<ILootCondition> conditions
-
functions
private final java.util.List<ILootFunction> functions
-
rolls
private IRandomRange rolls
-
bonusRolls
private RandomValueRange bonusRolls
-
name
private java.lang.String name
-
-
Method Detail
-
setRolls
public LootPool.Builder setRolls(IRandomRange p_216046_1_)
-
unwrap
public LootPool.Builder unwrap()
- Specified by:
unwrap
in interfaceILootConditionConsumer<LootPool.Builder>
- Specified by:
unwrap
in interfaceILootFunctionConsumer<LootPool.Builder>
-
add
public LootPool.Builder add(LootEntry.Builder<?> p_216045_1_)
-
when
public LootPool.Builder when(ILootCondition.IBuilder p_212840_1_)
- Specified by:
when
in interfaceILootConditionConsumer<LootPool.Builder>
-
apply
public LootPool.Builder apply(ILootFunction.IBuilder p_212841_1_)
- Specified by:
apply
in interfaceILootFunctionConsumer<LootPool.Builder>
-
name
public LootPool.Builder name(java.lang.String name)
-
bonusRolls
public LootPool.Builder bonusRolls(float min, float max)
-
build
public LootPool build()
-
-