1
0
cuberite-2a/src/Entities
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
..
ArrowEntity.cpp Don't remove items twice (#4524) 2020-03-22 12:17:04 +02:00
ArrowEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Boat.cpp Don't send entity velocity for boats (#4488) 2020-03-07 13:56:02 +02:00
Boat.h Don't send entity velocity for boats (#4488) 2020-03-07 13:56:02 +02: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
EnderCrystal.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
EnderCrystal.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Entity.cpp Pickup spawn improvements (#4525) 2020-03-23 00:05:47 +00:00
Entity.h Prevent player from being destroyed by plugins (#4584) 2020-03-31 11:39:23 +00:00
EntityEffect.cpp Fix effect crashes (#4530) 2020-03-22 17:34:24 +02:00
EntityEffect.h Implement invisibility effect 2017-08-03 15:34:38 +02:00
ExpBottleEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ExpBottleEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ExpOrb.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
ExpOrb.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FallingBlock.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
FallingBlock.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FireChargeEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FireChargeEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FireworkEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
FireworkEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Floater.cpp Fix typo in floater code (#4556) 2020-03-27 02:40:40 +02:00
Floater.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
GhastFireballEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
GhastFireballEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
HangingEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
HangingEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ItemFrame.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ItemFrame.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
LeashKnot.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
LeashKnot.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Minecart.cpp Moved growing from cWorld / cChunk to cBlockHandler descendants. 2019-10-28 10:45:43 +01:00
Minecart.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Painting.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Painting.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Pawn.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Pawn.h cPawn: Reset last ground height in ResetPosition (#4261) 2018-07-23 17:26:48 +01:00
Pickup.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
Pickup.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Player.cpp Replace buckets to the selected hotbar slot, rather than the first available. (#4580) 2020-04-02 12:42:15 +00:00
Player.h Replace buckets to the selected hotbar slot, rather than the first available. (#4580) 2020-04-02 12:42:15 +00:00
ProjectileEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ProjectileEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
SplashPotionEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
SplashPotionEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownEggEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownEggEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownEnderPearlEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownEnderPearlEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownSnowballEntity.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
ThrownSnowballEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
TNTEntity.cpp TNT position fixes (#4519) 2020-03-22 17:33:36 +02:00
TNTEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
WitherSkullEntity.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
WitherSkullEntity.h Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00