LorekeeperBookMarketService

Handles polishing, resale, and royalty payouts for submitted player books.

Functions

Link copied to clipboard

Calculates sale price in emeralds from a quality score (0-10).

Link copied to clipboard
fun deliverRemainingSubmittedBookVolumes(server: MinecraftServer, player: ServerPlayer, soldBook: ItemStack)

Delivers remaining submitted-book volumes when the first volume is purchased from merchant trade.

Link copied to clipboard
fun handleSubmittedBookSale(server: MinecraftServer, soldBook: ItemStack)

Handles royalty payout when a submitted book copy is purchased from the Lorekeeper.

Link copied to clipboard
fun queueSubmittedBookForSale(server: MinecraftServer, title: String, author: String, content: String, submittedBy: String, submittedById: String, timestamp: Long)

Queues a submitted book for AI polish and resale storage.

Link copied to clipboard
fun register()

Registers book-market listeners.

Link copied to clipboard

Resolves a submitted book quality score from persisted submission metadata and lore entries.

Link copied to clipboard

Resolves quality scores for many submitted books in one pass over lore entries.