Interface LootPoolEntryDescriber
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Describes the potential items that a loot pool entry can generate. See
LootPoolEntryDescriptions for usage.-
Method Summary
Modifier and TypeMethodDescriptionvoidgetPotentialDrops(@NotNull net.minecraft.core.RegistryAccess registries, @NotNull net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry, Consumer<net.minecraft.world.item.ItemStack> collector) Describes items that may potentially be dropped by a loot pool entry.
-
Method Details
-
getPotentialDrops
void getPotentialDrops(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, @NotNull @NotNull net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry, Consumer<net.minecraft.world.item.ItemStack> collector) Describes items that may potentially be dropped by a loot pool entry.- Parameters:
registries- Access to the current game registries.entry- The loot pool entry to be processed.collector- Collects entries from the entry into the desired format.
-