summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ItemFood.java
Commit message (Collapse)AuthorAgeLines
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-93/+0
|
* Add API to control scaled health. Adds BUKKIT-4590T00thpick12013-07-23-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This commit implements the ability to set the scale of hearts that the client renders. When the Packet44UpdateAttributes packet is sent, the max health attribute is replaced with a scaled version, to preserve the scaled health illusion clientside. In order to accurately display the scaled health for players, a true health is stored within CraftPlayer, and the datawatcher now stores the scaled health. The getHealth() method for players still returns their true health. Changed setHealth() within EntityLiving to appropriately handle health for instances of EntityPlayer. Inlined a call to setHealth(getMaxHealth()) within the EntityLiving constructor to work around CraftEntity instantiation. Additionally fixes the health values sent when eating food within FoodMetaData and ItemFood, which previously sent the unscaled health; this commit alters them to send the properly scaled health. Additionally fixes BUKKIT-4535, BUKKIT-4536, and BUKKIT-4127
* Removed extra eat call. Fixes BUKKIT-4462EvilSeph2013-07-04-1/+0
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-18/+19
|
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-17/+17
|
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-20/+20
|
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-14/+14
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-19/+19
|
* Update the client after a FoodLevelChange event is fired. Fixes BUKKIT-2510EvilSeph2012-09-12-0/+2
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-30/+30
|
* Don't cap food level at 20 when eating. Fixes BUKKIT-1667Travis Watkins2012-05-17-1/+2
| | | | | | | | | The amount of food gained when eating is used for calculating the food saturation value so capping it at 20 at this point causes us to get incorrect results. FoodMetaData.eat caps it at 20 anyway so we're safe to not do so here. Also readds a line from mc-dev that was mistakenly removed.
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-18/+18
|
* Adjusted CraftBukkit to work with the entity event convenience patch in ↵TomyLobo2012-02-29-4/+1
| | | | Bukkit. Addresses BUKKIT-809
* Update for 1.1_01 renames.Erik Broes2012-01-15-4/+4
| | | | | We know these updates (can) break plugins bypassing Bukkit. They are needed for smooth updates however. There will be another one right before before 1.1-R1.
* Updated to Minecraft 1.1Erik Broes2012-01-12-23/+23
|
* Update for 1.0.0Erik Broes2011-11-20-29/+29
|
* Fixed saturation handling for FoodLevelChange event.EvilSeph2011-09-26-2/+3
|
* Update to mcdev rename revision 01 for 1.8.1Dinnerbone2011-09-24-1/+1
|
* Fixed FoodLevelChange event adding too much to the food level.EvilSeph2011-09-22-2/+3
|
* Added FoodLevelChange event.EvilSeph2011-09-21-0/+91