summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityZombie.java
Commit message (Collapse)AuthorAgeLines
* Handle null targets in target event. Fixes BUKKIT-5635Travis Watkins2014-05-26-2/+5
|
* Rework mob item dropping on death. Fixes BUKKIT-5625Travis Watkins2014-05-26-11/+11
| | | | | | | | | | | | | | | | | | | After the changes in d611cff2 we started including a mob's equipment when calling EntityDeathEvent so plugins can access this data. However, the changes to enable this triggered a bug that makes skeletons and pig zombies no longer drop equipment because they handle this differently than the rest. On top of this we don't handle dropping equipment for mobs that cannot pick up items in vanilla even though vanilla does drop equipment for them if you summon them with it. We also do not include a horse's inventory in the event so they drop their saddle, armor, chest, and chest contents with no way for a plugin to control this. To solve this issues we revert mob item dropping back to vanilla logic and instead just capture all their drops in the method they all call to spawn them into the world. We also move horse inventory dropping so it happens at a time when we're capturing these drops. With these changes all items mobs drop on death should now be included in the event and we have less diff to worry about for future updates.
* [Bleeding] Call EntityTargetEvent in many new places.GJ2014-04-18-1/+8
| | | | | Adds BUKKIT-5388, BUKKIT-5387, BUKKIT-5386, BUKKIT-5483, BUKKIT-5484. Fixes BUKKIT-5389.
* [Bleeding] Add many missing SpawnReasons.GJ2014-04-18-4/+5
| | | | | | | | | | Adds BUKKIT-5370, BUKKIT-5377, BUKKIT-5378, BUKKIT-5379, BUKKIT-5380, BUKKIT-5381, BUKKIT-5382. Adds reasons for zombies infecting villagers and zombie villagers being cured. Readds reason for a skeleton being spawned as a spider jockey. Adds reason to distinguish ocelot babies from the parent they spawned with. Adds reasons for chunk generation causing the ender dragon, villagers, and witches to spawn. And finally, adds a reason for spawning a chicken mount for a baby zombie.
* Update CraftBukkit to Minecraft 1.7.8Travis Watkins2014-04-11-1/+1
|
* Update CraftBukkit to Minecraft 1.7.5Nate Mortensen2014-03-21-34/+58
|
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-75/+136
|
* Update CraftBukkit to 1.6.4feildmaster2013-09-19-10/+10
|
* Use correct spawn reason for Zombie reinforcements. Fixes BUKKIT-4744EvilSeph2013-09-10-1/+1
|
* Update CraftBukkit to 1.6.2mbax2013-07-08-41/+53
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-67/+119
|
* Fix negative damage from Zombies. Fixes BUKKIT-4193ST-DDT2013-06-13-1/+3
| | | | | | | | | | | | | | | Currently, the method used for calculating the damage of zombies is scaled to their health, but it uses the default max health rather than the real max health value. If zombies have more health than the default max health value, the amount of damage they deal becomes negative. This is caused by EntityZombie.getMaxHealth() returning a hardcoded value of 20, which is the vanilla max health for zombies. Rather than using this value when calculating zombie damage, the call is changed to instead use ((CraftLivingEntity) this.bukkitEntity).getMaxHealth(). This uses the true maximum health of the Entity. "this.maxHealth" could be used instead of the aforementioned method, however that creates a very unclear diff, and a confusing change.
* Fix things using wall time running too fast. Fixes BUKKIT-4155Travis Watkins2013-04-27-1/+1
| | | | | | | | | | | | | | When converting things in Minecraft to use wall time instead of ticks I realized we'd run into integer division rounding issues and could have updates that end up counting as zero ticks. To compensate for this the code ensures we always process at least one tick. However, every time we end up with zero ticks the next time we have an extra tick due to rounding the other way with the leftovers. This means we are going far too fast and should not have this at least one tick logic at all. On top of this some potions rely on the number of ticks they run and not just the amount of time they last and so potions were put back to running with ticks entirely.
* Update CraftBukkit to Minecraft 1.5.2Travis Watkins2013-04-27-3/+3
|
* Use wall time instead of ticks for several things. Fixes BUKKIT-4059Travis Watkins2013-04-13-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Currently furnace smelting and the item pickup delay timer use wall time (aka actual time passed) to emulate a constant tick rate so run at the same speed regardless of the server's actual tick rate. There are several other places this makes sense so this commit converts them. The item despawn timer is converted so now always takes 5 minutes. Users know this 5 minute number well so keeping this constant helps to avoid confusion. This also helps alleviate lag because if a large number of item drops is the reason your server is running slowly having them stay around longer just means your server is slow longer. Potion brewing and the zombie villager conversion timer are now constant. These match the furnace criteria of being useful for hiding lag and not having a detrimental effect on gameplay. Potion effects are now also using wall time. The client is told about effect times in ticks and displays this information to the user as minutes and seconds assuming a solid 20 ticks per second. The server does have code for updating the client with the current time remaining to help avoid skew due to differing tick rates but making this a constant makes sense due to this display.
* Call appropriate event for zombies igniting players. Adds BUKKIT-3915gjmcferrin@gmail.com2013-03-28-2/+12
|
* Cleanup comments, formatting, etcTravis Watkins2013-03-25-1/+1
|
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-34/+49
|
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-8/+8
|
* Implement API for Skeleton and Zombie types. Fixes BUKKIT-2818James Clarke2012-11-17-1/+1
|
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-30/+30
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-32/+268
|
* Update to 1.3.2Travis Watkins2012-08-25-1/+1
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-30/+30
|
* Updated to Minecraft version 1.2.4. Updated version string to 1.2.4-R0.1.Nathan Adams2012-03-22-2/+2
|
* [Bleeding] Account for new rare drops in EntityDeath events. Fixes BUKKIT-1105zerg9602012-03-21-15/+13
|
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-15/+42
|
* Update for 1.1_01 renames.Erik Broes2012-01-15-1/+1
| | | | | 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-2/+11
|
* Updated to use mc-dev rename revision 1Nathan Adams2011-11-30-3/+3
|
* Implementation of reworked EntityCombustEventsAndrew Ardill2011-11-29-2/+2
| | | | | Also includes some extra comments, and a refactoring of the PaintingBreakByEntity event that is raised when lighting strikes a painting.
* Update for 1.0.0Erik Broes2011-11-20-11/+23
|
* Update for Minecraft 1.8Dinnerbone2011-09-15-10/+10
|
* Update to Minecraft 1.7Dinnerbone2011-06-30-2/+2
|
* Massive renaming update in nms. If you bypassed Bukkit, you will likely break.Erik Broes2011-06-27-6/+2
| | | | Also minimized all the nms diffs and generic cleanups all around.
* Update for 1.6.5Erik Broes2011-05-30-1/+1
|
* Implemented 1.6!Dinnerbone2011-05-26-1/+1
|
* Update for 1.5_02.Erik Broes2011-04-21-7/+7
|
* Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break.Erik Broes2011-04-20-2/+2
|
* Updated to Minecraft version 1.4Dinnerbone2011-03-31-3/+3
|
* Updated for the cleanups done in BukkitErik Broes2011-03-26-2/+1
|
* Generic code cleanupErik Broes2011-02-23-0/+1
|
* Update to Minecraft 1.3 betaDinnerbone2011-02-23-5/+5
|
* Fixed rogue chmodsErik Broes2011-01-30-0/+0
|
* Reworked getEntity; Hi instanceof, bay 16 classesErik Broes2011-01-30-6/+0
|
* Port to new mc-dev format.Erik Broes2011-01-30-11/+13
|
* Entity audit. Adds checks for null entities, and adds conformity.Andrew Ardill2011-01-21-3/+3
|
* fixed imports on all EntitiesAndrew Ardill2011-01-18-0/+1
|
* Addition of all Entity classes.Andrew Ardill2011-01-18-5/+2
| | | | | | Each Entity creates a corresponding instance of a Craft Entity, to be used whenever sending instances to an event handler with getBukkitEntity().
* Updates to all Entities to use getBukkitEntity() any time an event isAndrew Ardill2011-01-18-1/+1
| | | | | raised. Similar update to CraftVehicle and CraftLivingEntity