getItems
getItems: (ServerNpcLoot) -> {ItemStack}The stacks.
| Method | Returns | Description |
|---|---|---|
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… |
| Field | Type | Description |
|---|---|---|
__eventClass | string | "ServerNpcLoot": the class's name, which host APIs that take the class itself read. |
getItemsgetItems: (ServerNpcLoot) -> {ItemStack}The stacks.
getCompositiongetComposition: (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.