Commit graph

726 commits

Author SHA1 Message Date
CraftBukkit/Spigot
ccaef1ea05 Fixed CraftLivingEntity.damage when the entity is an EntityComplex.
Fixes BUKKIT-589: if you call damage on an instance of EnderDragon, no damage
is done.

Reason for bug: damage calls Entity.damageEntity.  But EntityComplex
overrides damageEntity to do nothing.

Fix: CraftComplexLiving should call EntityComplex.e instead of
Entity.damageEntity.  e is the method that actually does damage to an
instance of EntityComplex.

By: Sam Wilson <sam.wilson@gmail.com>
2012-01-23 22:04:18 -08:00
CraftBukkit/Spigot
0342a99482 [Bleeding] Implemented PotionSplashEvent. Closes BUKKIT-307
By: Zeerix <zeerix@draig.de>
2012-01-20 09:56:02 +01:00
CraftBukkit/Spigot
655b5d0aa9 Reverted changes to getItem(). Will be reimplemented after RB.
By: EvilSeph <evilseph@gmail.com>
2012-01-20 14:52:32 -05:00
CraftBukkit/Spigot
5d0878be04 Accounted for NMS getItem() returning null in recent commit.
By: EvilSeph <evilseph@gmail.com>
2012-01-20 11:45:37 -05:00
CraftBukkit/Spigot
d8ad13e979 Properly handle null and air items. Fixes BUKKIT-435 and BUKKIT-550
We'll probably want to implement an ItemStack.EMPTY and return that
instead of NULL in the near future.

By: EvilSeph <evilseph@gmail.com>
2012-01-20 02:26:26 -05:00
CraftBukkit/Spigot
2c16b85e3c Updated timing code for new event system
By: Tahg <tahgtahv@gmail.com>
2012-01-19 13:01:41 -05:00
CraftBukkit/Spigot
57da325786 Add updated repos to pom.xml
By: Erik Broes <erikbroes@grum.nl>
2012-01-19 23:02:46 +01:00
CraftBukkit/Spigot
7f9357bd63 Prevent re-use of internal world dimension IDs. This fixes BUKKIT-448. Thanks to snowleo for the PR.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-19 16:09:24 +00:00
CraftBukkit/Spigot
127e32a023 Throw PlayerLevelChangeEvent and PlayerExpChangeEvent events. Thanks to feildmaster for the PR.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-19 16:06:27 +00:00
CraftBukkit/Spigot
0579af1ac0 Correctly take in ChatColor length when limiting player list size. This should fix BUKKIT-571
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-19 15:09:06 +00:00
CraftBukkit/Spigot
179363588e Actually close the inventory on a *cross*-world teleport.
By: Erik Broes <erikbroes@grum.nl>
2012-01-17 22:50:18 +01:00
CraftBukkit/Spigot
322754c180 Implement Player.setBedSpawnLocation(Location). Thanks md_5
By: Erik Broes <erikbroes@grum.nl>
2012-01-17 22:35:31 +01:00
CraftBukkit/Spigot
6bfc0a0dce [Bleeding] Make BaseBiome to Biome mapping faster, detect missing mapping in future updates
By: Mike Primm <mike@primmhome.com>
2011-12-10 20:06:33 -06:00
CraftBukkit/Spigot
6429a4663c [Bleeding] Implement EntityShootBowEvent. Thanks Zeerix.
By: Zeerix <zeerix@draig.de>
2011-12-28 21:36:02 +01:00
CraftBukkit/Spigot
c2bf4d0844 [Bleeding] Implementation of the brewing stand.
By: Erik Broes <erikbroes@grum.nl>
2012-01-17 17:08:54 +01:00
CraftBukkit/Spigot
64a5086437 [Bleeding] Make sure to close any open inventory windows before teleporting. Thanks md_5.
By: Erik Broes <erikbroes@grum.nl>
2012-01-17 13:22:59 +01:00
CraftBukkit/Spigot
0c70cec69d [Bleeding] Added event calls for healing and harming by potions
By: Zeerix <zeerix@draig.de>
2012-01-14 00:29:44 +01:00
CraftBukkit/Spigot
b785b7f01c [Bleeding] Implemented Block.breakNaturally and Block.getDrops
By: Zeerix <zeerix@draig.de>
2012-01-12 03:10:10 +01:00
CraftBukkit/Spigot
25f2241c78 [Bleeding] Implemented Block.getLightFromSky() and Block.getLightFromBlocks()
By: Mike Primm <mike@primmhome.com>
2011-12-29 13:31:21 -06:00
CraftBukkit/Spigot
a7fb25114f [Bleeding] Implemented World.getEntitiesByClass(Class<T>... classes)
By: Mike Primm <mike@primmhome.com>
2011-12-11 17:27:53 -06:00
CraftBukkit/Spigot
8c6136662c [Bleeding] Implement animal breeding API changes.
By: Erik Broes <erikbroes@grum.nl>
2012-01-05 19:30:00 +01:00
CraftBukkit/Spigot
a9e780978a Fixed LongHashset incorrectly using read lock for popAll, and made it use write lock. This fixes BUKKIT-509
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-15 18:49:16 +00:00
CraftBukkit/Spigot
e3c83ba119 Implemented World.getWorldType
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-15 17:44:15 +00:00
CraftBukkit/Spigot
876c2db682 Dragons now throw events when creating portals
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-15 12:00:38 +00:00
CraftBukkit/Spigot
fd9c7e7c07 Implemented allowFlight methods. Thanks to Qala for the PR.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-15 10:55:05 +00:00
CraftBukkit/Spigot
5b97177cd4 Made World.playEffect a bit more efficient. Thanks mintplant for the PR.
By: Erik Broes <erikbroes@grum.nl>
2012-01-15 11:42:40 +01:00
CraftBukkit/Spigot
7a06568691 Fix broadcasting to people without permission. Fixes BUKKIT-464. Thanks grandwazir for the PR.
By: Erik Broes <erikbroes@grum.nl>
2012-01-15 11:32:00 +01:00
CraftBukkit/Spigot
4286d75739 Adding the option to suppress overload warnings as a bukkit.yml option. Thanks oloflarsson for the PR.
By: Erik Broes <erikbroes@grum.nl>
2012-01-15 11:11:25 +01:00
CraftBukkit/Spigot
7c345d4d82 Fix formatting.
By: Erik Broes <erikbroes@grum.nl>
2012-01-14 23:02:10 +01:00
CraftBukkit/Spigot
62e770d489 Update for 1.1_01 renames.
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.

