1
0
cuberite-2a/Server/Plugins/APIDump
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
..
Classes Lock hopper when powered by redstone (#4347) 2020-03-27 12:03:28 +00:00
Hooks Add missing documentation file. 2020-03-23 12:24:31 +00:00
Static Renamed output directory to Server 2015-09-05 22:01:21 +02:00
APIDesc.lua Replace buckets to the selected hotbar slot, rather than the first available. (#4580) 2020-04-02 12:42:15 +00:00
InfoFile.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
lang-lua.js Renamed output directory to Server 2015-09-05 22:01:21 +02:00
LICENSE-prettify.txt Renamed output directory to Server 2015-09-05 22:01:21 +02:00
main_APIDump.lua Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
main.css Renamed output directory to Server 2015-09-05 22:01:21 +02:00
prettify.css Renamed output directory to Server 2015-09-05 22:01:21 +02:00
prettify.js Renamed output directory to Server 2015-09-05 22:01:21 +02:00
SettingUpDecoda.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
SettingUpZeroBrane.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
UsingChunkStays.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
WebWorldThreads.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00
Writing-a-Cuberite-plugin.html Remove analytics code (#4394) 2019-09-16 15:38:56 +00:00