summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-01-03More blocks that can't be mined with silktouchMathias1-1/+28
2015-12-13blockheight mechanismGargaj1-0/+10
2015-11-07Implemented the slime block dropping behaviour.bibo381-0/+2
Fixes #2530
2015-08-19* Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.Samuel Barney1-0/+2
* Blocks now have an effect upon plant growth, just like in vanilla.
2015-07-14Improved mapsTiger Wang1-5/+15
2015-07-01Added neighbor specification in the OnNeighborChanged() block callback.Mattes D1-15/+15
Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields. Fixes #2213.
2015-06-22Rebased version of CodeSamuel Barney1-9/+0
2015-06-19Externalized cPrefabPiecePool self-test.Mattes D1-0/+1
2015-04-29Clay blocks are handled with the OreHandlerjammet1-0/+1
2015-04-16Fixed PolishedGranite et al crafting recipes.Mattes D1-1/+1
Fixes #1774. Ref.: #1859
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-1/+1
Fixes #1618.
2014-12-01Added cocoa pod.Howaner1-0/+2
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-4/+4
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-4/+4
2014-10-15Functions in cPluginManager get references instead of pointers.Mattes D1-1/+1
2014-10-07Removed unused cBlockHayBaleHandler.Howaner1-2/+1
2014-09-27Added default value to switch and spruce gate to fence gate handlerMasy981-0/+1
2014-09-26Removed more unessicary includesTycho1-2/+2
2014-09-17Fixed minor style issues.madmaxoft1-1/+1
2014-09-13Improved cBlockHandler::DropBlockTiger Wang1-40/+28
2014-09-12Added Sea Lantern dropsMasy981-0/+2
2014-09-12Spawn exp if you break a mob spawner.Howaner1-0/+2
2014-09-11Fixed incorrect handlersMasy981-3/+3
2014-09-10Added new blocks to the BlockInfoMasy981-0/+1
2014-09-10Added new blocks to the BlockHandlerMasy981-0/+12
2014-09-09Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy981-9/+0
2014-08-30Added a_Digger checkJaume Aloy1-28/+31
2014-08-22More EnchantmentsJaume Aloy1-1/+0
- Added Thorns and Respiration enchantments
2014-08-21Protection Enchantments, some fixesJaume Aloy1-7/+8
- Protection echantments (fire, blast, feather falling, protection and projectile). It isn't finished, add secondary effects and optimize the code. - Removed some brackets. - Silk touch fixed.
2014-08-19Code formatting fixes.Howaner1-4/+2
2014-08-19Changed if in BlockHandlerJaume Aloy1-5/+2
2014-08-19FixesJaume Aloy1-35/+35
- Changed m_TicksLeftBurning > 0 for IsOnFire() - Tried to do the changes in BlockHandler.cpp - Removed m_Creator in ArrowEntity - Added m_Enchantments in ProjectileEntity CreatorData - Added blank lines between functions
2014-08-19Changed if for switchJaume Aloy1-11/+22
2014-08-19Added more enchantments and some fixesJaume Aloy1-4/+28
- Removed Debug messages - Added Punch enchantment effect - Added Silk Touch enchantment - Added Unbreaking enchantment effect
2014-07-30Added beacon.Howaner1-0/+1
2014-07-24Fixed block dropsTiger Wang1-8/+11
* Fixes #1242 (the issue addressed within)
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-2/+2
2014-07-18Added a extra wall sign handler.Howaner1-3/+4
Fixes #1119
2014-07-17Fixed issues relating to saplings and leavesTiger Wang1-35/+11
- Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
2014-07-17Basic style fixes.madmaxoft1-2/+2
2014-07-14Fixed some meta resetting bugsTiger Wang1-1/+1
* Fixes #1174 * Fixes #1171
2014-07-12Suggestions and bug fixTiger Wang1-7/+5
* Fixed hoppers pushing/pulling to/from (trapped)chests that do not form a double-chest with the chest type directly connected to said hopper; thank you, @madmaxoft
2014-07-11SuggestionsTiger Wang1-1/+2
2014-07-11SuggestionsTiger Wang1-5/+6
2014-07-07Implemented trapped chests & othersTiger Wang1-0/+1
+ Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
2014-06-28Implemented tripwire(s) (hooks)Tiger Wang1-0/+4
* Fixes #944
2014-06-23Added a (disabled) block meta mirror / rotate test code.madmaxoft1-2/+87
This will perform basic sanity checks on block metadata mirroring and rotating. cMetaRotator must disable its asserts in order for this to work.
2014-06-17Add pressure plate handlerHowaner1-0/+5
2014-06-16Glass shouldn't drop.Howaner1-0/+3
2014-05-28Fix hay place sound.Howaner1-1/+2
2014-05-07Rename CanChangeDirtToGrass to CanDirtGrowGrassHowaner1-2/+2
2014-04-06Add CanChangeDirtToGrass function to Block Handlers.Howaner1-0/+9
2014-03-28Add tall flower handler.Howaner1-0/+2
2014-03-23Implemented lilypad placementTiger Wang1-0/+2
2014-03-16Add cakeHowaner1-0/+2
2014-03-16Add anvil direction.Howaner1-0/+2
2014-03-08cBlockInfo-related changes from #723andrew1-0/+1
2014-03-05Add data backsending, when the Client interacts a Block and the Interact is cancelled.Howaner1-0/+10
2014-03-02cBlockInfo now manages the respective cBlockHandlerandrew1-43/+2
2014-02-23Rename SkullEntity to MobHeadEntityHowaner1-2/+2
2014-02-23Add Heads completelyHowaner1-0/+2
2014-02-19Add new Trees (without Generator)Howaner1-0/+4
2014-02-19Rename SkullEntity to MobHeadEntityHowaner1-2/+2
2014-02-18Add Heads completelyHowaner1-0/+2
2014-02-04Improved Type safety of eBlockFaceTycho1-3/+3
May Fix #640
2014-02-03Renamed cBlockQuartsHandler to cBlockQuartzHandler. Fixed not being able to place normal quartz blocks.STRWarrior1-1/+1
2014-02-03This renames the cBlockWoodHandler to cBlockSidewaysHandler, and implements a new cBlockQuartzHandler to handle the quartz pillars.STRWarrior1-3/+6
2014-02-02Fixed dark oak and acacia placement.madmaxoft1-0/+1
Fixes #621.
2014-02-02Changed Signiture of OnUpdateTycho1-7/+7
2014-02-01Changed Signiture of OnDiggingTycho1-1/+1
2014-02-01Changed Signiture of OnDestroyedByPlayerTycho1-1/+2
2014-02-01Changed pointers to referencesTycho1-10/+10
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-5/+5
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2014-01-26Refactored GetPlacementBlockTypeMetaTycho1-1/+1
2014-01-26Refactored cBlockHandler::OnUse and dependentsTycho1-18/+18
2014-01-25First attempt at Implementing InterfacesTycho1-1/+1
2014-01-20first changes for enchanting (not finished)daniel09161-0/+2
- added enchanting table block handler and added it to the blockhandler - added enchanting window - drop item in the slot 0 when the player close the window - added enchanting packet (1.7 only) - some more...
2014-01-19Improved command blocksTiger Wang1-0/+2
* Their command and previous output are displayed on the client * They have a BlockHandler implementation, so you can't place blocks on them anymore + As a side effect, implemented UpdateBlockEntity
2013-12-18Implented Nether Wart.STRWarrior1-0/+2
2013-12-10Provides a possible fix for repeater timingsTiger Wang1-1/+1
Not completely reliable, but at least some types of clock work.
2013-12-10Improved pickups spawning speed againTiger Wang1-3/+2
2013-12-08Readded redstone lamp handlerTiger Wang1-0/+2
2013-12-08Moved bindings-related to a Bindings subfolder.madmaxoft1-1/+1
Ref.: #407
2013-12-08Fixed stationary water starting fires and flowing lava not.madmaxoft1-2/+2
2013-12-07Fixed water starting firesTiger Wang1-1/+0
2013-12-07Fixed some new 1.7 client crash bugsTiger Wang1-0/+2
Some technical blocks were removed; trying to render them as items caused a crash.
2013-12-04Lava can spawn fire.madmaxoft1-6/+6
Settable in world.ini, lava can spawn fire to fuel blocks near it. Fix #65.
2013-11-30Changed cBlockHandler->OnUpdate() to use cChunk directly.madmaxoft1-1/+1
2013-11-29Implemented trapdoors, fixes #43 and #105Tiger Wang1-0/+2
Also updated redstone simulator to support it
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-02Readded BlockPortal.h (portals)Tiger Wang1-0/+2
2013-09-22Added button placement handlerTiger Wang1-0/+3
Also removed an unneeded variable in the stair handler
2013-09-19Fixed pickup block spawningTiger Wang1-8/+9
2013-09-18Fixed pickupsTiger Wang1-7/+11
2013-09-18Implemented redstone comparatorsTiger Wang1-2/+5
They can be placed and toggled, but stills needs proper redstone support
2013-09-18Multiple fixes [SEE DESC]Tiger Wang1-1/+2
- Removed two random block handling files in the item handling section that didn't do anything. (One was an attempt at making slabs work, but failed to realise that the coords would have to be the block CLICKED, and another was just a random empty file for handling wooden planks.) * Fixed placing repeater blocks not directioning properly * Fixed wood directions breaking plank metadata
2013-09-15Torches work properlyTiger Wang1-1/+1
Also fixed a naming inconsistency concerning quartz stairs.
2013-09-15Removed leftover CanBePlacedOnSideTiger Wang1-9/+0
2013-09-15Removed leftover DoesAllowBlockOnTopTiger Wang1-9/+0
2013-09-10Pumpkin and JackOLantern supportTiger Wang1-0/+3
Fixes #99
2013-09-09Added a few changes [SEE DESC]Tiger Wang1-0/+8
* Revised pickup comments * SlotArea pickup tossing now reflects Player.cpp * Removed unneeded ItemShears comment (was working already) * Sand and gravel pickups spawn with correct speed
2013-08-23Double slabs work *choke choke*Tiger Wang1-2/+3
2013-08-20Fixed broken carpet handler [SEE DESC]Tiger Wang1-0/+1
Made BlockHandler pass on control to carpet handler Declared thinggummies in carpet handler Fixed carpet block pushback using incorrect format
2013-08-20Activator rail now uses rail handlerTiger Wang1-0/+1
2013-08-12Added quartz stairs.STRWarrior1-0/+1
2013-08-10Piston head, when removed, removes the associated piston body, too.madmaxoft1-0/+1
Fixes FS 388
2013-08-09Piston head, when removed, removes the associated piston body, too.madmaxoft1-0/+1
Fixes FS 388
2013-08-05Added the Carpet block.madmaxoft1-44/+45
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-453/+453
2013-06-18TNT fixes.madmaxoft@gmail.com1-2/+0
Other blocks can be placed next to TNT. Explosions activate nearby TNT blocks. TNT doesn't destroy bedrock, obsidian and liquid blocks. Server doesn't crash when a TNT (or other entity) leaves the valid Y range. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1603 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-12Implemented the Hopper block handlermadmaxoft@gmail.com1-2/+4
Hoppers can be placed properly, but won't work yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1583 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-09Fixed 2 more tabs...faketruth1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1571 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-09Added dead bush block handler so a dead bush pickup is dropped when the sand underneath it is removed.faketruth1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1569 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26Implemented droppersmadmaxoft@gmail.com1-2/+3
Added a common ancestor class "DropSpenser" that has the common code for dropper and dispenser and is Lua-accessible, too. The Debuggers plugin now triggers both droppers and dispensers when rclking them with a redstone torch. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1514 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-27Fixed a few possible crashes with out-of-bounds Y coordsmadmaxoft@gmail.com1-1/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1413 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-18Initial implementation of explosions and TNT blockkeyboard.osh@gmail.com1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1392 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-06Cobwebs are now washed away by water and can be broken by swords and shears, giving string.madmaxoft@gmail.com1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1363 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-05Added carrots and potatoes handling, bonemealing and proper lighting.madmaxoft@gmail.com1-0/+2
FS #166 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1359 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-15Huge performance boost in blockhandlers, they have direct access to chunk data when blockchecking.madmaxoft@gmail.com1-15/+10
Also fixed vines' placement. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1278 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-28Simulators now have direct access to the cChunk object in the WakeUp() callmadmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1227 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-16Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-27Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.madmaxoft@gmail.com1-2/+8
Note that cItems is used in the function signature but not yet exported in the API, TODO! git-svn-id: http://mc-server.googlecode.com/svn/trunk@1176 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-15/+22
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-29Cauldrons and Brewing Stands are now placeableluksor111@gmail.com1-0/+4
Cauldrons can be filled with water and used to fill bottles git-svn-id: http://mc-server.googlecode.com/svn/trunk@1116 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-27Added flower potsluksor111@gmail.com1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1107 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-19Implemented double doorsluksor111@gmail.com1-0/+2
Implemented fence gate Updated g_BlockTransparent[] Doors can now only be opened by right clicking Doors will now drop when not supported by block git-svn-id: http://mc-server.googlecode.com/svn/trunk@1080 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16Levers (patch contributed by Keyboard)madmaxoft@gmail.com1-0/+2
http://forum.mc-server.org/showthread.php?tid=649 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1075 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-27Added initial adventure mode supportluksor111@gmail.com1-0/+2
Added missing Emerald crafting recipe You get more fall damage when jumping Torch no longer protects players from fall damage Fixed Ender Chest drops git-svn-id: http://mc-server.googlecode.com/svn/trunk@1070 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-26Fixed certain blocks crashing clients when minedluksor111@gmail.com1-0/+2
Fixed rail duplication glitch Fixed fall damage calculation Glass no longer drops glass git-svn-id: http://mc-server.googlecode.com/svn/trunk@1068 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-25Implemented rail placement mechanics.luksor111@gmail.com1-0/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1065 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-24Fixed drops for: Stone, Mycelium, Redstone Torch.luksor111@gmail.com1-0/+3
Fixed item usage for Jukeboxes and Spawn eggs in survival. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1064 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-21Added jukeboxes (patch contributed by Luksor)madmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@994 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-14Floody fluid simulator now dries up correctly, too.madmaxoft@gmail.com1-0/+22
git-svn-id: http://mc-server.googlecode.com/svn/trunk@964 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-07All blockticking is now done in cBlockHandlersmadmaxoft@gmail.com1-120/+85
git-svn-id: http://mc-server.googlecode.com/svn/trunk@942 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-81/+81
Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-01Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com1-43/+16
( http://forum.mc-server.org/showthread.php?tid=434&pid=4734#pid4734 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@917 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-30Added some missing block enumsfaketruth1-0/+3
Spruce, birch and jungle wood stairs now orient correctly git-svn-id: http://mc-server.googlecode.com/svn/trunk@916 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Unified folder name-casingmadmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Made beds placeablefaketruth1-1/+4
Android: Updated some stuff and set default view distance lower git-svn-id: http://mc-server.googlecode.com/svn/trunk@900 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-11Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com1-0/+14
http://forum.mc-server.org/showthread.php?tid=434&pid=4564#pid4564 git-svn-id: http://mc-server.googlecode.com/svn/trunk@858 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04Fixed FS #243, server crash after restart. The blockhandler table and the itemhandler table weren't properly re-initialized.madmaxoft@gmail.com1-112/+228
git-svn-id: http://mc-server.googlecode.com/svn/trunk@830 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-28Fixed a few warningsmadmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@799 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-26Added basic noteblocks, finished sign storage in Anvil (patch contributed by l0udPL)madmaxoft@gmail.com1-0/+3
http://forum.mc-server.org/showthread.php?tid=528 git-svn-id: http://mc-server.googlecode.com/svn/trunk@793 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-22Added a documentation for block and item handlerslapayo94@gmail.com1-6/+0
Probably fixed dependencies on cWebPlugin_Lua Fixed VC2010 Project file git-svn-id: http://mc-server.googlecode.com/svn/trunk@778 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-19Fixed Bug #236lapayo94@gmail.com1-1/+6
Workbench, Chest and Furnace are usable again git-svn-id: http://mc-server.googlecode.com/svn/trunk@755 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-06BLOCKTYPE signedness change - fixed more detailsmadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@713 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-28Fixed a few gcc warningsmadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@701 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-4/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Fixed some small bugs :)lapayo94@gmail.com1-2/+13
git-svn-id: http://mc-server.googlecode.com/svn/trunk@672 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15A new Block handling system :olapayo94@gmail.com1-0/+302
It was really a lot of work :D Took me the complete weekend :D Would really like to here your opinion on this =) The aim of this is to put all the actions for one block in one place so it is not spread around the source. (ToPickup, Action in cWorld, Action in cChunk, Action here, action there :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@671 0a769ca7-a7f5-676a-18bf-c427514a06d6