Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions
ManualBindings_World.cpp File Reference
#include "Globals.h"
#include "tolua++/include/tolua++.h"
#include "../World.h"
#include "../UUID.h"
#include "ManualBindings.h"
#include "LuaState.h"
#include "PluginLua.h"
#include "LuaChunkStay.h"
#include "BlockEntities/BeaconEntity.h"
#include "BlockEntities/BedEntity.h"
#include "BlockEntities/BrewingstandEntity.h"
#include "BlockEntities/ChestEntity.h"
#include "BlockEntities/CommandBlockEntity.h"
#include "BlockEntities/DispenserEntity.h"
#include "BlockEntities/DropSpenserEntity.h"
#include "BlockEntities/DropperEntity.h"
#include "BlockEntities/FlowerPotEntity.h"
#include "BlockEntities/FurnaceEntity.h"
#include "BlockEntities/HopperEntity.h"
#include "BlockEntities/MobHeadEntity.h"
#include "BlockEntities/NoteEntity.h"
Include dependency graph for ManualBindings_World.cpp:

Go to the source code of this file.

Functions

static bool CheckParamVectorOr3Numbers (cLuaState &L, const char *a_VectorName, int a_Index, int &a_NextIndex)
 Check that a Lua parameter is either a vector or 3 numbers in sequence. More...
 
template<class BlockEntityType , BLOCKTYPE... BlockTypes>
static int DoWithBlockEntityAt (lua_State *tolua_S)
 Template for the bindings for the DoWithXYZAt(X, Y, Z) functions that don't need to check their coords. More...
 
template<class BlockEntityType , BLOCKTYPE... BlockTypes>
static int ForEachBlockEntityInChunk (lua_State *tolua_S)
 
template<class Ty1 , class Ty2 , bool(Ty1::*)(const cBoundingBox &, cFunctionRef< bool(Ty2 &)>) ForEachFn>
static int ForEachInBox (lua_State *tolua_S)
 
template<typename T >
static bool GetStackVectorOr3Numbers (cLuaState &L, int a_Index, Vector3< T > &a_Return)
 Get a vector from the stack, which may be represented in lua as either a Vector3<T> or 3 numbers. More...
 
static int tolua_cWorld_BroadcastBlockAction (lua_State *tolua_S)
 
static int tolua_cWorld_BroadcastParticleEffect (lua_State *tolua_S)
 
static int tolua_cWorld_BroadcastSoundEffect (lua_State *tolua_S)
 
static int tolua_cWorld_BroadcastSoundParticleEffect (lua_State *tolua_S)
 
static int tolua_cWorld_ChunkStay (lua_State *tolua_S)
 
static int tolua_cWorld_DoExplosionAt (lua_State *tolua_S)
 
static int tolua_cWorld_DoWithNearestPlayer (lua_State *tolua_S)
 
static int tolua_cWorld_DoWithPlayerByUUID (lua_State *tolua_S)
 
static int tolua_cWorld_FastSetBlock (lua_State *tolua_S)
 
static int tolua_cWorld_ForEachEntityInChunk (lua_State *tolua_S)
 
static int tolua_cWorld_ForEachLoadedChunk (lua_State *tolua_S)
 
static int tolua_cWorld_GetBlock (lua_State *tolua_S)
 
static int tolua_cWorld_GetBlockBlockLight (lua_State *tolua_S)
 
static int tolua_cWorld_GetBlockInfo (lua_State *tolua_S)
 
static int tolua_cWorld_GetBlockMeta (lua_State *tolua_S)
 
static int tolua_cWorld_GetBlockSkyLight (lua_State *tolua_S)
 
static int tolua_cWorld_GetBlockTypeMeta (lua_State *tolua_S)
 
static int tolua_cWorld_GetSignLines (lua_State *tolua_S)
 
static int tolua_cWorld_GetTimeOfDay (lua_State *tolua_S)
 
static int tolua_cWorld_GetWorldAge (lua_State *tolua_S)
 
static int tolua_cWorld_PrepareChunk (lua_State *tolua_S)
 
