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 Object
implements ILootFunctionConsumer<LootPool.Builder>, ILootConditionConsumer<LootPool.Builder>
-
Field Summary
Modifier and TypeFieldDescriptionprivate RandomValueRange
private final List<ILootCondition>
private final List<ILootFunction>
private String
private IRandomRange
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(LootEntry.Builder<?> p_216045_1_) apply
(ILootFunction.IBuilder p_212841_1_) bonusRolls
(float min, float max) build()
setRolls
(IRandomRange p_216046_1_) unwrap()
when
(ILootCondition.IBuilder p_212840_1_)
-
Field Details
-
entries
-
conditions
-
functions
-
rolls
-
bonusRolls
-
name
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setRolls
-
unwrap
- Specified by:
unwrap
in interfaceILootConditionConsumer<LootPool.Builder>
- Specified by:
unwrap
in interfaceILootFunctionConsumer<LootPool.Builder>
-
add
-
when
- Specified by:
when
in interfaceILootConditionConsumer<LootPool.Builder>
-
apply
- Specified by:
apply
in interfaceILootFunctionConsumer<LootPool.Builder>
-
name
-
bonusRolls
-
build
-