Class LootPoolEntryDescriptions
java.lang.Object
net.darkhax.bookshelf.common.api.loot.LootPoolEntryDescriptions
Provides a system for describing what items can be dropped by a loot table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LootPoolEntryDescriberstatic final LootPoolEntryDescriberstatic final LootPoolEntryDescriberstatic final LootPoolEntryDescriberstatic final LootPoolEntryDescriberstatic final LootPoolEntryDescriberstatic final LootPoolEntryDescriber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull net.minecraft.core.RegistryAccess registries, com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>, net.minecraft.world.level.storage.loot.LootTable> table) Gets a list of items that can be produced by a loot table.static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull net.minecraft.core.RegistryAccess registries, List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer> entries) Gets a list of items that can be produced by a list of loot pool entries.static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull net.minecraft.core.RegistryAccess registries, net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry) Gets a list of items that can be produced by a loot pool entry.static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull net.minecraft.core.RegistryAccess registries, net.minecraft.world.level.storage.loot.LootTable table) Gets a list of items that can be produced by a loot table.
-
Field Details
-
EMPTY
-
ITEM
-
LOOT_TABLE
-
DYNAMIC
-
TAG
-
COMPOSITE
-
ITEM_STACK
-
-
Constructor Details
-
LootPoolEntryDescriptions
public LootPoolEntryDescriptions()
-
-
Method Details
-
getPotentialItems
public static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>, net.minecraft.world.level.storage.loot.LootTable> table) Gets a list of items that can be produced by a loot table.- Parameters:
registries- The current reloadable game registries.table- The loot table to analyze.- Returns:
- A list of items that can be produced by the entry.
-
getPotentialItems
public static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, net.minecraft.world.level.storage.loot.LootTable table) Gets a list of items that can be produced by a loot table.- Parameters:
registries- The current reloadable game registries.table- The loot table to analyze.- Returns:
- A list of items that can be produced by the entry.
-
getPotentialItems
public static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, List<net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer> entries) Gets a list of items that can be produced by a list of loot pool entries.- Parameters:
registries- The current reloadable game registries.entries- A list of loot pool entries to analyze.- Returns:
- A list of items that can be produced by the entry.
-
getPotentialItems
public static List<net.minecraft.world.item.ItemStack> getPotentialItems(@NotNull @NotNull net.minecraft.core.RegistryAccess registries, net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer entry) Gets a list of items that can be produced by a loot pool entry.- Parameters:
registries- The current reloadable game registries.entry- The loot pool entry to analyze.- Returns:
- A list of items that can be produced by the entry.
-