Package net.minecraft.loot
Class LootPool
java.lang.Object
net.minecraft.loot.LootPool
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate RandomValueRange
private final Predicate<LootContext>
private final BiFunction<ItemStack,
LootContext, ItemStack> private final List<ILootCondition>
private final ILootFunction[]
private boolean
private final String
private IRandomRange
-
Constructor Summary
ModifierConstructorDescriptionprivate
LootPool
(LootEntry[] p_i51268_1_, ILootCondition[] p_i51268_2_, ILootFunction[] p_i51268_3_, IRandomRange p_i51268_4_, RandomValueRange p_i51268_5_, String name) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addRandomItem
(Consumer<ItemStack> p_216095_1_, LootContext p_216095_2_) void
addRandomItems
(Consumer<ItemStack> p_216091_1_, LootContext p_216091_2_) private void
void
freeze()
getName()
getRolls()
boolean
isFrozen()
static LootPool.Builder
lootPool()
void
void
void
validate
(ValidationTracker p_227505_1_)
-
Field Details
-
name
-
entries
-
conditions
-
compositeCondition
-
functions
-
compositeFunction
-
rolls
-
bonusRolls
-
isFrozen
private boolean isFrozen
-
-
Constructor Details
-
LootPool
private LootPool(LootEntry[] p_i51268_1_, ILootCondition[] p_i51268_2_, ILootFunction[] p_i51268_3_, IRandomRange p_i51268_4_, RandomValueRange p_i51268_5_, String name)
-
-
Method Details
-
addRandomItem
-
addRandomItems
-
validate
-
freeze
public void freeze() -
isFrozen
public boolean isFrozen() -
checkFrozen
private void checkFrozen() -
getName
-
getRolls
-
getBonusRolls
-
setRolls
-
setBonusRolls
-
lootPool
-