Interface LootTableAccessor
- All Known Implementing Classes:
LootTableMixin
public interface LootTableAccessor
Accessor interface for the
LootTable class.
This interface is implemented via Mixin to expose the private pools field on a loot table,
allowing Enchanting Overhauled to inspect and replace the list of LootPools at runtime.
This is primarily used by the loot injection system to append custom pools (such as Enchanted Tomes
and Enchanted Pages) into existing vanilla or modded loot tables upon server start and datapack reload.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.level.storage.loot.LootPool> Retrieves the list of loot pools currently configured in this loot table.voidenchanting_overhauled$setPools(List<net.minecraft.world.level.storage.loot.LootPool> pools) Replaces the list of loot pools for this loot table.
-
Method Details
-
enchanting_overhauled$getPools
List<net.minecraft.world.level.storage.loot.LootPool> enchanting_overhauled$getPools()Retrieves the list of loot pools currently configured in this loot table.- Returns:
- The current list of
LootPoolinstances.
-
enchanting_overhauled$setPools
Replaces the list of loot pools for this loot table.- Parameters:
pools- The new list ofLootPoolinstances to assign to the loot table.
-