NPCData

fun NPCData(uuid: UUID = UUID.randomUUID(), type: EntityType = EntityType.PLAYER, name: Component, skin: UUID, loc: Pos, handler: (PlayerEntityInteractEvent) -> Unit)

Parameters

uuid

the uuid is NPC random id

type

the type is NPC entity type

name

the name is NPC displayed name

skin

the skin is NPC displayed skin uuid

loc

the loc is npc spawn location

handler

the handler is what to do when a NPC is clicked