summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFence.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-081-2/+3
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-1/+1
| | | | | | | | | | | | | | | * Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-16/+11
| | | | | | | | | | | | | * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
* Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D2020-08-011-1/+1
|
* Vector3 in Handlers (#4680)Mattes D2020-04-211-8/+40
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-5/+13
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-1/+1
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-2/+2
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-191-1/+1
| | | | | | | | | | | | | | | | | | * Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
* Fixed build for older clang versions (#3935)Bond-0092017-08-211-1/+1
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-1/+61
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* Check for intersection between placed blocks and entities. (#3850)Lane Kolbly2017-07-281-0/+80
* Check for intersection between placed blocks and entities. + Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks. * Factored block-entity placement checking into another function in cPlayer. - Removed vector min/max functions * Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity. + Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.