static int tolua_cWorld_QueueTask (lua_State *tolua_S)
 
static int tolua_cWorld_ScheduleTask (lua_State *tolua_S)
 
static int tolua_cWorld_SetBlock (lua_State *tolua_S)
 
static int tolua_cWorld_SetBlockMeta (lua_State *tolua_S)
 
static int tolua_cWorld_SetSignLines (lua_State *tolua_S)
 
static int tolua_cWorld_SetTimeOfDay (lua_State *tolua_S)
 
static int tolua_cWorld_SpawnSplitExperienceOrbs (lua_State *tolua_S)
 
static int tolua_cWorld_TryGetHeight (lua_State *tolua_S)
 

Function Documentation

◆ CheckParamVectorOr3Numbers()

static bool CheckParamVectorOr3Numbers ( cLuaState L,
const char *  a_VectorName,
int  a_Index,
int &  a_NextIndex 
)
static

Check that a Lua parameter is either a vector or 3 numbers in sequence.

Parameters
LThe Lua state
a_VectorNamename of the vector class e.g. "Vector3<int>"
a_IndexIndex to the start of the vector in the parameter list
[out]a_NextIndexIndex of the next parameter after the vector
Return values
trueif the parameter is a vector or 3 numbers

Definition at line 39 of file ManualBindings_World.cpp.

◆ DoWithBlockEntityAt()

template<class BlockEntityType , BLOCKTYPE... BlockTypes>
static int DoWithBlockEntityAt ( lua_State *  tolua_S)
static

Template for the bindings for the DoWithXYZAt(X, Y, Z) functions that don't need to check their coords.

Definition at line 72 of file ManualBindings_World.cpp.

◆ ForEachBlockEntityInChunk()

template<class BlockEntityType , BLOCKTYPE... BlockTypes>
static int ForEachBlockEntityInChunk ( lua_State *  tolua_S)
static

Definition at line 193 of file ManualBindings_World.cpp.

◆ ForEachInBox()

template<class Ty1 , class Ty2 , bool(Ty1::*)(const cBoundingBox &, cFunctionRef< bool(Ty2 &)>) ForEachFn>
static int ForEachInBox ( lua_State *  tolua_S)
static

Definition at line 141 of file ManualBindings_World.cpp.

◆ GetStackVectorOr3Numbers()

template<typename T >
static bool GetStackVectorOr3Numbers ( cLuaState L,
int  a_Index,
Vector3< T > &  a_Return 
)
static

Get a vector from the stack, which may be represented in lua as either a Vector3<T> or 3 numbers.

Definition at line 57 of file ManualBindings_World.cpp.

◆ tolua_cWorld_BroadcastBlockAction()

static int tolua_cWorld_BroadcastBlockAction ( lua_State *  tolua_S)
static

Definition at line 247 of file ManualBindings_World.cpp.

◆ tolua_cWorld_BroadcastParticleEffect()

static int tolua_cWorld_BroadcastParticleEffect ( lua_State *  tolua_S)
static

Definition at line 403 of file ManualBindings_World.cpp.

◆ tolua_cWorld_BroadcastSoundEffect()

static int tolua_cWorld_BroadcastSoundEffect ( lua_State *  tolua_S)
static

Definition at line 299 of file ManualBindings_World.cpp.

◆ tolua_cWorld_BroadcastSoundParticleEffect()

static int tolua_cWorld_BroadcastSoundParticleEffect ( lua_State *  tolua_S)
static

Definition at line 351 of file ManualBindings_World.cpp.

◆ tolua_cWorld_ChunkStay()

static int tolua_cWorld_ChunkStay ( lua_State *  tolua_S)
static

Definition at line 467 of file ManualBindings_World.cpp.

◆ tolua_cWorld_DoExplosionAt()

static int tolua_cWorld_DoExplosionAt ( lua_State *  tolua_S)
static

Definition at line 519 of file ManualBindings_World.cpp.

◆ tolua_cWorld_DoWithNearestPlayer()

static int tolua_cWorld_DoWithNearestPlayer ( lua_State *  tolua_S)
static

Definition at line 658 of file ManualBindings_World.cpp.

