1
0
cuberite-2a/src
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
..
Bindings Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
BlockEntities Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Blocks Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
Entities Golden Apple Fixes (#4130) 2018-01-06 00:39:23 +00:00
Generating Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
HTTP Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Items Golden Apple Fixes (#4130) 2018-01-06 00:39:23 +00:00
mbedTLS++ Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Mobs Item durability loss now depends on the item used. (#4123) 2018-01-05 11:28:06 +00:00
Noise Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
OSSupport Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Protocol Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
Resources New icon colors (#3675) 2017-06-03 18:49:02 +02:00
Simulator Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
UI Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
WorldStorage Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
AllocationPool.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BiomeDef.cpp Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BiomeDef.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BlockArea.cpp cBlockArea: Fix performance regression (#4045) 2017-09-23 17:47:46 +01:00
BlockArea.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
BlockID.cpp Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BlockID.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00
BlockInfo.cpp improve rain simulation (#4017) 2017-12-26 21:25:57 +00:00
BlockInfo.h improve rain simulation (#4017) 2017-12-26 21:25:57 +00:00
BlockInServerPluginInterface.h Replaced includes with forward declarations 2017-08-13 12:31:10 +01:00
BlockTracer.h Tracer replacement (#3704) 2017-05-11 13:34:36 +01:00
BoundingBox.cpp Fully implemented leashes (#3798) 2017-08-21 10:46:41 +02:00
BoundingBox.h Fully implemented leashes (#3798) 2017-08-21 10:46:41 +02:00
BrewingRecipes.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
BrewingRecipes.h Minor cBrewingRecipes cleanup (#3731) 2017-05-28 20:08:23 +02:00
Broadcaster.cpp Removed ClientHandle.h dependencies from common headers. 2016-11-18 20:00:04 +01:00
Broadcaster.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BuildInfo.h.cmake Added abilty to set build info 2014-09-10 16:07:00 +01:00
ByteBuffer.cpp Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
ByteBuffer.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
ChatColor.cpp Refactored cChatColor 2014-07-19 11:09:39 -07:00
ChatColor.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CheckBasicStyle.lua StyleCheck: Add "else has to be on a separate line" (#3412) 2016-10-20 19:09:18 +02:00
Chunk.cpp Fix explosion interaction with block entities. (#4052) 2017-09-27 22:22:15 +01:00
Chunk.h BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038) 2017-09-25 18:17:45 +02:00
ChunkData.cpp Implement anvil chunk sparsing 2017-08-26 20:56:44 +02:00
ChunkData.h Implement anvil chunk sparsing 2017-08-26 20:56:44 +02:00
ChunkDataCallback.h Implement protocol level chunk sparsing (#3864) 2017-08-21 17:56:53 +01:00
ChunkDef.h cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) 2017-11-20 11:13:11 +00:00
ChunkMap.cpp Fix explosion interaction with block entities. (#4052) 2017-09-27 22:22:15 +01:00
ChunkMap.h BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038) 2017-09-25 18:17:45 +02:00
ChunkSender.cpp Implement protocol level chunk sparsing (#3864) 2017-08-21 17:56:53 +01:00
ChunkSender.h Removed UTF-8 BOM (#4033) 2017-09-19 10:34:08 +02:00
ChunkStay.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ChunkStay.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ClientHandle.cpp Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
ClientHandle.h Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
CMakeLists.txt Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Color.cpp Leather Armor can now be dyed. 2015-07-15 14:05:36 -06:00
Color.h Lua plugin cColor (#3833) 2017-07-12 12:30:43 +02:00
CommandOutput.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
CommandOutput.h Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
CompositeChat.cpp CompositeChat: Use shorter JSON format. 2016-12-16 00:07:23 +01:00
CompositeChat.h Fixed cCompositeChat's constructor LuaAPI bindings. 2016-09-25 12:42:05 +02:00
CraftingRecipes.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
CraftingRecipes.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Cuberite.vcxproj.user Added working directory for x64 builds (#4037) 2017-09-20 19:01:46 +01:00
Cuboid.cpp cCuboid: restore default copy construct and assign. 2017-08-28 13:48:10 +01:00
Cuboid.h Add TOLUA_EXPOSITION for readability 2017-08-28 14:36:23 +01:00
DeadlockDetect.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
DeadlockDetect.h Clang 5.0 fixes 2017-05-21 12:19:06 +02:00
Defines.h Implement horse inventory (#4053) 2017-10-21 17:56:09 +01:00
EffectID.h Update tolua and export EffectID 2017-06-29 18:58:48 +02:00
Enchantments.cpp Added anvil enchantment handling. (#3857) 2017-07-28 18:00:20 +01:00
Enchantments.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00
Endianness.h Fixes compilation failures on MacOSX 10.10 2015-07-09 11:15:37 -06:00
FastRandom.cpp Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
FastRandom.h Tentative fix for player-limit race condition (#3862) 2017-07-28 17:54:40 +01:00
ForEachChunkProvider.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
FunctionRef.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
FurnaceRecipe.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
FurnaceRecipe.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Globals.cpp
Globals.h Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
IniFile.cpp Revert "Issue3136" 2016-04-14 12:40:46 +03:00
IniFile.h Clang 5.0 fixes 2017-05-21 12:19:06 +02:00
Inventory.cpp Fix typo in #4095. 2017-12-21 16:01:24 +00:00
Inventory.h Removed unused forward declarations (#3888) 2017-08-03 15:10:29 +02:00
Item.cpp Improved fishing rewards (#4120) 2018-01-05 14:32:30 +00:00
Item.h Item durability loss now depends on the item used. (#4123) 2018-01-05 11:28:06 +00:00
ItemGrid.cpp cItemGrid bounds check (#3837) 2017-07-09 22:54:56 +02:00
ItemGrid.h cItemGrid bounds check (#3837) 2017-07-09 22:54:56 +02:00
LightingThread.cpp cWorld Threads: Seperate initialization and thread start. 2017-10-21 19:33:22 +02:00
LightingThread.h cWorld Threads: Seperate initialization and thread start. 2017-10-21 19:33:22 +02:00
LinearInterpolation.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LinearInterpolation.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
LinearUpscale.h Fixed RasPi builds of unit tests. 2016-08-04 20:47:53 +02:00
LineBlockTracer.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
LineBlockTracer.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Logger.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Logger.h Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
LoggerListeners.cpp Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
LoggerListeners.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
LoggerSimple.h Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
main.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Map.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Map.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
MapManager.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
MapManager.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Matrix4.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MemorySettingsRepository.cpp Initial implementation of IniFile overloading 2015-05-16 10:46:51 +01:00
MemorySettingsRepository.h Fixed RasPi builds of unit tests. 2016-08-04 20:47:53 +02:00
MobCensus.cpp Fixed warnings in MSVC. 2015-06-02 12:51:43 +02:00
MobCensus.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MobFamilyCollecter.cpp Removed double includes (#3885) 2017-08-02 19:57:20 +01:00
MobFamilyCollecter.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
MobProximityCounter.cpp Silenced and fixed many warning messages across multiple files. 2015-07-29 09:49:30 -06:00
MobProximityCounter.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
MobSpawner.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
MobSpawner.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
MonsterConfig.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MonsterConfig.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
NetherPortalScanner.cpp Removed double includes (#3885) 2017-08-02 19:57:20 +01:00
NetherPortalScanner.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
OverridesSettingsRepository.cpp Proper fix for #3136 (#3143) 2016-04-18 23:04:13 +01:00
OverridesSettingsRepository.h Clang 5.0 fixes 2017-05-21 12:19:06 +02:00
ProbabDistrib.cpp Removed double includes (#3885) 2017-08-02 19:57:20 +01:00
ProbabDistrib.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
RankManager.cpp Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
RankManager.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
RCONServer.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
RCONServer.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Root.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Root.h cWorld: Move Initialization from Start to the constructor. 2017-10-21 19:33:22 +02:00
Scoreboard.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Scoreboard.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Server.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Server.h Update mbedtls to 2.5.1 (#3964) 2017-08-30 15:00:06 +01:00
SetChunkData.cpp Changed entity ownership model to use smart pointers 2017-08-07 19:24:16 +01:00
SetChunkData.h Changed entity ownership model to use smart pointers 2017-08-07 19:24:16 +01:00
SettingsRepositoryInterface.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SpawnPrepare.cpp Potential spawn prepare fix (#3924) 2017-08-22 14:34:43 +02:00
SpawnPrepare.h Potential spawn prepare fix (#3924) 2017-08-22 14:34:43 +02:00
Statistics.cpp Minor changes (#3909) 2017-08-24 11:19:40 +02:00
Statistics.h Fixed spaces around single-line comments. 2014-07-17 19:13:23 +02:00
Stopwatch.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
StringCompression.cpp Fixed type-casting-related warnings. 2016-08-24 22:26:53 +02:00
StringCompression.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
StringUtils.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
StringUtils.h Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
Tracer.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Tracer.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
UUID.cpp Update mbedtls to 2.5.1 (#3964) 2017-08-30 15:00:06 +01:00
UUID.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
Vector3.h Add TOLUA_EXPOSITION for readability 2017-08-28 14:36:23 +01:00
VoronoiMap.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
VoronoiMap.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
WebAdmin.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
WebAdmin.h Removed unused forward declarations (#3888) 2017-08-03 15:10:29 +02:00
World.cpp improve rain simulation (#4017) 2017-12-26 21:25:57 +00:00
World.h improve rain simulation (#4017) 2017-12-26 21:25:57 +00:00
XMLParser.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00