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 final com.google.common.collect.ImmutableList.Builder<LootItemCondition>
private final com.google.common.collect.ImmutableList.Builder<LootPoolEntryContainer>
private ICondition
private final com.google.common.collect.ImmutableList.Builder<LootItemFunction>
private @Nullable String
private NumberProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(LootPoolEntryContainer.Builder<?> p_79077_) apply
(LootItemFunction.Builder p_79079_) build()
setBonusRolls
(NumberProvider p_165136_) setRolls
(NumberProvider p_165134_) unwrap()
when
(LootItemCondition.Builder p_79081_) when
(ICondition value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.predicates.ConditionUserBuilder
when
Methods inherited from interface net.minecraft.world.level.storage.loot.functions.FunctionUserBuilder
apply, apply
-
Field Details
-
entries
-
conditions
-
functions
-
rolls
-
bonusRolls
-
name
-
forge_condition
-
-
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
-
when
-
build
-