Package net.minecraft.loot
Class LootPool
java.lang.Object
net.minecraft.loot.LootPool
public class LootPool extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLootPool.Builderstatic classLootPool.Serializer -
Field Summary
Fields Modifier and Type Field Description private LootNumberProviderbonusRollsprivate LootCondition[]conditionsprivate LootPoolEntry[]entriesprivate LootFunction[]functionsprivate BiFunction<ItemStack,LootContext,ItemStack>javaFunctionsprivate Predicate<LootContext>predicateprivate LootNumberProviderrolls -
Constructor Summary
Constructors Modifier Constructor Description privateLootPool(LootPoolEntry[] entries, LootCondition[] conditions, LootFunction[] functions, LootNumberProvider rolls, LootNumberProvider bonusRolls) -
Method Summary
Modifier and Type Method Description voidaddGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)static LootPool.Builderbuilder()private voidsupplyOnce(Consumer<ItemStack> lootConsumer, LootContext context)voidvalidate(LootTableReporter lootTableReporter)
-
Field Details
-
entries
-
conditions
-
predicate
-
functions
-
javaFunctions
-
rolls
-
bonusRolls
-
-
Constructor Details
-
LootPool
private LootPool(LootPoolEntry[] entries, LootCondition[] conditions, LootFunction[] functions, LootNumberProvider rolls, LootNumberProvider bonusRolls)
-
-
Method Details
-
supplyOnce
-
addGeneratedLoot
-
validate
-
builder
-