summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntitySquid.java
Commit message (Collapse)AuthorAgeLines
* Rework mob item dropping on death. Fixes BUKKIT-5625Travis Watkins2014-05-26-8/+3
| | | | | | | | | | | | | | | | | | | 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.
* Update CraftBukkit to Minecraft 1.7.5Nate Mortensen2014-03-21-12/+12
|
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-15/+15
|
* Update CraftBukkit to 1.6.4feildmaster2013-09-19-9/+9
|
* Update CraftBukkit to 1.6.2mbax2013-07-08-8/+8
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-57/+61
|
* Various minor performance improvementsTravis Watkins2013-04-13-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a check to avoid doing movement work if an entity doesn't move. This usually will not ever happen in the current server but is useful when it does and will be more useful in the future. Only process mob on mob (non-player) collisions every other tick. Players tend to pack a lot of mobs into a small space (sheep farm, mob grinder, etc) so they do a lot of work processing collisions. To help alleviate some of this we only run these calculations every other tick. This has no visible effect on the client but can be a huge win on the server depending on circumstances. Use generic entity inWater checking for squids. Squids have their own logic currently for determining if they are in water. This check is almost identical to the generic entity checking which is run anyway. To avoid doing duplicate work we just remove the squid version. This does not have any noticeable effect on gameplay since the checks are so similar. Use HashSet for tile entities instead of ArrayList. Using an ArrayList for storing tile entities in a world means we have very expensive inserts and removes that aren't at the end of the array due to the array copy this causes. This is most noticeable during chunk unload when a large number of tile entities are removed from the world at once. Using a HashSet here uses a little more memory but is O(1) for all operations so removes this bottleneck.
* Cleanup comments, formatting, etcTravis Watkins2013-03-25-1/+1
|
* Update CraftBukkit to Minecraft 1.5.1Travis Watkins2013-03-20-1/+1
|
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-32/+32
|
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-24/+24
|
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-28/+28
|
* Use correct variable for squid Y motion. Fixes BUKKIT-2648Travis Watkins2012-10-28-1/+1
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-38/+38
|
* Use TrigMath in hotspotsTravis Watkins2012-08-19-2/+6
| | | | | Use our implementation of atan2 in AI routines as profiling shows these are hotspots and (for these cases) our implementation is much faster.
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-61/+48
|
* Cleaned up CraftBukkit comments in NMS.Wesley Wolfe2012-07-23-2/+1
| | | | | | | | | | | | | 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
* Updated to Minecraft version 1.2.4. Updated version string to 1.2.4-R0.1.Nathan Adams2012-03-22-3/+3
|
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-11/+11
|
* 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-8/+8
|
* Update to mc-dev rename revision 01Nathan Adams2012-01-12-1/+1
|
* Updated to use mc-dev rename revision 1Nathan Adams2011-11-30-1/+1
|
* Update for 1.0.0Erik Broes2011-11-20-20/+31
|
* Refactored a bunch of death code into the event factoryDinnerbone2011-09-21-10/+2
|
* Update for Minecraft 1.8Dinnerbone2011-09-15-45/+45
|
* Update to Minecraft 1.7Dinnerbone2011-06-30-5/+7
|
* Massive renaming update in nms. If you bypassed Bukkit, you will likely break.Erik Broes2011-06-27-15/+6
| | | | Also minimized all the nms diffs and generic cleanups all around.
* Made Squids fire EntityDeath events.EvilSeph2011-06-14-0/+164
|
* Reworked getEntity; Hi instanceof, bay 16 classesErik Broes2011-01-30-157/+0
|
* Port to new mc-dev format.Erik Broes2011-01-30-88/+77
|
* Entity audit. Adds checks for null entities, and adds conformity.Andrew Ardill2011-01-21-4/+4
|
* fixed imports on all EntitiesAndrew Ardill2011-01-18-0/+2
|
* Addition of all Entity classes.Andrew Ardill2011-01-18-0/+7
| | | | | | Each Entity creates a corresponding instance of a Craft Entity, to be used whenever sending instances to an event handler with getBukkitEntity().
* Adding all Entities into CraftBukkit.Andrew Ardill2011-01-18-0/+159
These are needed to properly allow for determining class type, in accordance with current practice.