| 1489 | } |
| 1490 | |
| 1491 | LuaNullTermWrapper<Maybe<List<Drawable>>> WorldEntityCallbacks::entityPortrait(World* world, EntityId entityId, String const& portraitMode) { |
| 1492 | if (auto portraitEntity = as<PortraitEntity>(world->entity(entityId))) |
| 1493 | return portraitEntity->portrait(PortraitModeNames.getLeft(portraitMode)); |
| 1494 | |
| 1495 | return {}; |
| 1496 | } |
| 1497 | |
| 1498 | Maybe<String> WorldEntityCallbacks::entityHandItem(World* world, EntityId entityId, String const& handName) { |
| 1499 | ToolHand toolHand; |