Package dev.itsharshxd.zentrix.api.loot
Interface LootTableCatalogService
public interface LootTableCatalogService
Discovery, preview, and import of local JSON and Minecraft chest loot tables. @since 1.6.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull LootImportResultimportTable(@NotNull LootTableReference reference, @NotNull org.bukkit.Location context, @NotNull LootPool target) Imports a fresh copy of every preview entry into the selected pool.@NotNull List<LootTableReference> list(@NotNull LootTableCategory category) @NotNull LootTablePreviewpreview(@NotNull LootTableReference reference, @NotNull org.bukkit.Location context) Previews a table.
-
Method Details
-
list
-
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.
-