Class LootPool.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootPool.Builder
- All Implemented Interfaces:
FunctionUserBuilder<LootPool.Builder>
,ConditionUserBuilder<LootPool.Builder>
- Enclosing class:
- LootPool
public static class LootPool.Builder
extends Object
implements FunctionUserBuilder<LootPool.Builder>, ConditionUserBuilder<LootPool.Builder>
-
Field Summary
Modifier and TypeFieldDescriptionprivate NumberProvider
private List<LootItemCondition>
private List<LootPoolEntryContainer>
private List<LootItemFunction>
private String
private NumberProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd(LootPoolEntryContainer.Builder<?> p_79077_)
apply(LootItemFunction.Builder p_79079_)
bonusRolls(float min, float max)
Deprecated, for removal: This API element is subject to removal in a future version.build()
setBonusRolls(NumberProvider p_165136_)
setRolls(NumberProvider p_165134_)
unwrap()
when(LootItemCondition.Builder p_79081_)
-
Field Details
-
entries
-
conditions
-
functions
-
rolls
-
bonusRolls
-
name
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setRolls
-
unwrap
- Specified by:
unwrap
in interfaceConditionUserBuilder<LootPool.Builder>
- Specified by:
unwrap
in interfaceFunctionUserBuilder<LootPool.Builder>
-
setBonusRolls
-
add
-
when
- Specified by:
when
in interfaceConditionUserBuilder<LootPool.Builder>
-
apply
- Specified by:
apply
in interfaceFunctionUserBuilder<LootPool.Builder>
-
name
-
bonusRolls
@Deprecated(forRemoval=true, since="1.17.1") public LootPool.Builder bonusRolls(float min, float max)Deprecated, for removal: This API element is subject to removal in a future version. -
build
-