Class LootPool
java.lang.Object
net.minecraft.world.level.storage.loot.LootPool
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) NumberProvider
private final Predicate<LootContext>
private final BiFunction<ItemStack,
LootContext, ItemStack> (package private) final LootItemCondition[]
(package private) final LootPoolEntryContainer[]
(package private) final LootItemFunction[]
private boolean
private final String
(package private) NumberProvider
-
Constructor Summary
ConstructorDescriptionLootPool
(LootPoolEntryContainer[] p_165128_, LootItemCondition[] p_165129_, LootItemFunction[] p_165130_, NumberProvider p_165131_, NumberProvider p_165132_, String name) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addRandomItem
(Consumer<ItemStack> p_79059_, LootContext p_79060_) void
addRandomItems
(Consumer<ItemStack> p_79054_, LootContext p_79055_) private void
void
freeze()
getName()
getRolls()
boolean
isFrozen()
static LootPool.Builder
lootPool()
void
void
void
validate
(ValidationContext p_79052_)
-
Field Details
-
name
-
entries
-
conditions
-
compositeCondition
-
functions
-
compositeFunction
-
rolls
NumberProvider rolls -
bonusRolls
NumberProvider bonusRolls -
isFrozen
private boolean isFrozen
-
-
Constructor Details
-
LootPool
LootPool(LootPoolEntryContainer[] p_165128_, LootItemCondition[] p_165129_, LootItemFunction[] p_165130_, NumberProvider p_165131_, NumberProvider p_165132_, 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
-