Class LootTable
java.lang.Object
com.github.darksoulq.abyssallib.world.data.loot.LootTable
Represents a complete loot table capable of synthesizing item collections and intelligently
populating external containers using context-driven probability logic.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLootTable(List<LootPool> pools, MergeStrategy mergeStrategy, String vanillaId) Constructs a new LootTable incorporating probability pools and structural overrides. -
Method Summary
Modifier and TypeMethodDescriptionvoidfill(org.bukkit.inventory.Inventory inventory, LootContext context) Generates and distributes physical loot dynamically across a target inventory, strictly adhering to mathematical slot availability thresholds.List<org.bukkit.inventory.ItemStack> generate(LootContext context) Evaluates probabilistic algorithms to materialize a discrete list of items.Retrieves the conflict resolution strategy bridging procedural and structural overlaps.getPools()Retrieves the internal collection of configured loot pools dictating sequential evaluation phases.Retrieves the linked internal namespace key utilized by vanilla parity overlays.
-
Field Details
-
CODEC
-
-
Constructor Details
-
LootTable
Constructs a new LootTable incorporating probability pools and structural overrides.- Parameters:
pools- The collection of functional pools generating drops.mergeStrategy- The conflict resolution strategy mapped against vanilla identifiers.vanillaId- The targeted namespace mapping dictating override bounds.
-
-
Method Details
-
getPools
-
generate
Evaluates probabilistic algorithms to materialize a discrete list of items.- Parameters:
context- The functional environment encompassing actors and mathematical modifiers.- Returns:
- A list of items synthesized across all constituent pools.
-
fill
Generates and distributes physical loot dynamically across a target inventory, strictly adhering to mathematical slot availability thresholds.- Parameters:
inventory- The operational inventory target receiving the synthesized payload.context- The functional environment governing generation variables.
-
getMergeStrategy
Retrieves the conflict resolution strategy bridging procedural and structural overlaps.- Returns:
- The operational merge strategy configuration.
-
getVanillaId
Retrieves the linked internal namespace key utilized by vanilla parity overlays.- Returns:
- The targeted string identifier, or null.
-