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 Type
    Method
    Description
    List<net.minecraft.world.level.storage.loot.LootPool>
    Retrieves the list of loot pools currently configured in this loot table.
    void
    enchanting_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 LootPool instances.
    • enchanting_overhauled$setPools

      void enchanting_overhauled$setPools(List<net.minecraft.world.level.storage.loot.LootPool> pools)
      Replaces the list of loot pools for this loot table.
      Parameters:
      pools - The new list of LootPool instances to assign to the loot table.