ServerNpcLoot

Methods
2
Fields
1

Methods

MethodReturnsDescription
getItems(){ItemStack}The stacks.
getComposition()NPCComposition?The NPC's definition: client.getNpcDefinition(id) of the id the loot script named when it ran, loaded through the client's own loader whe…

Fields

FieldTypeDescription
__eventClassstring"ServerNpcLoot": the class's name, which host APIs that take the class itself read.

Method details

getComposition

getComposition: (ServerNpcLoot) -> NPCComposition?

The NPC's definition: client.getNpcDefinition(id) of the id the loot script named when it ran, loaded through the client's own loader when the game has not loaded it; nil only for an id the client has no definition for.