summaryrefslogtreecommitdiffstats
path: root/src/BlockID.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-1319/+0
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-1/+2
|
* Register vanilla blocks in BlockTypeRegistry.Mattes D2019-08-051-1/+4
|
* * Sponge: Add water absorbtion (#4333)Zach DeCook2019-06-111-0/+4
| | | | Closes #1411
* Create Ender Portal with Eyes of Ender (#4126)Zach DeCook2019-05-111-0/+12
| | | | | | | | | The algorithm was designed so All portals must be facing the center, no matter which block had the eye inserted in last. Note: Still need to create a block entity so that portals don't become invisible when you relog. Addresses part of #3445 Fixes #3695
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+1
|
* BigFlower fixes (#3826)peterbell102017-07-071-0/+2
| | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
* Added 1.12 blocks (#3760)Bond-0092017-06-301-1/+55
|
* Update tolua and export EffectIDpeterbell102017-06-291-19/+19
|
* Store cChunk::m_BlockEntities in a map (#3717)peterbell102017-05-221-0/+28
| | | | | | * Store block entities in a map from block index * Cleanup ForEachBlockEntity * Cleanup DoWithBlockEntityAt
* Added some blocks and items (#3503)mathiascode2017-02-141-1/+40
|
* Anticheat fastbreak (#3411)mohe20152016-11-061-4/+26
| | | Added block hardness checks when breaking blocks.
* - Add a activation flag to droppers and dispensers. Previously droppers and dispensers shot items with every block update.QUSpilPrgm2016-06-151-0/+2
| | | | - Fixes a range check inside cIncrementalRedstoneSimulator::Simulate
* Reduced unnecessary block updatesLogicParrot2016-04-221-4/+0
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-42/+42
|
* Revised the explosion-related Lua API and docs.Mattes D2015-12-181-6/+18
| | | | Fixes #2746.
* ReTyped block idsJulian Laubstein2015-10-151-7/+12
|
* Unified the doxy-comment format.Mattes D2015-07-311-13/+12
|
* Improved mapsTiger Wang2015-07-141-12/+14
|
* Added RabbitsMasy982014-12-201-0/+1
|
* Added Entity GuardianMasy982014-12-181-0/+1
|
* Fixed BlockStringToType return value.Mattes D2014-11-271-1/+1
| | | | -1 was not a valid BLOCKTYPE and would not be recognized by the callers, ever.
* Fixed typo.Alexander Harkness2014-10-271-1/+1
|
* Pocess?Alexander Harkness2014-10-271-2/+2
|
* Added type to block type enum.Mattes D2014-10-261-1/+11
|
* Merge branch 'master' into issue850Alexander Harkness2014-10-111-13/+87
|\ | | | | | | | | Conflicts: src/BlockID.h
| * Fixed eMonsterType Lua API mismatch.madmaxoft2014-10-051-3/+0
| |
| * Fix spelling of PRISMRAINEAlexander Harkness2014-10-021-1/+1
| | | | | | Fixes #1497
| * Fixed Red Sandstone and Prismarine dropsMasy982014-10-011-7/+7
| |
| * Fixed ":"Masy982014-10-011-11/+11
| |
| * Added missing 1.8 blocks, E_METAs and soundsMasy982014-10-011-6/+47
| |
| * Fixed 1.8 dirt typesHowaner2014-09-301-0/+1
| |
| * Tabs -> spacesw00tc0d32014-09-291-4/+4
| |
| * BlockStone: drop the right cobblestone on onBreak().netchip2014-09-291-0/+6
| | | | | | | | Signed-off-by: netchip <w00tc0d3@outlook.com>
| * Fixed 1.8 Item stacking and block harvestingMasy982014-09-121-1/+1
| |
| * Added barrier blockMasy982014-09-111-0/+1
| |
| * Added 1.8 food to the food listMasy982014-09-111-1/+1
| |
| * Added new blocks to the BlockInfoMasy982014-09-101-12/+12
| |
| * Added 1.8 Blocks and ItemsMasy982014-09-101-0/+37
| |
| * Fixed style and alpha-sorting.madmaxoft2014-09-031-2/+2
| |
| * Added mutton, which sheep now drop when killedarchshift2014-09-031-0/+2
| |
* | Fixed typo and removed useless right side up slab meta.Alexander Harkness2014-10-111-2/+1
| |
* | Renamed NEWLEAVES and NEWLOG to LEAVES and LOG.archshift2014-07-301-34/+34
| |
* | Merge remote-tracking branch 'origin/master' into issue850archshift2014-07-291-7/+16
|\| | | | | | | | | | | Conflicts: src/Blocks/BlockLeaves.h src/Generating/Trees.cpp
| * SuggestionsTiger Wang2014-07-211-1/+1
| |
| * Merge branch 'master' into portalsTiger Wang2014-07-181-6/+9
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp src/ClientHandle.h src/Entities/Player.cpp src/Entities/Player.h src/Generating/FinishGen.cpp src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol16x.cpp src/Protocol/Protocol16x.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/Root.h src/World.cpp
| | * Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | | | | | | | | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
| | * Fixed spaces around single-line comments.madmaxoft2014-07-171-1/+1
| | | | | | | | | | | | There should be at least two spaces in front and one space after //-style comments.
| | * Fixed basic whitespace problems.madmaxoft2014-07-171-2/+2
| | | | | | | | | | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
| | * Reformatted cItemPotionHandler.madmaxoft2014-07-171-1/+2
| | |
| | * Added wither damage type, wither entity effect.archshift2014-06-171-0/+2
| | |
| * | Merge branch 'master' into portalsTiger Wang2014-06-101-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp src/Entities/Player.cpp src/Entities/Player.h src/Protocol/Protocol125.cpp src/Protocol/Protocol17x.cpp
| | * Fixed deadlock when moving players to other worlds.Mattes D2014-06-081-0/+1
| | | | | | | | | | | | Fixes #1039, fixes #851
| * | Portal improvements and suggestionsTiger Wang2014-06-101-1/+6
| |/
* | Spacing fixes and a few more BLOCK_META constants.narroo2014-07-021-131/+152
| |
* | Fixed E_META_...Typos in BlockID.hnarroo2014-06-081-10/+0
| |
* | Fixed some E_META_*** Namesnarroo2014-05-201-71/+67
| |
* | Fixed Formmatingnarroo2014-04-281-69/+69
| |
* | Added some E_META_* values to BlockID.hnarroo2014-04-281-20/+120
|/
* Implemented weighted pressure platesTiger Wang2014-04-171-0/+4
|
* Change SpreadSource prefix to ssHowaner2014-03-271-5/+5
|
* Add SpreadSourceHowaner2014-03-271-0/+13
|
* Fixed code style after recent merge.madmaxoft2014-03-201-1/+5
|
* ENUMified shrapnel levelTiger Wang2014-03-201-4/+8
|
* Removed g_BlockXXX arraysandrew2014-03-021-14/+0
|
* Better Jukebox APIHowaner2014-02-211-0/+4
|
* Add BlockNewLeaves.h and rename Darkoac to DarkoakHowaner2014-02-191-6/+6
|
* Add new Trees (without Generator)Howaner2014-02-191-0/+2
|
* Implemented paintings, fixes #689Tiger Wang2014-02-181-1/+1
| | | | + Implemented paintings
* Merge pull request #633 from mc-server/More_Sideways_BlocksMattes D2014-02-031-0/+5
|\ | | | | More sideways blocks.
| * Named the different quartz block.STRWarrior2014-02-031-0/+5
| |
* | TNT improvementsTiger Wang2014-02-021-0/+1
|/ | | | | | + Added entity damage + Added entity propulsion * Fixed #67 and fixed #230
* Merge pull request #529 from mc-server/derpstonerefactorAlexander Harkness2014-01-121-1/+1
|\ | | | | Major refactoring of redstone
| * Renamed g_TorchPlaceable...Tiger Wang2014-01-111-1/+1
| | | | | | | | ...to g_FullyOccupiesVoxel, as recommended by @bearbin
* | Move biome definition to separate filesBill Derouin2014-01-091-3/+0
|/
* Replaced esCreeper with esMonster.madmaxoft2013-12-231-2/+5
| | | | Any monster will be able to explode, and also this fixes #425.
* Merge pull request #387 from mc-server/trapdoorsMattes D2013-11-301-3/+2
|\ | | | | Trapdoors, redstone fixes, and snow
| * Implemented trapdoors, fixes #43 and #105Tiger Wang2013-11-291-3/+2
| | | | | | | | Also updated redstone simulator to support it
* | Alpha-sorted BlockMetas, added red sand.madmaxoft2013-11-291-125/+128
| |
* | Added new biomes to old composition generator.madmaxoft2013-11-281-0/+4
|/ | | | Mostly placeholders only, true per-biome characteristics still need to be implemented. This is only to test the new biome generators.
* Moved source to srcAlexander Harkness2013-11-241-0/+907