Interface LootTableCatalogService


public interface LootTableCatalogService
Discovery, preview, and import of local JSON and Minecraft chest loot tables. @since 1.6.0
  • Method Details

    • list

      @NotNull @NotNull List<LootTableReference> list(@NotNull @NotNull LootTableCategory category)
    • preview

      @NotNull @NotNull LootTablePreview preview(@NotNull @NotNull LootTableReference reference, @NotNull @NotNull org.bukkit.Location context)
      Previews a table. Minecraft tables use the supplied location as their loot context; local JSON tables ignore it. Native table sampling and all Bukkit access must run on the main thread.
    • importTable

      @NotNull @NotNull LootImportResult importTable(@NotNull @NotNull LootTableReference reference, @NotNull @NotNull org.bukkit.Location context, @NotNull @NotNull LootPool target)
      Imports a fresh copy of every preview entry into the selected pool.