#include <l_object.h>
Public Member Functions | |
ObjectRef (ServerActiveObject *object) | |
~ObjectRef ()=default | |
Static Public Member Functions | |
static void | create (lua_State *L, ServerActiveObject *object) |
static void | set_null (lua_State *L, void *expect) |
static void | Register (lua_State *L) |
static ServerActiveObject * | getobject (ObjectRef *ref) |
Static Public Member Functions inherited from ModApiBase | |
static ScriptApiBase * | getScriptApiBase (lua_State *L) |
static Server * | getServer (lua_State *L) |
static ServerInventoryManager * | getServerInventoryMgr (lua_State *L) |
static EmergeThread * | getEmergeThread (lua_State *L) |
static IGameDef * | getGameDef (lua_State *L) |
static Environment * | getEnv (lua_State *L) |
static std::string | getCurrentModPath (lua_State *L) |
template<typename T > | |
static T * | getScriptApi (lua_State *L) |
static bool | registerFunction (lua_State *L, const char *name, lua_CFunction func, int top) |
static void | registerClass (lua_State *L, const char *name, const luaL_Reg *methods, const luaL_Reg *metamethods) |
template<typename T > | |
static T * | checkObject (lua_State *L, int narg) |
static int | l_deprecated_function (lua_State *L, const char *good, const char *bad, lua_CFunction func) |
A wrapper for deprecated functions. | |
Static Public Attributes | |
static const char | className [] = "ObjectRef" |
Static Private Member Functions | |
static LuaEntitySAO * | getluaobject (ObjectRef *ref) |
static PlayerSAO * | getplayersao (ObjectRef *ref) |
static RemotePlayer * | getplayer (ObjectRef *ref) |
static int | gc_object (lua_State *L) |
static int | l_remove (lua_State *L) |
static int | l_is_valid (lua_State *L) |
static int | l_get_pos (lua_State *L) |
static int | l_set_pos (lua_State *L) |
static int | l_add_pos (lua_State *L) |
static int | l_move_to (lua_State *L) |
static int | l_punch (lua_State *L) |
static int | l_right_click (lua_State *L) |
static int | l_set_hp (lua_State *L) |
static int | l_get_hp (lua_State *L) |
static int | l_get_inventory (lua_State *L) |
static int | l_get_wield_list (lua_State *L) |
static int | l_get_wield_index (lua_State *L) |
static int | l_get_wielded_item (lua_State *L) |
static int | l_set_wielded_item (lua_State *L) |
static int | l_set_armor_groups (lua_State *L) |
static int | l_get_armor_groups (lua_State *L) |
static int | l_set_physics_override (lua_State *L) |
static int | l_get_physics_override (lua_State *L) |
static int | l_set_animation (lua_State *L) |
static int | l_set_animation_frame_speed (lua_State *L) |
static int | l_get_animation (lua_State *L) |
static int | l_set_bone_position (lua_State *L) |
static int | l_get_bone_position (lua_State *L) |
static int | l_set_bone_override (lua_State *L) |
static int | l_get_bone_override (lua_State *L) |
static int | l_get_bone_overrides (lua_State *L) |
static int | l_set_attach (lua_State *L) |
static int | l_get_attach (lua_State *L) |
static int | l_get_children (lua_State *L) |
static int | l_set_detach (lua_State *L) |
static int | l_set_properties (lua_State *L) |
static int | l_get_properties (lua_State *L) |
static int | l_set_observers (lua_State *L) |
static int | l_get_observers (lua_State *L) |
static int | l_get_effective_observers (lua_State *L) |
static int | l_is_player (lua_State *L) |
static int | l_set_velocity (lua_State *L) |
static int | l_add_velocity (lua_State *L) |
static int | l_get_velocity (lua_State *L) |
static int | l_set_acceleration (lua_State *L) |
static int | l_get_acceleration (lua_State *L) |
static int | l_set_rotation (lua_State *L) |
static int | l_get_rotation (lua_State *L) |
static int | l_set_yaw (lua_State *L) |
static int | l_get_yaw (lua_State *L) |
static int | l_set_texture_mod (lua_State *L) |
static int | l_get_texture_mod (lua_State *L) |
static int | l_set_sprite (lua_State *L) |
static int | l_get_entity_name (lua_State *L) |
static int | l_get_luaentity (lua_State *L) |
static int | l_get_player_name (lua_State *L) |
static int | l_get_fov (lua_State *L) |
static int | l_get_look_dir (lua_State *L) |
static int | l_get_look_pitch (lua_State *L) |
static int | l_get_look_yaw (lua_State *L) |
static int | l_get_look_vertical (lua_State *L) |
static int | l_get_look_horizontal (lua_State *L) |
static int | l_set_fov (lua_State *L) |
static int | l_set_look_vertical (lua_State *L) |
static int | l_set_look_horizontal (lua_State *L) |
static int | l_set_look_pitch (lua_State *L) |
static int | l_set_look_yaw (lua_State *L) |
static int | l_set_breath (lua_State *L) |
static int | l_get_breath (lua_State *L) |
static int | l_set_attribute (lua_State *L) |
static int | l_get_attribute (lua_State *L) |
static int | l_get_meta (lua_State *L) |
static int | l_set_inventory_formspec (lua_State *L) |
static int | l_get_inventory_formspec (lua_State *L) |
static int | l_set_formspec_prepend (lua_State *L) |
static int | l_get_formspec_prepend (lua_State *L) |
static int | l_get_player_control (lua_State *L) |
static int | l_get_player_control_bits (lua_State *L) |
static int | l_hud_add (lua_State *L) |
static int | l_hud_remove (lua_State *L) |
static int | l_hud_change (lua_State *L) |
static u32 | hud_get_next_id (lua_State *L) |
static int | l_hud_get (lua_State *L) |
static int | l_hud_get_all (lua_State *L) |
static int | l_hud_set_flags (lua_State *L) |
static int | l_hud_get_flags (lua_State *L) |
static int | l_hud_set_hotbar_itemcount (lua_State *L) |
static int | l_hud_get_hotbar_itemcount (lua_State *L) |
static int | l_hud_set_hotbar_image (lua_State *L) |
static int | l_hud_get_hotbar_image (lua_State *L) |
static int | l_hud_set_hotbar_selected_image (lua_State *L) |
static int | l_hud_get_hotbar_selected_image (lua_State *L) |
static int | l_set_sky (lua_State *L) |
static int | l_get_sky (lua_State *L) |
static int | l_get_sky_color (lua_State *L) |
static int | l_set_sun (lua_State *L) |
static int | l_get_sun (lua_State *L) |
static int | l_set_moon (lua_State *L) |
static int | l_get_moon (lua_State *L) |
static int | l_set_stars (lua_State *L) |
static int | l_get_stars (lua_State *L) |
static int | l_set_clouds (lua_State *L) |
static int | l_get_clouds (lua_State *L) |
static int | l_override_day_night_ratio (lua_State *L) |
static int | l_get_day_night_ratio (lua_State *L) |
static int | l_set_local_animation (lua_State *L) |
static int | l_get_local_animation (lua_State *L) |
static int | l_set_eye_offset (lua_State *L) |
static int | l_get_eye_offset (lua_State *L) |
static int | l_set_nametag_attributes (lua_State *L) |
static int | l_get_nametag_attributes (lua_State *L) |
static int | l_send_mapblock (lua_State *L) |
static int | l_set_minimap_modes (lua_State *L) |
static int | l_set_lighting (lua_State *L) |
static int | l_get_lighting (lua_State *L) |
static int | l_respawn (lua_State *L) |
static int | l_set_flags (lua_State *L) |
static int | l_get_flags (lua_State *L) |
Private Attributes | |
ServerActiveObject * | m_object = nullptr |
Static Private Attributes | |
static luaL_Reg | methods [] |
Additional Inherited Members | |
Protected Member Functions inherited from LuaHelper | |
template<> | |
bool | readParam (lua_State *L, int index) |
template<> | |
s16 | readParam (lua_State *L, int index) |
template<> | |
int | readParam (lua_State *L, int index) |
template<> | |
float | readParam (lua_State *L, int index) |
template<> | |
v2s16 | readParam (lua_State *L, int index) |
template<> | |
v2f | readParam (lua_State *L, int index) |
template<> | |
v3f | readParam (lua_State *L, int index) |
template<> | |
std::string_view | readParam (lua_State *L, int index) |
template<> | |
std::string | readParam (lua_State *L, int index) |
template<> | |
std::string_view | readParam (lua_State *L, int index) |
Read a string from Lua state L at index without copying it. | |
Static Protected Member Functions inherited from LuaHelper | |
template<typename T > | |
static T | readParam (lua_State *L, int index) |
Read a value using a template type T from Lua state L at index. | |
template<typename T > | |
static T | readParam (lua_State *L, int index, const T &default_value) |
Read a value using a template type T from Lua state L at index. | |
ObjectRef::ObjectRef | ( | ServerActiveObject * | object | ) |
|
default |
|
static |
References ObjectRef(), and className.
Referenced by ScriptApiBase::addObjectReference(), and ScriptApiBase::objectrefGetOrCreate().
|
staticprivate |
|
staticprivate |
References ACTIVEOBJECT_TYPE_LUAENTITY, getobject(), and ActiveObject::getType().
Referenced by l_get_acceleration(), l_get_entity_name(), l_get_luaentity(), l_get_rotation(), l_get_texture_mod(), l_get_yaw(), l_set_acceleration(), l_set_rotation(), l_set_sprite(), l_set_texture_mod(), l_set_velocity(), and l_set_yaw().
|
static |
References ServerActiveObject::isGone(), and m_object.
Referenced by get_observers(), getluaobject(), getplayersao(), ModApiParticles::l_add_particlespawner(), l_add_pos(), l_add_velocity(), ModApiEnv::l_dig_node(), l_get_animation(), l_get_armor_groups(), l_get_attach(), l_get_bone_override(), l_get_bone_overrides(), l_get_bone_position(), l_get_children(), l_get_hp(), l_get_inventory(), l_get_nametag_attributes(), l_get_pos(), l_get_properties(), l_get_velocity(), l_get_wield_index(), l_get_wield_list(), l_get_wielded_item(), l_is_valid(), l_move_to(), ModApiEnv::l_place_node(), l_punch(), ModApiEnv::l_punch_node(), l_remove(), l_right_click(), l_set_animation(), l_set_animation_frame_speed(), l_set_armor_groups(), l_set_attach(), l_set_bone_override(), l_set_bone_position(), l_set_detach(), l_set_hp(), l_set_nametag_attributes(), l_set_observers(), l_set_pos(), l_set_properties(), l_set_wielded_item(), read_server_sound_params(), and LuaParticleParams::readAttachmentID().
|
staticprivate |
References PlayerSAO::getPlayer(), and getplayersao().
Referenced by l_get_clouds(), l_get_day_night_ratio(), l_get_eye_offset(), l_get_formspec_prepend(), l_get_fov(), l_get_inventory_formspec(), l_get_lighting(), l_get_local_animation(), l_get_moon(), l_get_physics_override(), l_get_player_control(), l_get_player_control_bits(), l_get_player_name(), l_get_sky(), l_get_sky_color(), l_get_stars(), l_get_sun(), l_hud_add(), l_hud_change(), l_hud_get(), l_hud_get_all(), l_hud_get_flags(), l_hud_get_hotbar_image(), l_hud_get_hotbar_itemcount(), l_hud_get_hotbar_selected_image(), l_hud_remove(), l_hud_set_flags(), l_hud_set_hotbar_image(), l_hud_set_hotbar_itemcount(), l_hud_set_hotbar_selected_image(), l_is_player(), l_override_day_night_ratio(), l_send_mapblock(), l_set_clouds(), l_set_eye_offset(), l_set_formspec_prepend(), l_set_fov(), l_set_inventory_formspec(), l_set_lighting(), l_set_local_animation(), l_set_minimap_modes(), l_set_moon(), l_set_observers(), l_set_sky(), l_set_stars(), and l_set_sun().
References ACTIVEOBJECT_TYPE_PLAYER, getobject(), and ActiveObject::getType().
Referenced by getplayer(), l_get_attribute(), l_get_breath(), l_get_flags(), l_get_look_dir(), l_get_look_horizontal(), l_get_look_pitch(), l_get_look_vertical(), l_get_look_yaw(), l_get_meta(), l_respawn(), l_set_attribute(), l_set_breath(), l_set_flags(), l_set_look_horizontal(), l_set_look_pitch(), l_set_look_vertical(), l_set_look_yaw(), and l_set_physics_override().
|
staticprivate |
|
staticprivate |
References ServerActiveObject::addPos(), checkFloatPos(), ModApiBase::checkObject(), getobject(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ACTIVEOBJECT_TYPE_LUAENTITY, ACTIVEOBJECT_TYPE_PLAYER, LuaEntitySAO::addVelocity(), checkFloatPos(), ModApiBase::checkObject(), getobject(), PlayerSAO::getPeerID(), ModApiBase::getServer(), ActiveObject::getType(), NO_MAP_LOCK_REQUIRED, Server::SendPlayerSpeed(), and PlayerSAO::setMaxSpeedOverride().
|
staticprivate |
References ModApiBase::checkObject(), LuaEntitySAO::getAcceleration(), getluaobject(), NO_MAP_LOCK_REQUIRED, and pushFloatPos().
|
staticprivate |
References ModApiBase::checkObject(), ServerActiveObject::getAnimation(), getobject(), NO_MAP_LOCK_REQUIRED, and push_v2f().
|
staticprivate |
References ModApiBase::checkObject(), ServerActiveObject::getArmorGroups(), getobject(), NO_MAP_LOCK_REQUIRED, and push_groups().
|
staticprivate |
References ModApiBase::checkObject(), GET_ENV_PTR, ActiveObject::getAttachment(), getobject(), ModApiBase::getScriptApiBase(), ScriptApiBase::objectrefGetOrCreate(), and push_v3f().
|
staticprivate |
References ModApiBase::checkObject(), PlayerSAO::getMeta(), getplayersao(), IMetadata::getStringToRef(), and log_deprecated().
|
staticprivate |
References ModApiBase::checkObject(), ServerActiveObject::getBoneOverride(), getobject(), NO_MAP_LOCK_REQUIRED, push_bone_override(), and LuaHelper::readParam().
|
staticprivate |
References ModApiBase::checkObject(), ServerActiveObject::getBoneOverrides(), getobject(), NO_MAP_LOCK_REQUIRED, and push_bone_override().
|
staticprivate |
References ModApiBase::checkObject(), ServerActiveObject::getBoneOverride(), getobject(), log_deprecated(), BoneOverride::RotationProperty::next_radians, NO_MAP_LOCK_REQUIRED, BoneOverride::position, push_v3f(), LuaHelper::readParam(), BoneOverride::rotation, and BoneOverride::PositionProperty::vector.
|
staticprivate |
References ModApiBase::checkObject(), PlayerSAO::getBreath(), getplayersao(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), GET_ENV_PTR, ServerActiveObject::getAttachmentChildIds(), getobject(), ModApiBase::getScriptApiBase(), and ScriptApiBase::objectrefGetOrCreate().
|
staticprivate |
References ModApiBase::checkObject(), CloudParams::color_ambient, CloudParams::color_bright, CloudParams::color_shadow, CloudParams::density, RemotePlayer::getCloudParams(), getplayer(), CloudParams::height, NO_MAP_LOCK_REQUIRED, push_ARGB8(), CloudParams::speed, and CloudParams::thickness.
|
staticprivate |
References ModApiBase::checkObject(), RemotePlayer::getDayNightRatio(), getplayer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
|
staticprivate |
References ModApiBase::checkObject(), getluaobject(), LuaEntitySAO::getName(), log_deprecated(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), Player::eye_offset_first, Player::eye_offset_third, Player::eye_offset_third_front, getplayer(), NO_MAP_LOCK_REQUIRED, and push_v3f().
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), Player::formspec_prepend, getplayer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), Player::getFov(), getplayer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), ServerActiveObject::getHP(), getobject(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), InvRef::create(), ServerActiveObject::getInventoryLocation(), getobject(), ModApiBase::getServerInventoryMgr(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), Player::inventory_formspec, and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References Lighting::bloom_intensity, Lighting::bloom_radius, Lighting::bloom_strength_factor, AutoExposure::center_weight_power, ModApiBase::checkObject(), Lighting::exposure, AutoExposure::exposure_correction, RemotePlayer::getLighting(), getplayer(), AutoExposure::luminance_max, AutoExposure::luminance_min, NO_MAP_LOCK_REQUIRED, push_ARGB8(), Lighting::saturation, Lighting::shadow_intensity, Lighting::shadow_tint, AutoExposure::speed_bright_dark, AutoExposure::speed_dark_bright, and Lighting::volumetric_light_strength.
|
staticprivate |
References ModApiBase::checkObject(), RemotePlayer::getLocalAnimations(), getplayer(), NO_MAP_LOCK_REQUIRED, and push_v2f().
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), PlayerSAO::getRadLookPitchDep(), UnitSAO::getRadYawDep(), NO_MAP_LOCK_REQUIRED, and push_v3f().
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), UnitSAO::getRadRotation(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), PlayerSAO::getRadLookPitchDep(), log_deprecated(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), PlayerSAO::getRadLookPitch(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), UnitSAO::getRadYawDep(), log_deprecated(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), ActiveObject::getId(), getluaobject(), luaentity_get(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), PlayerMetaRef::create(), ModApiBase::getEnv(), Player::getName(), PlayerSAO::getPlayer(), getplayersao(), and ModApiBase::getServer().
|
staticprivate |
References ModApiBase::checkObject(), RemotePlayer::getMoonParams(), getplayer(), NO_MAP_LOCK_REQUIRED, MoonParams::scale, MoonParams::texture, MoonParams::tonemap, and MoonParams::visible.
|
staticprivate |
References ServerActiveObject::accessObjectProperties(), ModApiBase::checkObject(), getobject(), ObjectProperties::nametag, ObjectProperties::nametag_bgcolor, ObjectProperties::nametag_color, NO_MAP_LOCK_REQUIRED, and push_ARGB8().
|
staticprivate |
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), NO_MAP_LOCK_REQUIRED, and Player::physics_override.
|
staticprivate |
References PlayerControl::aux1, ModApiBase::checkObject(), PlayerControl::dig, PlayerControl::direction_keys, PlayerControl::getMovement(), getplayer(), Player::getPlayerControl(), PlayerControl::jump, NO_MAP_LOCK_REQUIRED, PlayerControl::place, PlayerControl::sneak, and PlayerControl::zoom.
|
staticprivate |
References ModApiBase::checkObject(), PlayerControl::direction_keys, getplayer(), Player::getPlayerControl(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), Player::getName(), getplayer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References BS, ModApiBase::checkObject(), ServerActiveObject::getBasePosition(), getobject(), NO_MAP_LOCK_REQUIRED, and push_v3f().
|
staticprivate |
References ServerActiveObject::accessObjectProperties(), ModApiBase::checkObject(), getobject(), NO_MAP_LOCK_REQUIRED, and push_object_properties().
|
staticprivate |
References ModApiBase::checkObject(), getluaobject(), UnitSAO::getRotation(), NO_MAP_LOCK_REQUIRED, and push_v3f().
|
staticprivate |
References SkyboxParams::bgcolor, SkyboxParams::body_orbit_tilt, ModApiBase::checkObject(), SkyboxParams::clouds, SkyboxParams::fog_distance, SkyboxParams::fog_start, getplayer(), RemotePlayer::getSkyParams(), SkyboxParams::INVALID_SKYBOX_TILT, log_deprecated(), NO_MAP_LOCK_REQUIRED, push_ARGB8(), push_sky_color(), LuaHelper::readParam(), SkyboxParams::textures, and SkyboxParams::type.
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), RemotePlayer::getSkyParams(), log_deprecated(), NO_MAP_LOCK_REQUIRED, and push_sky_color().
|
staticprivate |
References ModApiBase::checkObject(), StarParams::count, StarParams::day_opacity, getplayer(), RemotePlayer::getStarParams(), NO_MAP_LOCK_REQUIRED, push_ARGB8(), StarParams::scale, StarParams::starcolor, and StarParams::visible.
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), RemotePlayer::getSunParams(), NO_MAP_LOCK_REQUIRED, SunParams::scale, SunParams::sunrise, SunParams::sunrise_visible, SunParams::texture, SunParams::tonemap, and SunParams::visible.
|
staticprivate |
References ModApiBase::checkObject(), getluaobject(), LuaEntitySAO::getTextureMod(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ACTIVEOBJECT_TYPE_LUAENTITY, ACTIVEOBJECT_TYPE_PLAYER, BS, ModApiBase::checkObject(), getobject(), Player::getSpeed(), ActiveObject::getType(), LuaEntitySAO::getVelocity(), NO_MAP_LOCK_REQUIRED, push_v3f(), and pushFloatPos().
|
staticprivate |
References ModApiBase::checkObject(), getobject(), ServerActiveObject::getWieldIndex(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getobject(), ServerActiveObject::getWieldList(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), LuaItemStack::create(), getobject(), ServerActiveObject::getWieldedItem(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getluaobject(), UnitSAO::getRotation(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), ModApiBase::getServer(), Server::hudAdd(), NO_MAP_LOCK_REQUIRED, read_hud_element(), and U32_MAX.
|
staticprivate |
References ModApiBase::checkObject(), Player::getHud(), getplayer(), ModApiBase::getServer(), Server::hudChange(), NO_MAP_LOCK_REQUIRED, and read_hud_change().
|
staticprivate |
References ModApiBase::checkObject(), Player::getHud(), getplayer(), NO_MAP_LOCK_REQUIRED, and push_hud_element().
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), Player::hudApply(), NO_MAP_LOCK_REQUIRED, and push_hud_element().
|
staticprivate |
References ModApiBase::checkObject(), es_HudBuiltinElement, getplayer(), Player::hud_flags, NO_MAP_LOCK_REQUIRED, EnumString::num, and EnumString::str.
|
staticprivate |
References ModApiBase::checkObject(), RemotePlayer::getHotbarImage(), getplayer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), Player::getMaxHotbarItemcount(), getplayer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), RemotePlayer::getHotbarSelectedImage(), getplayer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), ModApiBase::getServer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), es_HudBuiltinElement, getboolfield(), getplayer(), ModApiBase::getServer(), NO_MAP_LOCK_REQUIRED, EnumString::num, and EnumString::str.
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), ModApiBase::getServer(), Server::hudSetHotbarImage(), NO_MAP_LOCK_REQUIRED, and LuaHelper::readParam().
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), ModApiBase::getServer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), ModApiBase::getServer(), Server::hudSetHotbarSelectedImage(), NO_MAP_LOCK_REQUIRED, and LuaHelper::readParam().
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
|
staticprivate |
References checkFloatPos(), ModApiBase::checkObject(), getobject(), ServerActiveObject::moveTo(), NO_MAP_LOCK_REQUIRED, and LuaHelper::readParam().
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), ModApiBase::getServer(), NO_MAP_LOCK_REQUIRED, Server::overrideDayNightRatio(), and LuaHelper::readParam().
|
staticprivate |
References ModApiBase::checkObject(), dir(), ServerActiveObject::getBasePosition(), getobject(), NO_MAP_LOCK_REQUIRED, ServerActiveObject::punch(), read_tool_capabilities(), and LuaHelper::readParam().
|
staticprivate |
References ACTIVEOBJECT_TYPE_PLAYER, ModApiBase::checkObject(), GET_ENV_PTR, ActiveObject::getId(), getobject(), ActiveObject::getType(), ServerActiveObject::markForRemoval(), and verbosestream.
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), getobject(), NO_MAP_LOCK_REQUIRED, and ServerActiveObject::rightClick().
|
staticprivate |
References ModApiBase::checkObject(), RemotePlayer::getPeerId(), getplayer(), ModApiBase::getServer(), NO_MAP_LOCK_REQUIRED, read_v3s16(), and Server::SendBlock().
|
staticprivate |
References checkFloatPos(), ModApiBase::checkObject(), getluaobject(), NO_MAP_LOCK_REQUIRED, and LuaEntitySAO::setAcceleration().
|
staticprivate |
References ModApiBase::checkObject(), getobject(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and ServerActiveObject::setAnimation().
|
staticprivate |
References ModApiBase::checkObject(), getobject(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and ServerActiveObject::setAnimationSpeed().
|
staticprivate |
References ACTIVEOBJECT_TYPE_PLAYER, ModApiBase::checkObject(), g_settings, Settings::getBool(), getobject(), ActiveObject::getType(), infostream, itemgroup_get(), NO_MAP_LOCK_REQUIRED, read_groups(), script_get_backtrace(), ServerActiveObject::setArmorGroups(), and warningstream.
|
staticprivate |
References ModApiBase::checkObject(), GET_ENV_PTR, ActiveObject::getId(), getobject(), LuaHelper::readParam(), and ActiveObject::setAttachment().
|
staticprivate |
References ModApiBase::checkObject(), PlayerSAO::getMeta(), getplayersao(), log_deprecated(), IMetadata::removeString(), and SimpleMetadata::setString().
|
staticprivate |
References check_v3f(), ModApiBase::checkObject(), getobject(), BoneOverride::RotationProperty::next, BoneOverride::RotationProperty::next_radians, NO_MAP_LOCK_REQUIRED, BoneOverride::position, LuaHelper::readParam(), BoneOverride::rotation, BoneOverride::scale, ServerActiveObject::setBoneOverride(), BoneOverride::PositionProperty::vector, and BoneOverride::ScaleProperty::vector.
|
staticprivate |
References BoneOverride::PositionProperty::absolute, BoneOverride::RotationProperty::absolute, check_v3f(), ModApiBase::checkObject(), getobject(), log_deprecated(), BoneOverride::RotationProperty::next, BoneOverride::RotationProperty::next_radians, NO_MAP_LOCK_REQUIRED, BoneOverride::position, LuaHelper::readParam(), BoneOverride::rotation, ServerActiveObject::setBoneOverride(), and BoneOverride::PositionProperty::vector.
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), NO_MAP_LOCK_REQUIRED, and PlayerSAO::setBreath().
|
staticprivate |
References ModApiBase::checkObject(), CloudParams::color_ambient, CloudParams::color_bright, CloudParams::color_shadow, CloudParams::density, SkyboxDefaults::getCloudDefaults(), RemotePlayer::getCloudParams(), getfloatfield_default(), getplayer(), ModApiBase::getServer(), CloudParams::height, NO_MAP_LOCK_REQUIRED, read_color(), Server::setClouds(), CloudParams::speed, and CloudParams::thickness.
|
staticprivate |
References ModApiBase::checkObject(), ActiveObject::clearParentAttachment(), GET_ENV_PTR, and getobject().
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), ModApiBase::getServer(), NO_MAP_LOCK_REQUIRED, rangelim, LuaHelper::readParam(), and Server::setPlayerEyeOffset().
|
staticprivate |
References ModApiBase::checkObject(), getboolfield_default(), getplayersao(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References ModApiBase::checkObject(), Player::formspec_prepend, Player::getName(), getplayer(), ModApiBase::getServer(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and Server::reportFormspecPrependModified().
|
staticprivate |
References ModApiBase::checkObject(), PlayerFovSpec::fov, RemotePlayer::getPeerId(), getplayer(), ModApiBase::getServer(), PlayerFovSpec::is_multiplier, NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), Server::SendPlayerFov(), Player::setFov(), and PlayerFovSpec::transition_time.
|
staticprivate |
References ModApiBase::checkObject(), errorstream, PlayerHPChangeReason::from_mod, getobject(), PlayerHPChangeReason::hasLuaReference(), PlayerHPChangeReason::lua_reference, NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), PlayerHPChangeReason::SET_HP, ServerActiveObject::setHP(), and PlayerHPChangeReason::setTypeFromString().
|
staticprivate |
References ModApiBase::checkObject(), Player::getName(), getplayer(), ModApiBase::getServer(), Player::inventory_formspec, NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and Server::reportInventoryFormspecModified().
|
staticprivate |
References Lighting::bloom_intensity, Lighting::bloom_radius, Lighting::bloom_strength_factor, AutoExposure::center_weight_power, ModApiBase::checkObject(), Lighting::exposure, AutoExposure::exposure_correction, getfloatfield(), getfloatfield_default(), RemotePlayer::getLighting(), getplayer(), ModApiBase::getServer(), AutoExposure::luminance_max, AutoExposure::luminance_min, NO_MAP_LOCK_REQUIRED, rangelim, read_color(), Lighting::saturation, Server::setLighting(), Lighting::shadow_intensity, Lighting::shadow_tint, AutoExposure::speed_bright_dark, AutoExposure::speed_dark_bright, and Lighting::volumetric_light_strength.
|
staticprivate |
References ModApiBase::checkObject(), getplayer(), ModApiBase::getServer(), NO_MAP_LOCK_REQUIRED, read_v2f(), LuaHelper::readParam(), and Server::setLocalPlayerAnimations().
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and PlayerSAO::setPlayerYawAndSend().
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), log_deprecated(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and PlayerSAO::setLookPitchAndSend().
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and PlayerSAO::setLookPitchAndSend().
|
staticprivate |
References ModApiBase::checkObject(), getplayersao(), log_deprecated(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and PlayerSAO::setPlayerYawAndSend().
|
staticprivate |
References ModApiBase::checkObject(), getintfield_default(), RemotePlayer::getPeerId(), getplayer(), ModApiBase::getServer(), getstringfield_default(), MinimapMode::label, MINIMAP_TYPE_OFF, MINIMAP_TYPE_RADAR, MINIMAP_TYPE_SURFACE, MINIMAP_TYPE_TEXTURE, NO_MAP_LOCK_REQUIRED, rangelim, LuaHelper::readParam(), MinimapMode::scale, Server::SendMinimapModes(), MinimapMode::size, MinimapMode::texture, MinimapMode::type, and warningstream.
|
staticprivate |
References ModApiBase::checkObject(), getboolfield_default(), getfloatfield_default(), SkyboxDefaults::getMoonDefaults(), RemotePlayer::getMoonParams(), getplayer(), ModApiBase::getServer(), getstringfield_default(), NO_MAP_LOCK_REQUIRED, MoonParams::scale, Server::setMoon(), MoonParams::texture, MoonParams::tonemap, and MoonParams::visible.
|
staticprivate |
References ServerActiveObject::accessObjectProperties(), ModApiBase::checkObject(), getobject(), getstringfield_default(), ObjectProperties::nametag, ObjectProperties::nametag_bgcolor, ObjectProperties::nametag_color, NO_MAP_LOCK_REQUIRED, ServerActiveObject::notifyObjectPropertiesModified(), read_color(), and ObjectProperties::validate().
|
staticprivate |
References ModApiBase::checkObject(), GET_ENV_PTR, Player::getName(), getobject(), getplayer(), is_valid_player_name(), ServerActiveObject::m_observers, and LuaHelper::readParam().
|
staticprivate |
References ModApiBase::checkObject(), getboolfield(), getfloatfield(), PlayerSAO::getPlayer(), getplayersao(), PlayerSAO::m_physics_override_sent, NO_MAP_LOCK_REQUIRED, and Player::physics_override.
|
staticprivate |
References checkFloatPos(), ModApiBase::checkObject(), getobject(), NO_MAP_LOCK_REQUIRED, and ServerActiveObject::setPos().
|
staticprivate |
References ServerActiveObject::accessObjectProperties(), ModApiBase::checkObject(), getobject(), ModApiBase::getServer(), NO_MAP_LOCK_REQUIRED, ServerActiveObject::notifyObjectPropertiesModified(), and read_object_properties().
|
staticprivate |
References check_v3f(), ModApiBase::checkObject(), getluaobject(), NO_MAP_LOCK_REQUIRED, and UnitSAO::setRotation().
|
staticprivate |
References SkyboxParams::bgcolor, SkyboxParams::body_orbit_tilt, ModApiBase::checkObject(), SkyboxParams::clouds, SkyColor::dawn_horizon, SkyColor::dawn_sky, SkyColor::day_horizon, SkyColor::day_sky, SkyboxParams::fog_color, SkyboxParams::fog_distance, SkyboxParams::fog_moon_tint, SkyboxParams::fog_start, SkyboxParams::fog_sun_tint, SkyboxParams::fog_tint_type, getboolfield_default(), getfloatfield_default(), getintfield_default(), RemotePlayer::getMoonParams(), getplayer(), ModApiBase::getServer(), SkyboxDefaults::getSkyDefaults(), RemotePlayer::getSkyParams(), RemotePlayer::getStarParams(), RemotePlayer::getSunParams(), SkyColor::indoors, is_color_table(), log_deprecated(), SkyColor::night_horizon, SkyColor::night_sky, NO_MAP_LOCK_REQUIRED, rangelim, read_color(), LuaHelper::readParam(), Server::setMoon(), Server::setSky(), Server::setStars(), Server::setSun(), SkyboxParams::sky_color, SunParams::sunrise_visible, SkyboxParams::textures, SkyboxParams::type, MoonParams::visible, StarParams::visible, and SunParams::visible.
|
staticprivate |
References ModApiBase::checkObject(), getluaobject(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and LuaEntitySAO::setSprite().
|
staticprivate |
References ModApiBase::checkObject(), StarParams::count, StarParams::day_opacity, getboolfield_default(), getfloatfield_default(), getintfield_default(), getplayer(), ModApiBase::getServer(), SkyboxDefaults::getStarDefaults(), RemotePlayer::getStarParams(), NO_MAP_LOCK_REQUIRED, read_color(), StarParams::scale, Server::setStars(), StarParams::starcolor, and StarParams::visible.
|
staticprivate |
References ModApiBase::checkObject(), getboolfield_default(), getfloatfield_default(), getplayer(), ModApiBase::getServer(), getstringfield_default(), SkyboxDefaults::getSunDefaults(), RemotePlayer::getSunParams(), NO_MAP_LOCK_REQUIRED, SunParams::scale, Server::setSun(), SunParams::sunrise, SunParams::sunrise_visible, SunParams::texture, SunParams::tonemap, and SunParams::visible.
|
staticprivate |
References ModApiBase::checkObject(), getluaobject(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and LuaEntitySAO::setTextureMod().
|
staticprivate |
References checkFloatPos(), ModApiBase::checkObject(), getluaobject(), NO_MAP_LOCK_REQUIRED, and LuaEntitySAO::setVelocity().
|
staticprivate |
References ACTIVEOBJECT_TYPE_PLAYER, ModApiBase::checkObject(), getobject(), ModApiBase::getServer(), ActiveObject::getType(), NO_MAP_LOCK_REQUIRED, read_item(), Server::SendInventory(), and ServerActiveObject::setWieldedItem().
|
staticprivate |
References ModApiBase::checkObject(), getluaobject(), NO_MAP_LOCK_REQUIRED, LuaHelper::readParam(), and UnitSAO::setRotation().
|
static |
References className, gc_object(), methods, and ModApiBase::registerClass().
Referenced by ServerScripting::InitializeModApi().
|
static |
References ModApiBase::checkObject(), FATAL_ERROR_IF, and m_object.
Referenced by ScriptApiBase::removeObjectReference().
|
static |
Referenced by create(), and Register().
|
private |
Referenced by getobject(), and set_null().
|
staticprivate |
Referenced by Register().