24 const std::vector<content_t> &filter,
int start_radius, F &&getNode);
31 const std::vector<content_t> &filter,
bool grouped, F &&iterate);
36 const std::vector<content_t> &filter, F &&getNode);
229 static void Initialize(lua_State *L,
int top);
278 static const luaL_Reg
methods[];
291 static int l_next(lua_State *L);
295 const core::line3d<f32> &shootline,
296 bool objects_pointable,
297 bool liquids_pointable,
298 const std::optional<Pointabilities> &pointabilities) :
299 state(shootline, objects_pointable, liquids_pointable, pointabilities)
Lua wrapper for RaycastState objects.
Definition l_env.h:276
LuaRaycast(const core::line3d< f32 > &shootline, bool objects_pointable, bool liquids_pointable, const std::optional< Pointabilities > &pointabilities)
Constructor with the same arguments as RaycastState.
Definition l_env.h:294
static int l_next(lua_State *L)
Definition l_env.cpp:53
static const char className[]
Definition l_env.h:308
static const luaL_Reg methods[]
Definition l_env.h:133
static int gc_object(lua_State *L)
Definition l_env.cpp:113
RaycastState state
Inner state.
Definition l_env.h:280
static int create_object(lua_State *L)
Creates a LuaRaycast and leaves it on top of the stack.
Definition l_env.cpp:84
static int findNodesInArea(lua_State *L, const NodeDefManager *ndef, const std::vector< content_t > &filter, bool grouped, F &&iterate)
Definition l_env.cpp:863
static const EnumString es_ClearObjectsMode[]
Definition l_env.h:35
static void collectNodeIds(lua_State *L, int idx, const NodeDefManager *ndef, std::vector< content_t > &filter)
Definition l_env.cpp:784
static void checkArea(v3s16 &minp, v3s16 &maxp)
Definition l_env.cpp:847
static int findNodeNear(lua_State *L, v3s16 pos, int radius, const std::vector< content_t > &filter, int start_radius, F &&getNode)
Definition l_env.cpp:802
static int findNodesInAreaUnderAir(lua_State *L, v3s16 minp, v3s16 maxp, const std::vector< content_t > &filter, F &&getNode)
Definition l_env.cpp:968
static const EnumString es_BlockStatusType[]
Definition l_env.h:42
static int l_get_node_or_nil(lua_State *L)
Definition l_env.cpp:1458
static int l_spawn_tree(lua_State *L)
Definition l_env.cpp:1603
static void InitializeEmerge(lua_State *L, int top)
Definition l_env.cpp:1636
static int l_add_node_level(lua_State *L)
Definition l_env.cpp:1508
static int l_find_node_near(lua_State *L)
Definition l_env.cpp:1523
static int l_find_nodes_in_area(lua_State *L)
Definition l_env.cpp:1542
static int l_get_node_max_level(lua_State *L)
Definition l_env.cpp:1471
static int l_set_node_level(lua_State *L)
Definition l_env.cpp:1493
static int l_find_nodes_in_area_under_air(lua_State *L)
Definition l_env.cpp:1582
static MMVManip * getVManip(lua_State *L)
Definition l_env.cpp:1628
static int l_get_node_level(lua_State *L)
Definition l_env.cpp:1482
static int l_bulk_set_node(lua_State *L)
Definition l_env.cpp:177
static int l_forceload_block(lua_State *L)
Definition l_env.cpp:1333
static int l_find_nodes_in_area_under_air(lua_State *L)
Definition l_env.cpp:994
static int l_fix_light(lua_State *L)
Definition l_env.cpp:1118
static int l_raycast(lua_State *L)
Definition l_env.cpp:1145
static int l_set_timeofday(lua_State *L)
Definition l_env.cpp:740
static int l_get_translated_string(lua_State *L)
Definition l_env.cpp:1372
static int l_swap_node(lua_State *L)
Definition l_env.cpp:228
static int l_add_node(lua_State *L)
Definition l_env.cpp:207
static int l_get_voxel_manip(lua_State *L)
Definition l_env.cpp:1074
static int l_find_nodes_with_meta(lua_State *L)
Definition l_env.cpp:555
static int l_get_node_max_level(lua_State *L)
Definition l_env.cpp:464
static int l_spawn_tree(lua_State *L)
Definition l_env.cpp:1295
static int l_bulk_swap_node(lua_State *L)
Definition l_env.cpp:243
static int l_get_node_level(lua_State *L)
Definition l_env.cpp:476
static int l_emerge_area(lua_State *L)
Definition l_env.cpp:1176
static int l_get_objects_inside_radius(lua_State *L)
Definition l_env.cpp:690
static int l_get_node_light(lua_State *L)
Definition l_env.cpp:291
static int l_get_connected_players(lua_State *L)
Definition l_env.cpp:649
static int l_forceload_free_block(lua_State *L)
Definition l_env.cpp:1362
static int l_set_node(lua_State *L)
Definition l_env.cpp:162
static int l_get_player_by_name(lua_State *L)
Definition l_env.cpp:672
static int l_load_area(lua_State *L)
Definition l_env.cpp:1152
static int l_get_timeofday(lua_State *L)
Definition l_env.cpp:758
static int l_get_gametime(lua_State *L)
Definition l_env.cpp:776
static int l_find_nodes_in_area(lua_State *L)
Definition l_env.cpp:936
static int l_set_node_level(lua_State *L)
Definition l_env.cpp:489
static int l_get_node_raw(lua_State *L)
Definition l_env.cpp:267
static int l_line_of_sight(lua_State *L)
Definition l_env.cpp:1097
static int l_find_node_near(lua_State *L)
Definition l_env.cpp:821
static void Initialize(lua_State *L, int top)
Definition l_env.cpp:1384
static int l_get_perlin(lua_State *L)
Definition l_env.cpp:1029
static int l_add_entity(lua_State *L)
Definition l_env.cpp:595
static int l_get_meta(lua_State *L)
Definition l_env.cpp:572
static int l_get_node_timer(lua_State *L)
Definition l_env.cpp:583
static int l_clear_objects(lua_State *L)
Definition l_env.cpp:1082
static int l_add_node_level(lua_State *L)
Definition l_env.cpp:506
static int l_get_day_count(lua_State *L)
Definition l_env.cpp:767
static int l_punch_node(lua_State *L)
Definition l_env.cpp:431
static int l_add_item(lua_State *L)
Definition l_env.cpp:620
static int l_get_natural_light(lua_State *L)
Definition l_env.cpp:318
static int l_get_node_boxes(lua_State *L)
Definition l_env.cpp:524
static int l_dig_node(lua_State *L)
Definition l_env.cpp:399
static int l_transforming_liquid_add(lua_State *L)
Definition l_env.cpp:1322
static int l_get_objects_in_area(lua_State *L)
Definition l_env.cpp:714
static void InitializeClient(lua_State *L, int top)
Definition l_env.cpp:1438
static int l_find_path(lua_State *L)
Definition l_env.cpp:1255
static int l_compare_block_status(lua_State *L)
Definition l_env.cpp:1343
static int l_delete_area(lua_State *L)
Definition l_env.cpp:1222
static int l_place_node(lua_State *L)
Definition l_env.cpp:356
static int l_remove_node(lua_State *L)
Definition l_env.cpp:214
static int l_get_perlin_map(lua_State *L)
Definition l_env.cpp:1055
This class is for getting the actual properties of nodes from their content ID.
Definition nodedef.h:541
Describes the state of a raycast.
Definition raycast.h:18
Definition scripting_server.h:33
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
#define idx(x, y)
Definition noise.cpp:490
int args_ref
Definition l_env.h:314
std::string origin
Definition l_env.h:316
ServerScripting * script
Definition l_env.h:312
int callback_ref
Definition l_env.h:313
unsigned int refcount
Definition l_env.h:315