By: Erik Broes <erikbroes@grum.nl>
2012-01-14 21:03:48 +01:00
CraftBukkit/Spigot
5dfb95e5cb Implemented new PlayerDeathEvent methods for exp setting
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 18:08:27 +00:00
CraftBukkit/Spigot
e703255cb4 Fixed .createWorld not respecting container folder 100%. Thanks to plleg for the PR.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 17:50:31 +00:00
CraftBukkit/Spigot
f0065e3eef Added .equals and .hashcode to CraftBlockState
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 17:47:15 +00:00
CraftBukkit/Spigot
890ded8fd8 Player.setPlayerListName no longer counts colors towards the 16-char limit. Thanks to an (unfortunately old) PR by ZachBora.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 17:42:18 +00:00
CraftBukkit/Spigot
bc3a338f36 Implemented entity.playEffect. Thanks to main--
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 17:36:47 +00:00
CraftBukkit/Spigot
30bb54a655 Added ItemDespawnEvent
By: Feildmaster <admin@feildmaster.com>
2011-10-17 07:38:03 -05:00
CraftBukkit/Spigot
f2606b7cbe Small optimization in EntityPlayer by caching the hashcode. Thanks to a very old PR by Belphemur. In addition, changed and slightly improved the hashcode formula for entities
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 14:56:47 +00:00
CraftBukkit/Spigot
cbd712ca33 Correct casting for creature target typechecking
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 14:49:41 +00:00
CraftBukkit/Spigot
b7d840939b Fixed any chance of creatures .getTarget throwing a class cast exception - thanks to an old PR by garbagemule!
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 14:45:56 +00:00
CraftBukkit/Spigot
e75caa842b Fixed block.getBiome returning null in new 1.1 biomes. This fixes BUKKIT-496
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 13:14:14 +00:00
CraftBukkit/Spigot
52416316cb Additional commit to fix #BUKKIT-24
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 12:46:23 +00:00
CraftBukkit/Spigot
57daa70dec Fixed informing players of supported Plugin Channels
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-14 01:46:22 +00:00
CraftBukkit/Spigot
b74ebb1480 Undo commit cc60920 to allow for proper integration with the new Bukkit enum values
By: md-5 <md_5@bigpond.com>
2012-01-14 11:14:43 +11:00
CraftBukkit/Spigot
551e3d9143 Implemented new Plugin Message API - see http://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-13 08:52:26 +00:00
CraftBukkit/Spigot
b76a689292 Fix NPE involving WorldTypes when using CraftServer.createWorld(WorldCreator creator)
By: md-5 <md_5@bigpond.com>
2012-01-13 16:06:55 +11:00
CraftBukkit/Spigot
ef2f82b9d2 Updated to Minecraft 1.1
By: Erik Broes <erikbroes@grum.nl>
2012-01-12 23:10:13 +01:00
CraftBukkit/Spigot
f8ed5eb56f Bumped verison to 1.1-R1-SNAPSHOT
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-12 19:10:04 +00:00
CraftBukkit/Spigot
1e0e49a804 Update to mc-dev rename revision 01
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-01-12 15:27:39 +00:00
CraftBukkit/Spigot
11d06bdb64 FIX: CraftServer.getOfflinePlayers was not converting set->array well.
An incorrect method was being used to convert from Set<OfflinePlayer>
to OfflinePlayer[].

Relates to BUKIT-404

By: Andrew Ardill <andrew.ardill@gmail.com>
2012-01-02 10:25:43 +11:00
CraftBukkit/Spigot
06fe4d6b9a CraftItemStack: Make sure this.item is not null when cloning.
Fixes BUKKIT-424

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-29 22:31:55 +11:00