◆ tolua_cWorld_DoWithPlayerByUUID()

static int tolua_cWorld_DoWithPlayerByUUID ( lua_State *  tolua_S)
static

Definition at line 611 of file ManualBindings_World.cpp.

◆ tolua_cWorld_FastSetBlock()

static int tolua_cWorld_FastSetBlock ( lua_State *  tolua_S)
static

Definition at line 704 of file ManualBindings_World.cpp.

◆ tolua_cWorld_ForEachEntityInChunk()

static int tolua_cWorld_ForEachEntityInChunk ( lua_State *  tolua_S)
static

Definition at line 763 of file ManualBindings_World.cpp.

◆ tolua_cWorld_ForEachLoadedChunk()

static int tolua_cWorld_ForEachLoadedChunk ( lua_State *  tolua_S)
static

Definition at line 810 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetBlock()

static int tolua_cWorld_GetBlock ( lua_State *  tolua_S)
static

Definition at line 864 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetBlockBlockLight()

static int tolua_cWorld_GetBlockBlockLight ( lua_State *  tolua_S)
static

Definition at line 920 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetBlockInfo()

static int tolua_cWorld_GetBlockInfo ( lua_State *  tolua_S)
static

Definition at line 975 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetBlockMeta()

static int tolua_cWorld_GetBlockMeta ( lua_State *  tolua_S)
static

Definition at line 1044 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetBlockSkyLight()

static int tolua_cWorld_GetBlockSkyLight ( lua_State *  tolua_S)
static

Definition at line 1100 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetBlockTypeMeta()

static int tolua_cWorld_GetBlockTypeMeta ( lua_State *  tolua_S)
static

Definition at line 1155 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetSignLines()

static int tolua_cWorld_GetSignLines ( lua_State *  tolua_S)
static

Definition at line 1225 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetTimeOfDay()

static int tolua_cWorld_GetTimeOfDay ( lua_State *  tolua_S)
static

Definition at line 1269 of file ManualBindings_World.cpp.

◆ tolua_cWorld_GetWorldAge()

static int tolua_cWorld_GetWorldAge ( lua_State *  tolua_S)
static

Definition at line 1301 of file ManualBindings_World.cpp.

◆ tolua_cWorld_PrepareChunk()

static int tolua_cWorld_PrepareChunk ( lua_State *  tolua_S)
static

Definition at line 1333 of file ManualBindings_World.cpp.

◆ tolua_cWorld_QueueTask()

static int tolua_cWorld_QueueTask ( lua_State *  tolua_S)
static

Definition at line 1386 of file ManualBindings_World.cpp.

◆ tolua_cWorld_ScheduleTask()

static int tolua_cWorld_ScheduleTask ( lua_State *  tolua_S)
static

Definition at line 1615 of file ManualBindings_World.cpp.

◆ tolua_cWorld_SetBlock()

static int tolua_cWorld_SetBlock ( lua_State *  tolua_S)
static

Definition at line 1427 of file ManualBindings_World.cpp.

◆ tolua_cWorld_SetBlockMeta()

static int tolua_cWorld_SetBlockMeta ( lua_State *  tolua_S)
static

Definition at line 1486 of file ManualBindings_World.cpp.

◆ tolua_cWorld_SetSignLines()

static int tolua_cWorld_SetSignLines ( lua_State *  tolua_S)
static

Definition at line 1544 of file ManualBindings_World.cpp.

◆ tolua_cWorld_SetTimeOfDay()

static int tolua_cWorld_SetTimeOfDay ( lua_State *  tolua_S)
static

Definition at line 1584 of file ManualBindings_World.cpp.

◆ tolua_cWorld_SpawnSplitExperienceOrbs()

static int tolua_cWorld_SpawnSplitExperienceOrbs ( lua_State *  tolua_S)
static

Definition at line 1658 of file ManualBindings_World.cpp.

◆ tolua_cWorld_TryGetHeight()

static int tolua_cWorld_TryGetHeight ( lua_State *  tolua_S)
static

Definition at line 1690 of file ManualBindings_World.cpp.