1
0
Fork 0
cuberite-2a/src/Blocks
9caihezi 4242431407 Rewrite cClientHandle::HandleRightClick (#4089)
* Add hand parameter to distinguish main hand/off hand.
* Add a new function cClientHandle::HandleUseItem to separate the functionality of using an item without a target block. This matches the protocol with client version >= 1.9
* Always actively update the status of a block if the placement fails (by out of reach or rejected by plugin).
* Do not call plugin callback CallHookPlayerRightClick(-1, 255, -1, -1, 0, 0, 0) when using item.
   The CallHookPlayerUsingItem will still be called.
   Now at most one of CallHookPlayerRightClick, CallHookPlayerUsingBlock,
   CallHookPlayerUsingItem and CallHookPlayerEating will be called based on
   the type of action (not including the used version of callbacks).
* Do not count using item as BlockInteractionsRate check (Using item takes time).
* Now we can open chests(etc.) when sneaking as long as the player's hand is empty.
   This is what vanilla server does.
2018-01-08 13:37:10 +00:00
..
BlockAnvil.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockBed.cpp cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockBed.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockBigFlower.h Item durability loss now depends on the item used. (#4123) 2018-01-05 11:28:06 +00:00
BlockBrewingStand.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockButton.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockCactus.h Break the cactus block when it grows next to a block. (#3851) 2017-07-18 15:14:52 +02:00
BlockCake.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockCarpet.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockCauldron.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockChest.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockCloth.h Improved maps 2015-07-14 21:46:30 +01:00
BlockCobWeb.h Improved maps 2015-07-14 21:46:30 +01:00
BlockCocoaPod.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
BlockCommandBlock.h Improved maps 2015-07-14 21:46:30 +01:00
BlockComparator.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockConcretePowder.h Concrete mixing (#4096) 2018-01-03 16:33:31 +00:00
BlockCrops.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
BlockDeadBush.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockDirt.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BlockDoor.cpp cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockDoor.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockDropSpenser.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockEnchantmentTable.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockEnderchest.h Drop enderchest when broken by a silk touck pick (#3986) 2017-08-31 17:50:07 +02:00
BlockEntity.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockFarmland.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockFence.h Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959) 2017-09-19 15:12:54 +01:00
BlockFenceGate.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockFire.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockFlower.h Fix Pickups of BlockFlower 2016-02-06 22:04:00 +01:00
BlockFlowerPot.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockFluid.h BigFlower fixes (#3826) 2017-07-07 16:37:53 +02:00
BlockFurnace.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockGlass.h Improved maps 2015-07-14 21:46:30 +01:00
BlockGlowstone.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
BlockGravel.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
BlockHandler.cpp Concrete mixing (#4096) 2018-01-03 16:33:31 +00:00
BlockHandler.h Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
BlockHopper.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockIce.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockLadder.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockLeaves.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockLever.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockLilypad.h Lilypads can be on top of (frosted) ice (#4122) 2017-12-27 18:47:28 +00:00
BlockMelon.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
BlockMobHead.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
BlockMobSpawner.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockMushroom.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockMycelium.h Improved maps 2015-07-14 21:46:30 +01:00
BlockNetherWart.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockNetherrack.h * Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it. 2015-08-19 10:48:21 -06:00
BlockOre.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockPiston.cpp cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockPiston.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockPlanks.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockPlant.h cBlockInfo static initialisation (#3832) 2017-07-03 18:34:27 +02:00
BlockPluginInterface.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockPortal.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockPressurePlate.h Pressure plates can be placed on fences and hoppers (#3796) 2017-06-22 21:11:46 +02:00
BlockPumpkin.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockQuartz.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockRail.h cBlockRail: Fix assertion failure (#4075) 2017-11-21 21:54:21 +00:00
BlockRedstone.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockRedstoneLamp.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockRedstoneRepeater.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockRedstoneTorch.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockSand.h Improved maps 2015-07-14 21:46:30 +01:00
BlockSapling.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockSeaLantern.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
BlockSideways.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockSignPost.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockSlab.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockSlime.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockSnow.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockStairs.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockStems.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
BlockStone.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BlockSugarcane.h Sugar cane can be near frosted ice (#4133) 2018-01-05 12:49:08 +00:00
BlockTNT.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockTallGrass.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockTorch.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockTrapdoor.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockTripwire.h Improved maps 2015-07-14 21:46:30 +01:00
BlockTripwireHook.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BlockVine.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockWallSign.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
BlockWorkbench.h cBlockHandler: take player by ref 2017-08-01 08:21:20 +02:00
BroadcastInterface.h Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959) 2017-09-19 15:12:54 +01:00
CMakeLists.txt Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
ChunkInterface.cpp cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
ChunkInterface.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
ClearMetaOnDrop.h Clang 5.0 fixes 2017-05-21 12:19:06 +02:00
GetHandlerCompileTimeTemplate.h Fixed style 2014-09-25 15:45:39 +01:00
MetaRotator.h Clang 5.0 fixes 2017-05-21 12:19:06 +02:00
WorldInterface.h improve rain simulation (#4017) 2017-12-26 21:25:57 +00:00