mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-13 04:33:52 +00:00
BlockFadeEvent
This commit is contained in:
parent
29eeeb8d86
commit
e91e5be732
12 changed files with 162 additions and 1 deletions
|
|
@ -99,6 +99,7 @@ typedef int(__stdcall *fn_fire_block_grow)(int dimId, int x, int y, int z, int n
|
|||
typedef int(__stdcall *fn_fire_block_form)(int dimId, int x, int y, int z, int newTileId, int newTileData);
|
||||
typedef int(__stdcall *fn_fire_block_burn)(int dimId, int x, int y, int z);
|
||||
typedef int(__stdcall *fn_fire_block_spread)(int dimId, int x, int y, int z, int srcX, int srcY, int srcZ, int newTileId, int newTileData);
|
||||
typedef int(__stdcall *fn_fire_block_fade)(int dimId, int x, int y, int z, int newTileId, int newTileData);
|
||||
typedef int(__stdcall *fn_fire_piston_extend)(int dimId, int x, int y, int z, int direction, int length);
|
||||
typedef int(__stdcall *fn_fire_piston_retract)(int dimId, int x, int y, int z, int direction);
|
||||
typedef int(__stdcall *fn_fire_command_preprocess)(int entityId, const char *cmdUtf8, int cmdByteLen, char *outBuf, int outBufSize, int *outLen);
|
||||
|
|
@ -161,6 +162,7 @@ static fn_fire_block_grow s_managedFireBlockGrow = nullptr;
|
|||
static fn_fire_block_form s_managedFireBlockForm = nullptr;
|
||||
static fn_fire_block_burn s_managedFireBlockBurn = nullptr;
|
||||
static fn_fire_block_spread s_managedFireBlockSpread = nullptr;
|
||||
static fn_fire_block_fade s_managedFireBlockFade = nullptr;
|
||||
static fn_fire_piston_extend s_managedFirePistonExtend = nullptr;
|
||||
static fn_fire_piston_retract s_managedFirePistonRetract = nullptr;
|
||||
static fn_fire_command_preprocess s_managedFireCommandPreprocess = nullptr;
|
||||
|
|
@ -244,6 +246,7 @@ void Initialize()
|
|||
{L"FireBlockForm", (void **)&s_managedFireBlockForm},
|
||||
{L"FireBlockBurn", (void **)&s_managedFireBlockBurn},
|
||||
{L"FireBlockSpread", (void **)&s_managedFireBlockSpread},
|
||||
{L"FireBlockFade", (void **)&s_managedFireBlockFade},
|
||||
{L"FirePistonExtend", (void **)&s_managedFirePistonExtend},
|
||||
{L"FirePistonRetract", (void **)&s_managedFirePistonRetract},
|
||||
{L"FireCommandPreprocess", (void **)&s_managedFireCommandPreprocess},
|
||||
|
|
@ -1064,4 +1067,11 @@ bool FireChunkUnload(int dimId, int chunkX, int chunkZ)
|
|||
return false;
|
||||
return s_managedFireChunkUnload(dimId, chunkX, chunkZ) != 0;
|
||||
}
|
||||
|
||||
bool FireBlockFade(int dimId, int x, int y, int z, int newTileId, int newTileData)
|
||||
{
|
||||
if (!s_initialized || !s_managedFireBlockFade)
|
||||
return false;
|
||||
return s_managedFireBlockFade(dimId, x, y, z, newTileId, newTileData) != 0;
|
||||
}
|
||||
} // namespace FourKitBridge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue