summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockMobSpawner.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-09added check if the digger is a nullptr (#4981)12xx121-0/+4
Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-08Merged OnBreak with OnPlayerBreak (#4967)12xx121-8/+14
Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
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-25Unify block entity pickup conversionTiger Wang1-1/+1
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-11/+6
* 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-04-21Vector3 in Handlers (#4680)Mattes D1-5/+21
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-7/+19
2018-08-02Experience orb (#4259)changyong guo1-1/+1
* Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-1/+0
2017-08-01cBlockHandler: take player by refpeterbell101-5/+5
2017-06-13FastRandom rewrite (#3754)peterbell101-2/+2
2016-02-05Bulk clearing of whitespaceLogicParrot1-2/+2
2015-12-13allow use failures to propagate from the entity/block to the playerGargaj1-2/+2
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-1/+1
2014-09-19Implemented mob spawner.Howaner1-0/+12
2014-09-12Spawn exp if you break a mob spawner.Howaner1-0/+40