Macrocosm
0.5.2-alpha
jvm
Macrocosm
/
space.maxus.macrocosm.npc
/
NPCLevelDbAdapter
NPCLevel
Db
Adapter
object
NPCLevelDbAdapter
:
LevelDbAdapter
,
Listener
(
source
)
A LevelDB adapter for NPC storage
Members
Functions
add
Npc
Link copied to clipboard
fun
addNpc
(
instance
:
NPCInstance
,
id
:
UUID
)
Adds an NPC to world
close
Link copied to clipboard
fun
close
(
)
Saves all NPCs
load
Link copied to clipboard
open
override
fun
load
(
from
:
CompoundTag
)
on
Player
Entity
Interact
Link copied to clipboard
fun
onPlayerEntityInteract
(
e
:
PlayerInteractEntityEvent
)
on
Player
Join
Link copied to clipboard
fun
onPlayerJoin
(
e
:
PlayerJoinEvent
)
player
World
Change
Link copied to clipboard
fun
playerWorldChange
(
e
:
PlayerTeleportEvent
)
save
Link copied to clipboard
open
override
fun
save
(
to
:
CompoundTag
)
Properties
name
Link copied to clipboard
val
name
:
String