From 6bdd130aab51b630918ed664c4389cf33bcb2e06 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 29 Jul 2020 19:30:38 +0100 Subject: OnBroken/OnPlaced are for entity actions * Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors --- src/ChunkMap.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/ChunkMap.h') diff --git a/src/ChunkMap.h b/src/ChunkMap.h index 685651728..c6fb6dc18 100644 --- a/src/ChunkMap.h +++ b/src/ChunkMap.h @@ -132,11 +132,6 @@ public: If the chunk is invalid, the operation is ignored silently. */ void FastSetBlock(Vector3i a_BlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); - /** Performs the specified single-block set operations simultaneously, as if SetBlock() was called for each item. - Is more efficient than calling SetBlock() multiple times. - If the chunk for any of the blocks is not loaded, the set operation is ignored silently. */ - void SetBlocks(const sSetBlockVector & a_Blocks); - /** Makes the specified player collect all the pickups around them. */ void CollectPickupsByPlayer(cPlayer & a_Player); @@ -155,9 +150,6 @@ public: bool GetBlockTypeMeta (Vector3i a_BlockPos, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta); bool GetBlockInfo (Vector3i, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight); - /** Replaces world blocks with a_Blocks, if they are of type a_FilterBlockType */ - void ReplaceBlocks(const sSetBlockVector & a_Blocks, BLOCKTYPE a_FilterBlockType); - /** Special function used for growing trees, replaces only blocks that tree may overwrite */ void ReplaceTreeBlocks(const sSetBlockVector & a_Blocks); -- cgit v1.2.3