summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityPlayer.java
Commit message (Collapse)AuthorAgeLines
* Update CraftBukkit to Minecraft 1.7.10Travis Watkins2014-07-08-28/+29
|
* Faux sleepers wake up normally. Fixes BUKKIT-3667Yariv Livay2014-04-18-1/+1
|
* Update chest animation after cancelling open event. Fixes BUKKIT-1440bloodshot2014-04-18-12/+44
| | | | | | | Currently if a plugin cancels an InventoryOpenEvent for vanilla chests, the chest animation for clients is stuck in the open state since IInventory's closeContainer method is never called. To fix the issue, closeContainer is called before exiting the display GUI method.
* Update CraftBukkit to Minecraft 1.7.8Travis Watkins2014-04-11-6/+18
|
* Fix teleport failing right after join. Fixes BUKKIT-5479Travis Watkins2014-03-22-0/+7
| | | | | | | | | | Teleporting a player checks to see if the player is disconnected to try to avoid creating ghost players. The check it uses, however, randomly fails when the player is in the middle of joining the server. The check that would work correctly here does not work correctly when the player actually disconnects. To work around this we add a new flag which is cleared on the first tick of the new player and assume they are connected if the flag is set.
* Update CraftBukkit to Minecraft 1.7.5Nate Mortensen2014-03-21-44/+52
|
* Fix attributes not clearing on death. Fixes BUKKIT-5213EvilSeph2013-12-20-1/+1
| | | | | | | | Due to an incorrect mapping of this method to a friendly name, we're unfortunately calling the wrong method within EntityPlayer.reset() to reset attributes. Instead of what we've mapped as "removeAllEffects", we should be calling EntityLiving.aP(). This mapping should be corrected in the next naming version.
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-154/+241
|
* Update CraftBukkit to 1.6.4feildmaster2013-09-19-8/+17
|
* Add API to control scaled health. Adds BUKKIT-4590T00thpick12013-07-23-1/+9
| | | | | | | | | | | | | | | | | | | | | | | 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
* Correctly fire VehicleExitEvent. Fixes BUKKIT-3761Nate Mortensen2013-07-13-3/+7
| | | | | | | | | | | | This change makes it so that EntityHuman#setPassengerOf(Entity) invokes its parent method when leaving vehicles so that VehicleExitEvent is fired for players leaving vehicles. This change also fixes BUKKIT-2110, making it so VehicleExitEvent correctly handles cancellation. The implementation of VehicleExitEvent completely ignored the cancellation state of the event, making it so that cancelling the event had no effect. Cancelling a VehicleExitEvent now causes the entity to remain inside of the vehicle, with no visual stutter.
* Clear attributes on death; mistranslation issue.EvilSeph2013-07-10-1/+1
|
* Update CraftBukkit to 1.6.2mbax2013-07-08-8/+15
|
* Properly clear attributes on remove and death. Fixes BUKKIT-4416EvilSeph2013-07-03-1/+1
|
* Fix scaling for player health. Fixes BUKKIT-4431Wesley Wolfe2013-07-02-2/+2
|
* Rework max health values. Fixes BUKKIT-4398Wesley Wolfe2013-07-02-4/+3
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-84/+114
|
* Improve InventoryCloseEvent handling. Fixes BUKKIT-3286Travis Watkins2013-05-02-0/+8
| | | | | | | | | | Currently there are several cases where a player will have their inventory screen closed client side but we will not call an event. To correct this we call the event when the server is the cause of the inventory closing instead of just when the client is the cause. We also ensure the server is closing the inventory reliably so we get the events. Additionally this commit also calls the event when a player disconnects which will handle kicks, quits, and server shutdown.
* Update CraftBukkit to Minecraft 1.5.2Travis Watkins2013-04-27-2/+10
|
* Fetch tile entities from chunks instead of world. Fixes BUKKIT-4055Travis Watkins2013-04-13-2/+5
| | | | | | | | | | | | | When looking up tile entities for a chunk to send to a player we currently loop through every tile entity in the world checking if it is within the bounds of the relevant chunk. Instead of doing this we can just use the tile entities list stored in the chunk to avoid this costly searching. As a further optimization, we also modify the generic range-based lookup to use chunks as well. For most lookups this will give a smaller search pool which will result in faster lookups. Thanks to @mikeprimm for the idea and most of the implementation.
* Implement Scoreboard API. Adds BUKKIT-3776mbax2013-04-04-11/+5
| | | | | | | | | | | | | | | | | | This implementation facilitates the correspondence of the Bukkit Scoreboard API to the internal minecraft implementation. When the first scoreboard is loaded, the scoreboard manager will be created. It uses the newly added WeakCollection for handling plugin scoreboard references to update the respective objectives. When a scoreboard contains no more active references, it should be garbage collected. An active reference can be held by a still registered objective, team, and transitively a score for a still registered objective. An internal reference will also be kept if a player's specific scoreboard has been set, and will remain persistent until that player logs out. A player's specific scoreboard becomes the scoreboard used when determining team structure for the player's attacking damage and the player's vision.
* Cleanup comments, formatting, etcTravis Watkins2013-03-25-16/+16
|
* Update CraftBukkit to Minecraft 1.5.1Travis Watkins2013-03-20-5/+5
|
* Only set player weather if a plugin requested it.Travis Watkins2013-03-18-1/+4
| | | | | | | If the server changes the weather it will set the per-player weather variable and future changes will not apply. We should only set this variable when a plugin is requesting per-player weather and not when the server it doing it.
* Implement per-player Weather API. Adds BUKKIT-812T00thpick12013-03-18-0/+21
|
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-97/+160
|
* [Bleeding] Add experimental support for entity portal travelingEdGruberman2013-01-19-5/+12
|
* Update CraftBukkit to Minecraft 1.4.7feildmaster2013-01-17-1/+1
|
* Implement entity max health methods. Adds BUKKIT-266feildmaster2012-12-23-2/+3
|
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-76/+76
|
* Implement ItemFactory and ItemMeta values. Adds BUKKIT-15Wesley Wolfe2012-12-17-2/+2
|
* Players should be able to pick up items by default. Fixes BUKKIT-3143feildmaster2012-12-10-0/+1
| | | | As an added feature, players defaulted to being able to not pick up items if the flag was false. However, since minecraft doesn't normally use the flag on players, the flag was always false.
* Fix players losing experience when keepInventory is true. Fixes BUKKIT-2915EvilSeph2012-11-18-2/+4
|
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-62/+73
|
* [Bleeding] Fix mistranslation affecting time of the server vs time of day.md_52012-11-02-2/+2
| | | | Fixes BUKKIT-2797
* Expose API for managing and using GameRules. Adds BUKKIT-2757feildmaster2012-10-31-12/+17
|
* Update PotionEffects on player death. Fixes BUKKIT-2673h31ix2012-10-28-0/+3
| | | | | | | On player death player PotionEffects need to be updated so that a player's invisibility and other effects are removed, otherwise they will persist after a respawn. This is a carry-over from our use of persistent player entities.
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-156/+112
|
* What is dead may never die.EvilSeph2012-09-14-0/+4
|
* Update to 1.3.2Travis Watkins2012-08-25-1/+1
|
* Fix "moved too quickly" detection.Travis Watkins2012-08-05-0/+2
|
* Don't use Packet56 and clear client cache on world changes.Travis Watkins2012-08-05-1/+7
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-219/+297
|
* Cleaned up CraftBukkit comments in NMS.Wesley Wolfe2012-07-23-8/+5
| | | | | | | | | | | | | Added newlines at the end of files Fixed improper line endings on some files Matched start - end comments Added some missing comments for diffs Fixed syntax on some spots Minimized some diff Removed some no longer used files Added comment on some required files with no changes Fixed imports of items used once Added imports for items used more than once
* Reuse ItemInWorldManager, and stop applying ability changes. Fixes BUKKIT-1811feildmaster2012-07-09-4/+1
|
* Updated to Minecraft version 1.2.4. Updated version string to 1.2.4-R0.1.Nathan Adams2012-03-22-5/+11
|
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-21/+38
|
* Updated to rename revision 02Erik Broes2012-03-01-46/+45
|
* [Bleeding] Implementation of inventory framework. Addresses BUKKIT-856Celtic Minstrel2012-02-29-7/+46
| | | | | | | | | | | | See the corresponding Bukkit commit for details. Implementation details: - Any packets that include an itemstack will send air stacks as null; maybe this will even eliminate the client crash that occurs if the client receives an air stack - Better handling of null itemstacks in general (ie less converting them to air stacks) - Inventory.setContents() can now take an array smaller than the inventory without error - Player.updateInventory() should now correctly update the result slot in a crafting inventory Some small credit goes to Afforess (initial implementation of openInventory() methods) and Drakia (initial implementation of InventoryOpenEvent and InventoryCloseEvent).
* Use OO > new methodErik Broes2012-01-29-4/+5
|