1
0
Fork 0
cuberite-2a/src/Mobs
Alexander Harkness cdc452916e
Replace buckets to the selected hotbar slot, rather than the first available. (#4580)
* Replace buckets to the selected hotbar slot, rather than the first available.

Replicates vanilla behaviour, as well as being more logical.

* Refactor cInventory::AddItem. Behaviour is now documented

* Add new cInventory::ReplaceOneEquippedItem and ::SetEquippedItem methods

* Return empty potion to the same slot after drinking

* Replace buckets correctly in other situations, not simply water and lava

Uses the new ReplaceOneEquippedItem method

* Correct collecting water from source block with bottle

* Add cPlayer::ReplaceOneEquippedItemTossRest method

* Handle stacked filled buckets (in theory)

Use new cPlayer::ReplaceOneEquippedItemTossRest method
2020-04-02 12:42:15 +00:00
..
AggressiveMonster.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
AggressiveMonster.h Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Bat.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Bat.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Blaze.cpp Improvements to blaze and ghast (#4547) 2020-03-26 18:54:40 +01:00
Blaze.h Improvements to blaze and ghast (#4547) 2020-03-26 18:54:40 +01:00
CMakeLists.txt Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
CaveSpider.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
CaveSpider.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Chicken.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Chicken.h Ocelots don't take fall damage (#4171) 2018-02-04 20:53:35 +00:00
Cow.cpp Replace buckets to the selected hotbar slot, rather than the first available. (#4580) 2020-04-02 12:42:15 +00:00
Cow.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Creeper.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Creeper.h 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
EnderDragon.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
EnderDragon.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Enderman.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Enderman.h Use clang-tidy to check more code conventions (#4214) 2018-05-06 18:07:34 +01:00
Ghast.cpp Improvements to blaze and ghast (#4547) 2020-03-26 18:54:40 +01:00
Ghast.h Improvements to blaze and ghast (#4547) 2020-03-26 18:54:40 +01:00
Giant.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Giant.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Guardian.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Guardian.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Horse.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Horse.h Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
IncludeAllMonsters.h Added Rabbits 2014-12-20 10:31:34 +01:00
IronGolem.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
IronGolem.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MagmaCube.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
MagmaCube.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Monster.cpp Decrease attack cooldown for monsters (#4542) 2020-03-26 20:11:43 +02:00
Monster.h Tweak attack ranges 2020-04-02 09:30:50 +02:00
MonsterTypes.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Mooshroom.cpp Replace buckets to the selected hotbar slot, rather than the first available. (#4580) 2020-04-02 12:42:15 +00:00
Mooshroom.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Ocelot.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Ocelot.h Ocelots no longer multiply exponentially (#4272) 2018-07-30 12:49:46 +01:00
PassiveAggressiveMonster.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
PassiveAggressiveMonster.h Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
PassiveMonster.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
PassiveMonster.h Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Path.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Path.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
PathFinder.cpp Deal with covered switches consistently (#4161) 2018-02-04 23:07:12 +00:00
PathFinder.h Correct typo in documentation. 2016-02-05 16:45:55 +00:00
Pig.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Pig.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Rabbit.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Rabbit.h Fixed type-casting-related warnings. 2016-08-24 22:26:53 +02:00
Sheep.cpp Fix typo in block break particle coordinate (#4555) 2020-03-27 02:40:16 +02:00
Sheep.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00
Silverfish.h Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Skeleton.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Skeleton.h fix cavespider poisoning even if attack is in cooldown 2015-11-08 21:01:02 +01:00
Slime.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Slime.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SnowGolem.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
SnowGolem.h snow golems are "neutral" 2015-12-13 13:13:37 +01:00
Spider.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Spider.h Spectators added (#2852) 2016-10-12 14:38:45 +02:00
Squid.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Squid.h SetSwimState now takes into account head height 2017-09-01 14:50:02 +01:00
Villager.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Villager.h Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
Witch.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Witch.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Wither.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Wither.h Changed entity ownership model to use smart pointers 2017-08-07 19:24:16 +01:00
Wolf.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Wolf.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
Zombie.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
Zombie.h AI - Better daylight handling 2015-05-02 14:32:33 +03:00
ZombiePigman.cpp Add ambient mob sounds (#4521) 2020-03-22 15:50:34 +00:00
ZombiePigman.h Fixed cactus detection and zombie pigman sword (#3584) 2017-02-25 19:14:08 +01:00