Companion

Companion object containing constants and factory methods.

Properties

Link copied to clipboard
const val MAX_ENTRIES: Int

Legacy compatibility constant; lore entries are now kept without count-based eviction.

Link copied to clipboard

Legacy compatibility constant; submitted books are now kept without count-based eviction.

Link copied to clipboard
val STATE_TYPE: SavedDataType<LoreStorage>

SavedData type for Minecraft's data storage system.

Functions

Link copied to clipboard
fun get(server: MinecraftServer): LoreStorage

Gets the LoreStorage instance for the given server.

Link copied to clipboard
fun getCurrentDay(server: MinecraftServer): Long

Returns the current in-game day number.

Link copied to clipboard
fun getCurrentWeek(server: MinecraftServer): Long

Returns the current in-game week number.