summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemBucket.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-15Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang1-2/+2
* Fixes #5144
2020-05-08Use Vector3 for cLineBlockTracer and cBlockTracer (#4715)mBornand1-7/+7
* cLineBlockTracer uses Vector
2020-04-21Vector3 in Handlers (#4680)Mattes D1-10/+24
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-1/+2
The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
2020-04-02Replace buckets to the selected hotbar slot, rather than the first available. (#4580)Alexander Harkness1-26/+6
* 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-03-22Don't remove items twice (#4524)Mat1-2/+1
* Don't remove items twice
2019-12-30Disable block placement in adventure mode (#4424)Mat1-0/+12
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-7/+5
2019-05-07Buckets: Be able to place fluids through other fluids. (#4331)Zach DeCook1-2/+2
2018-07-23Keep players in gmNotSet (#4248)changyong guo1-1/+1
This allows players game mode to update to the default after portal to another world. Fixes #4207
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-1/+0
2017-05-11Tracer replacement (#3704)Mattes D1-4/+5
* Replaced cTracer usage with cLineBlockTracer. * Exported new cLineBlockTracer utility functions to Lua API.
2016-02-05Bulk clearing of whitespaceLogicParrot1-12/+12
2015-05-24Made -Weverything an error.tycho1-1/+1
2015-05-21Fixes #2059Blitz Rakete1-0/+14
2015-05-18Fixes #2052Tiger Wang1-2/+2
2015-04-14Scooping up fluid calls the player placement hooks.Mattes D1-4/+12
Ref.: #1857.
2015-04-14Placing a fluid from bucket calls plugin hooks.Mattes D1-19/+43
Ref.: #1857.
2015-01-18Fixed various warnings.Mattes D1-6/+6
2014-09-26Removed more unessicary includesTycho1-0/+1
2014-07-19Fixed style: spaces after commas.madmaxoft1-1/+1
2014-07-17More trailing whitespace fixes.madmaxoft1-4/+4
2014-07-17Normalized comments.madmaxoft1-2/+2
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-07-16Fixed a bug with bucketsTiger Wang1-1/+1
* Additionally fixed cLineBlockTracer's EntryFace parameter when a block was hit on the first iteration along the projected line
2014-07-14Fixed placing liquids over liquidsTiger Wang1-1/+1
* Fixes #1182
2014-07-12Comment grammar correctionTiger Wang1-1/+1
2014-07-12Simplified buckets code slightlyTiger Wang1-32/+15
2014-07-12Changesdaniel09161-5/+4
2014-07-11Changesdaniel09161-24/+16
2014-07-10Changesdaniel09161-20/+22
2014-07-10Maybe fixed whitespacesdaniel09161-7/+7
2014-07-10Maybe fixed whitespacesdaniel09161-1/+1
2014-07-10Fixed Bucket Placingdaniel09161-6/+57
2014-07-09Fixed Bucket placingdaniel09161-1/+1
2014-03-23Implemented lilypad placementTiger Wang1-4/+4
2014-02-04Improved Type safety of eBlockFaceTycho1-2/+2
May Fix #640
2014-02-02Changed Signiture of OnUpdateTycho1-1/+4
2013-12-17Fixed naming and initialization.madmaxoft1-4/+12
2013-12-17Forgot to change one Vector3d to Vector3i.STRWarrior1-1/+1
2013-12-17Renamed Pos to m_Pos.STRWarrior1-3/+3
2013-12-17Using Recommendations.STRWarrior1-10/+23
2013-12-17Made buckets work when the player does not 'look' at a block. This fixes #265STRWarrior1-32/+53
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-160/+160
2013-07-03Empty buckets replace fluid buckets on use and vice versa (patch contributed by Mgueydan)madmaxoft1-3/+3
Fixes FS #277. API change: added an optional parameter to cItemGrid:AddItem(), cItemGrid:AddItems(), cInventory:AddItem() and cInventory:AddItems() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1643 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24Refactored cInventory to use cItemGrid for the actual Storagemadmaxoft@gmail.com1-8/+4
This makes the API more orthogonal and is easier to use in the plugins. Also changes in the inventory are now propagated to the needed places (armor updates to BroadcastEntityEquipment etc.) even when the inventory is changed by a plugin. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1503 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19Inventory code cleanup, players can now see each other's armormadmaxoft@gmail.com1-7/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1493 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-27Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.madmaxoft@gmail.com1-1/+1
Note that cItems is used in the function signature but not yet exported in the API, TODO! git-svn-id: http://mc-server.googlecode.com/svn/trunk@1176 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-6/+6
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-18Fixed a few bugs in fluid placement - fluid into other fluid, fluid into washable blocks.madmaxoft@gmail.com1-69/+139
git-svn-id: http://mc-server.googlecode.com/svn/trunk@977 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-14Fixed the bucket handling code trying to simulate at the wrong coords (client sends all coords as -1 to signify "item use")madmaxoft@gmail.com1-12/+12
git-svn-id: http://mc-server.googlecode.com/svn/trunk@961 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Unified folder name-casingmadmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-2/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-17Fixed an assert in bucket placementmadmaxoft@gmail.com1-19/+34
git-svn-id: http://mc-server.googlecode.com/svn/trunk@746 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-17Fixed incompatibility to apples c++ compiler...lapayo94@gmail.com1-5/+8
git-svn-id: http://mc-server.googlecode.com/svn/trunk@680 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15A new Block handling system :olapayo94@gmail.com1-0/+75
It was really a lot of work :D Took me the complete weekend :D Would really like to here your opinion on this =) The aim of this is to put all the actions for one block in one place so it is not spread around the source. (ToPickup, Action in cWorld, Action in cChunk, Action here, action there :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@671 0a769ca7-a7f5-676a-18bf-c427514a06d6