JeevesCompanionStorage

class JeevesCompanionStorage : SavedData(source)

Persistent per-player inventory for Jeeves companions.

Each owner UUID gets three persistent sections:

  • 27-slot carried storage for Jeeves

  • 6-slot equipment loadout (helmet/chest/legs/boots/mainhand/offhand)

  • behavior toggles (slow falling, frost walker, combat, and AI chat)

Types

Link copied to clipboard
object Companion

Companion with codec and factory for world-level persistence.

Properties

Link copied to clipboard
open var isDirty: Boolean

Functions

Link copied to clipboard
fun bindEntityEquipment(ownerUuid: UUID, entity: JeevesEntity)

Loads persisted equipment into the entity and migrates existing entity equipment on first bind.

Link copied to clipboard
fun bindEntityStorage(ownerUuid: UUID, currentStorage: SimpleContainer): SimpleContainer

Returns the persistent storage container for this owner and migrates in-entity contents on first bind.

Link copied to clipboard
fun saveEquipment(ownerUuid: UUID, entity: JeevesEntity)

Saves the entity's current equipment back to persistent storage.