1
0
Fork 0
cuberite-2a/src/Blocks
Tiger Wang a62b2b1be2
Move item placement into item handlers (#5184)
* 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-05-05 13:25:10 +00:00
..
BlockAir.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockAnvil.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockBanner.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockBed.cpp Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockBed.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockBigFlower.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockBookShelf.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockBrewingStand.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockButton.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockCactus.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockCake.h Add player statistics to API (#5193) 2021-05-03 21:07:09 +01:00
BlockCarpet.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockCauldron.h Add player statistics to API (#5193) 2021-05-03 21:07:09 +01:00
BlockChest.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockCloth.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockCobWeb.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockCocoaPod.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockCommandBlock.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockComparator.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockConcretePowder.h cChunk: don't inherit from cChunkDef (#5106) 2021-01-18 16:09:10 +00:00
BlockCrops.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockDaylightSensor.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockDeadBush.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockDefaultBlock.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockDirt.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockDoor.cpp Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
BlockDoor.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockDropSpenser.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockEnchantingTable.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
BlockEndPortalFrame.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockEnderchest.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockEntity.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockFarmland.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockFence.h Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
BlockFenceGate.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockFire.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockFlower.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockFlowerPot.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockFluid.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockFurnace.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockGlass.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockGlazedTerracotta.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockGlowstone.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockGrass.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockGravel.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockHandler.cpp Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockHandler.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockHopper.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockHugeMushroom.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockIce.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockInfested.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockJukebox.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockLadder.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockLeaves.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockLever.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockLilypad.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockMelon.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockMobHead.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockMobSpawner.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockMushroom.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockMycelium.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockNetherWart.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockNetherrack.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockNoteBlock.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
BlockObserver.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockOre.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockPackedIce.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockPiston.cpp Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
BlockPiston.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockPlanks.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockPlant.h Add correct implementation of crops (#4802) 2020-11-06 16:54:01 +00:00
BlockPluginInterface.h Refactored block-to-pickup conversion. (#4417) 2019-10-16 10:06:34 +02:00
BlockPortal.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockPressurePlate.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockPumpkin.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockQuartz.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockRail.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockRedstone.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockRedstoneLamp.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockRedstoneOre.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockRedstoneRepeater.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockSand.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockSapling.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockSeaLantern.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSideways.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockSignPost.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockSlab.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockSlime.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockSnow.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockSponge.h cChunk: don't inherit from cChunkDef (#5106) 2021-01-18 16:09:10 +00:00
BlockStairs.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockStems.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockStone.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockSugarcane.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockTNT.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
BlockTallGrass.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockTorch.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockTrapdoor.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockTripwire.h Do not fake a tool when converting to pickups (#5170) 2021-03-28 14:41:34 +01:00
BlockTripwireHook.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockVine.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockWallSign.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
BlockWorkbench.h Add player statistics to API (#5193) 2021-05-03 21:07:09 +01:00
BroadcastInterface.h Unify multiprotocol entity animations 2021-04-12 22:35:07 +01:00
CMakeLists.txt Adding basic Banner functionality (#4806) 2021-03-15 02:47:55 +00:00
ChunkInterface.cpp Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
ChunkInterface.h Merged OnBreak with OnPlayerBreak (#4967) 2020-10-08 20:13:44 +01:00
GetHandlerCompileTimeTemplate.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Mixins.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00
WorldInterface.h Move item placement into item handlers (#5184) 2021-05-05 13:25:10 +00:00