summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockQuartz.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-60/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * Move item placement into item handlers + Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call. * Partly addresses #5157 * Fixes #4878 * Fixes #2919 * Fixes #4629 * Fixes #4239 * Fixes #4849 Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com> * Review fixes * Update APIDesc.lua * Rename Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.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-9/+4
| | | | | | | | | | | | | * 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>
* Vector3 in Handlers (#4680)Mattes D2020-04-211-16/+33
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Deal with covered switches consistently (#4161)peterbell102018-02-051-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()
* cBlockHandler: take player by refpeterbell102017-08-011-2/+2
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-1/+1
|
* Improved mapsTiger Wang2015-07-141-2/+6
|
* Fixed warnings in MSVC.Mattes D2015-06-021-0/+5
| | | | It complained about undefined return values or using uninitialized variables.
* Fixed compile and a few more warningstycho2015-05-191-1/+1
|
* Code formatting fixes.Howaner2014-08-191-0/+1
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Normalized comments.madmaxoft2014-07-171-5/+5
| | | | | 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.
* Improved Type safety of eBlockFaceTycho2014-02-041-3/+3
| | | | May Fix #640
* Named the different quartz block.STRWarrior2014-02-031-1/+1
|
* Fixed some issues.STRWarrior2014-02-031-1/+2
| | | | | Meta wasn't set if the block wasn't a pillar. Fixed typo.
* Renamed cBlockQuartsHandler to cBlockQuartzHandler. Fixed not being able to place normal quartz blocks.STRWarrior2014-02-031-3/+3
|
* This renames the cBlockWoodHandler to cBlockSidewaysHandler, and implements a new cBlockQuartzHandler to handle the quartz pillars.STRWarrior2014-02-031-0/+66