NPCData

data class NPCData(val uuid: UUID = UUID.randomUUID(), val type: EntityType = EntityType.PLAYER, val name: Component, val skin: UUID, val loc: Pos, val 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

Constructors

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

Properties

Link copied to clipboard
val handler: (PlayerEntityInteractEvent) -> Unit
Link copied to clipboard
val loc: Pos
Link copied to clipboard
val name: Component
Link copied to clipboard
val skin: UUID
Link copied to clipboard
val type: EntityType
Link copied to clipboard
val uuid: UUID