summaryrefslogtreecommitdiffstats
path: root/src/Items/CMakeLists.txt (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-01-02Handlers: update item and block handlers (#5371)Tiger Wang1-2/+2
+ Resend blocks when server rejects placement because in a block * Fix chest handler not invoked, fixes #5367 * Fix comparator handler not invoked * Update some naming
2021-12-02ItemHandler initialisation is a constant expression (#5344)x12xx12x1-0/+1
* Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final
2021-07-10Chorus fruit teleport (#5259)KingCol131-0/+1
* Outline function for teleporting. * Created new handler for chorus fruit. * Fixed AttemptTeleport failing. * Better names, working sound effect. * Corrected naming. * Remove stray LOGD. * Offset teleport to middle of block. * Style Fixes Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Style Fixes 2 Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Move FindTeleportDestination to static cPawn method. * cBoundingBox interface. * Cleanup includes. * Maybe exported to API? * Change a_World to reference, add to APIDesc. Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
2021-05-05Move item placement into item handlers (#5184)Tiger Wang1-0/+24
* 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>
2021-03-15Adding basic Banner functionality (#4806)12xx121-0/+1
+ Added item and block for banners Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-01-22End crystal placement (#5112)Damián Imrich1-0/+1
* End crystal placement * End crystal placement - fixed error and added some comments * Removed unused includes * Update src/Items/ItemEndCrystal.h Co-authored-by: Alexander Harkness <me@bearbin.net> * End Crystal placement, early-return pattern enforcement * End crystal Item finish? * Small changes Fixed a crashbug in ender crystal destruction. According to vanilla 1.16 testing, end crystals don't place if any entity intersects the box, not just other end crystals. Check return value of SpawnEnderCrystal. Add header in SeeMake. Cafe Stile Redux. * The stylechecker relies on CMakeLists * There is another Co-authored-by: Alexander Harkness <me@bearbin.net> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-20Added end portal and enchanting table block entities12xx121-0/+2
2020-06-26Merged trivial item handlers into cSimplePlaceableItemHandler (#4766)Franklin Kong1-6/+1
- Remove unused files Co-authored-by: aiugai <aiugai@umich.edu> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-05-16Upgrade to C++17 [CMake] (#4717)Tiger Wang1-8/+2
* Make our CMake slightly less insane
2020-05-09Update submodules (#4727)peterbell101-1/+1
Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
2020-04-04Remove switch statements from cItemFoodHandler (#4610)Alexander Harkness1-1/+9
* Remove switch statements from cItemFoodHandler * Alpha-sort and add comment * Relocate golden apple handler
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell101-3/+0
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.
2018-01-03Add the fmt library (#4065)peterbell101-0/+1
* Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
2017-09-14Fix switch warnings (#4013)peterbell101-4/+0
* Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
2016-11-06Anticheat fastbreak (#3411)mohe20151-0/+1
Added block hardness checks when breaking blocks.
2016-08-24Fixed type-casting-related warnings.Mattes D1-1/+1
2016-07-18CMake: Remove needless minimum version specifications.Mattes D1-2/+0
2016-01-01Renamed leftover strings to Cuberite / Server, as needed.Mattes D1-1/+1
Also upgraded the user setting file for MSVC to 2013.
2015-12-22add handling of water bottleGargaj1-0/+1
2015-12-03Merge mushroom soup into generic food handlerGargaj1-1/+0
...and fix eating the bowl when eating rabbit stew
2015-09-17Added CircleCI for stylechecking.Mattes D1-2/+5
This will allow us to remove the stylecheck from Travis builds, making them a bit faster, and having fast style checks
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-1/+1
2015-05-24Made -Weverything an error.tycho1-1/+1
2015-05-19Make -Werror disabling file onlytycho1-0/+4
Ad fix a load of warnings
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-1/+6
Fixes #1618.
2014-07-19Subdirs: Only add_library if not using MSVCarchshift1-1/+3
2014-07-19Items/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+47
2014-04-25Missed these CMakeLists.archshift1-1/+6
2013-12-10more cmake stuffTycho Bickerstaff1-1/+1
2013-12-10started work on cmakeTycho Bickerstaff1-0/+7