summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockTripwireHook.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-20Mark UNREACHABLE with intrinsicsTiger Wang1-1/+0
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-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>
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-24/+15
* 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>
2020-07-25Correct placement for tripwire hooksTiger Wang1-22/+29
https://github.com/cuberite/cuberite/commit/487f9a2aa9b5497495cef1ac3b9c7a603e69f862#r40900869
2020-04-21Vector3 in Handlers (#4680)Mattes D1-13/+16
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-16Using Super.Mattes D1-2/+2
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-9/+26
2018-02-05Deal with covered switches consistently (#4161)peterbell101-4/+1
* Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
2017-08-01cBlockHandler: take player by refpeterbell101-1/+1
2015-07-14Improved mapsTiger Wang1-4/+6
2015-06-02Fixed warnings in MSVC.Mattes D1-0/+8
It complained about undefined return values or using uninitialized variables.
2015-05-19Fixed compile and a few more warningstycho1-1/+7
2014-09-09Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy981-5/+0
2014-08-19Code formatting fixes.Howaner1-5/+5
2014-06-28Implemented tripwire(s) (hooks)Tiger Wang1-0/+82
* Fixes #944