Package dev.itsharshxd.zentrix.api.loot
Interface CornucopiaLootService
public interface CornucopiaLootService
Cornucopia pool persistence plus eager prepared-arena population. @since 1.6.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull LootEntrycreateEntry(@NotNull org.bukkit.inventory.ItemStack item) @NotNull LootPoolConfiguration@NotNull LootPoolConfiguration@NotNull List<LootContainerSnapshot> getEligibleContainers(@NotNull ZentrixGame game) Eligible physical containers currently inside the prepared Cornucopia.@NotNull LootRecoveryState@NotNull LootImportResultimportEntries(@NotNull List<LootEntry> entries) @NotNull Optional<LootGenerationResult> populate(@NotNull ZentrixGame game) Clears and eagerly repopulates the prepared Cornucopia using the active pool.@NotNull LootGenerationResultpreview(@NotNull LootPoolConfiguration configuration) @NotNull LootReloadResultreload()voidreplaceEntryItem(@NotNull LootEntry entry, @NotNull org.bukkit.inventory.ItemStack item) @NotNull LootReloadResult@NotNull LootSaveResultsave(@NotNull LootPoolConfiguration configuration) @NotNull LootValidationResultvalidate(@NotNull LootPoolConfiguration configuration)
-
Method Details
-
getActiveConfiguration
-
getDiskConfiguration
-
validate
@NotNull @NotNull LootValidationResult validate(@NotNull @NotNull LootPoolConfiguration configuration) -
createEntry
-
replaceEntryItem
void replaceEntryItem(@NotNull @NotNull LootEntry entry, @NotNull @NotNull org.bukkit.inventory.ItemStack item) -
save
-
importEntries
-
reload
-
preview
@NotNull @NotNull LootGenerationResult preview(@NotNull @NotNull LootPoolConfiguration configuration) -
getRecoveryState
-
restoreRecoverySnapshot
-
getEligibleContainers
@NotNull @NotNull List<LootContainerSnapshot> getEligibleContainers(@NotNull @NotNull ZentrixGame game) Eligible physical containers currently inside the prepared Cornucopia. -
populate
Clears and eagerly repopulates the prepared Cornucopia using the active pool.
-