Commit graph

865 commits

Author SHA1 Message Date
CraftBukkit/Spigot
65a08c8c6e CraftSign changes. Addresses BUKKIT-824
- Removed the useless world field.
- Made it so changes to a CraftSign (which is a Block*State*) no longer reflect into the world without calling sign.update().

By: TomyLobo <tomylobo@nurfuerspam.de>
2012-02-25 14:47:55 +01:00
CraftBukkit/Spigot
c28f0badc5 Updated README.md with more coding and pull request conventions and tips to get your pull request accepted.
By: EvilSeph <evilseph@gmail.com>
2012-02-23 23:46:41 -05:00
CraftBukkit/Spigot
dc6dd3828c [Bleeding] Override not applicable
By: Wesley Wolfe <weswolf@aol.com>
2012-02-23 17:48:30 -06:00
CraftBukkit/Spigot
585a62f3d3 [Bleeding] Undo changes to the tree WorldGenerators.
- All StructureGrowEvent handling for these is in BlockSapling now, using a BlockChangeDelegate to collect the data.
- Moved StructureGrowDelegate into a separate class

By: Zeerix <zeerix@draig.de>
2011-12-23 00:54:34 +01:00
CraftBukkit/Spigot
117ad7c1be [Bleeding] Fixed setTotalExp, any experience update bugs and removed Deprecated Methods. Fixes BUKKIT-798 and fixes BUKKIT-797
By: Feildmaster <admin@feildmaster.com>
2012-02-22 11:03:56 -06:00
CraftBukkit/Spigot
4122f831fb [Bleeding] Use player.getItemInHand(), instead of a new ItemStack. Addresses BUKKIT-767
By: Feildmaster <admin@feildmaster.com>
2012-02-18 09:14:44 -06:00
CraftBukkit/Spigot
2beeb597e3 Fixed pom.xml
By: Feildmaster <admin@feildmaster.com>
2012-02-22 07:00:42 -06:00
CraftBukkit/Spigot
4c339b247f [Bleeding] Added launchProjectile.
Use launchProjectile in place of individual throwSnowball, throwEgg, and shootArrow methods.

By: aPunch <alexpuncochar@yahoo.com>
2012-02-16 15:12:47 -06:00
CraftBukkit/Spigot
8d2559e42a [Bleeding] Added EntityType to replace CreatureType.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2012-02-06 00:19:23 -05:00
CraftBukkit/Spigot
0126ce2b16 [Bleeding] Added BlockGrowEvent. Addresses BUKKIT-104
By: Feildmaster <admin@feildmaster.com>
2012-02-11 23:32:24 -06:00
CraftBukkit/Spigot
bed15aa413 [Bleeding] Recipe API improvements and fixes. Addresses BUKKIT-738 and BUKKIT-624
Add a recipe iterator to make it possible to retrieve and remove recipes (BUKKIT-738), and updated the recipe classes to not clip the data to 127 (BUKKIT-624)

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2011-07-23 23:16:14 -04:00
CraftBukkit/Spigot
39944f7043 [Bleeding] Cleanup clone method.
By: Wesley Wolfe <weswolf@aol.com>
2012-02-19 12:52:49 -06:00
CraftBukkit/Spigot
da4df32343 [Bleeding] Fire EntityDamageByEntityEvent for EnderCrystal. Fixes BUKKIT-776
By: Feildmaster <admin@feildmaster.com>
2012-02-18 23:43:01 -06:00
CraftBukkit/Spigot
88fca68972 [Bleeding] Moved projectile EntityDamageByEntityEvent's to event factory. Addresses BUKKIT-775
By: Feildmaster <admin@feildmaster.com>
2012-02-10 08:32:11 -06:00
CraftBukkit/Spigot
00c54bbbb6 Add getEntitesByClass(Class<T>), getEntitiesByClasses(Class<?>...), deprecate getEntitiesByClass(Class<T>...)
By: Mike Primm <mike@primmhome.com>
2012-01-27 21:49:55 -06:00
CraftBukkit/Spigot
fa547512af Deprecation cleanup.
By: Erik Broes <erikbroes@grum.nl>
2012-01-30 21:51:53 +01:00
CraftBukkit/Spigot
818efc6bca Fixed NPE when running a custom build of CraftBukkit. This fixes issue #BUKKIT-765
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-02-18 14:06:21 +00:00
CraftBukkit/Spigot
cb0ee4963b Don't print stacktraces on DLB fetching errors. And because I forgot last commit; this adds BUKKIT-760
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-02-17 00:09:56 +00:00
CraftBukkit/Spigot
6ea3041bf5 Added a built-in update checker. See http://wiki.bukkit.org/Bukkit.yml#auto-updater for new bukkit.yml options.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-02-16 22:31:40 +00:00
CraftBukkit/Spigot
fa9de7d0b7 Updated version to 1.1-R5-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-02-13 14:30:00 -05:00
CraftBukkit/Spigot
dadf5be2b1 Updated version to 1.1-R4 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-02-13 11:31:40 -05:00
CraftBukkit/Spigot
9375bc5b94 Use createNMSItemStack on CraftingManager recipe registration. Fixes BUKKIT-602
By: Mushroom Hostage <mushroomhostage@yahoo.com>
2012-02-10 18:13:24 -08:00
CraftBukkit/Spigot
1f1bdfaf98 [Bleeding] Added Potions API. Fixes BUKKIT-389
By: fullwall <fullwall@optusnet.com>
2012-01-09 15:51:32 +08:00
CraftBukkit/Spigot
1bbc68df3d Added configurable animal and monster ticks per spawn setting.
By: EvilSeph <evilseph@gmail.com>
2012-02-10 10:23:52 -05:00
CraftBukkit/Spigot
712381a946 [Bleeding] Make sure we don't keep stale references to vanished players.
By: Travis Watkins <amaranth@ubuntu.com>
2012-02-09 20:08:00 -06:00
CraftBukkit/Spigot
3f25236f90 Prevent the Vanish API from sending unnecessary packets.
By: EvilSeph <evilseph@gmail.com>
2012-02-03 05:11:44 -05:00
CraftBukkit/Spigot
f59f095728 [Bleeding] Implemented Vanish API.
Remove players that cannot see a player from their EntityTrackerEntry and only
send user list updates to players who can see the player they reference.

By: Travis Watkins <amaranth@ubuntu.com>
2012-01-31 13:54:15 -06:00
CraftBukkit/Spigot
994b74a0fd Removed MONSTER CreatureType.
By: EvilSeph <evilseph@gmail.com>
2012-02-03 02:42:40 -05:00
CraftBukkit/Spigot
4cb9c42247 Updated version to 1.1-R4-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-01-30 04:00:50 -05:00
CraftBukkit/Spigot
69f7e1cde7 Updated version to 1.1-R3 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-01-30 03:22:16 -05:00
CraftBukkit/Spigot
9898f70806 Updated version to 1.1-R3-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-01-29 13:48:50 -05:00
CraftBukkit/Spigot
a048cfe1a5 Updated version to 1.1-R2 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-01-29 13:23:42 -05:00
CraftBukkit/Spigot
dfe46ed976 Added 'generate-structure' setting support and WorldCreator property.
Fixes BUKKIT-655 and BUKKIT-592

By: Eric Stokes <fernferret@gmail.com>
2012-01-29 10:40:45 -07:00
CraftBukkit/Spigot
841a60ca59 Added useExactLoginLocation(). Closes BUKKIT-145
useExactLoginLocation() looks for settings.use-exact-login-location within bukkit.yml.

If true, we will bypass Vanilla's behaviour of checking for collisions and moving the player if needed when they login.

If false, we will continue to follow Vanilla's behaviour and move players that 'collide' with objects when they login.

By: EvilSeph <evilseph@gmail.com>
2012-01-29 06:36:43 -05:00
CraftBukkit/Spigot
5695803314 Filter null/AIR from items dropped on death. Fixes: BUKKIT-653
By: Erik Broes <erikbroes@grum.nl>
2012-01-29 13:37:32 +01:00
CraftBukkit/Spigot
ef756d8eba Add some testing
By: Erik Broes <erikbroes@grum.nl>
2012-01-29 11:22:11 +01:00
CraftBukkit/Spigot
ff07115b3c Cleanup.
By: EvilSeph <evilseph@gmail.com>
2012-01-27 18:23:16 -05:00
CraftBukkit/Spigot
655831346f Updated version to 1.1-R2-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-01-25 04:40:11 -05:00
CraftBukkit/Spigot
40cd87e000 Updated versions to 1.1-R1 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-01-25 01:12:09 -05:00
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
CraftBukkit/Spigot
b0ac365f5e Test cloning of CraftItemStacks created with null nms ItemStacks
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-29 22:42:47 +11:00
CraftBukkit/Spigot
1553d52430 Teach CraftServer.getOfflinePlayers to also give all online players.
This method is most useful when it gives all the players who have ever
logged on to the server. Previously, it was not distinguishing between
players who had previously logged on, and were currently logged in,
and those who had previously looged on and were not currently logged in.
A distinction was made, however, between those currently logged in,
but who had not logged in previously.

This commit ensures that all players who have ever logged in (and are
listed as either logged in, or they have a player .dat file) will be
returned by the mentioned method.

Fixes BUKKIT-404

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-27 16:48:09 +11:00
CraftBukkit/Spigot
cfe88f3a5c Update for cleanup in Bukkit
By: Erik Broes <erikbroes@grum.nl>
2011-12-25 15:35:12 +01:00
CraftBukkit/Spigot
3d1cb5ac40 Fixed world.getHighestBlockYAt(x,z) returning 0 for existing but not loaded chunks. This fixes BUKKIT-327. Thanks for dredhorse for the pull request!
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-19 16:30:26 +00:00
CraftBukkit/Spigot
1dc1506bef Make rcon .sendMessage each write on a new line. This fixes BUKKIT-353. Thanks to ks07 for the pull req.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-19 16:22:59 +00:00
CraftBukkit/Spigot
e3b0e1e651 Fix error when cloning enchanted ItemStacks.
The existing method for cloning a Bukkit ItemStack fails to correctly copy
the underlying enchantments. Fix this by overriding .clone() in
CraftItemStack, cloning the underlying nms ItemStack correctly.

Fixes BUKKIT-360

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-20 00:30:54 +11:00
CraftBukkit/Spigot
0b7a5891c5 Test cloning enchanted CraftItemStacks
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-20 00:25:15 +11:00
CraftBukkit/Spigot
c41cf92c61 Add support for junit testing
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-09-23 00:35:09 +10:00
CraftBukkit/Spigot
c2dc1c32b5 Updated version to 1.0.1-R2-SNAPSHOT for development towards next release
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-12 22:07:07 +00:00
CraftBukkit/Spigot
9a312b3acb Updated versions to 1.0.1-R1 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2011-12-12 14:41:48 -05:00
CraftBukkit/Spigot
d2ae4e1d75 Fixed clients not seeing EXP update immediately after using .setTotalExp and level methods
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-12 19:44:14 +00:00
CraftBukkit/Spigot
586d6ad790 Implemented (offline)player date methods
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-12 17:39:52 +00:00
CraftBukkit/Spigot
a02181ac29 Made OfflinePlayer and Player share the same .equals and .hashcode
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-12 15:34:49 +00:00
CraftBukkit/Spigot
8b46844bf4 Stop converting ItemStack to nms ItemStack by hand
This should fix many issues with enchantments being lost, as the method used takes care of enchantments.
Additionally, use the new nms ItemStack constructor in places where appropriate.

Fixes (at least part of) BUKKIT-7. Need to identify any further places to fix.

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-13 01:40:35 +11:00
CraftBukkit/Spigot
90baaa255d Teach CraftWorld.spawn how to spawn a Giant
Fixes BUKKIT-235

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-12 14:35:57 +11:00
CraftBukkit/Spigot
dd1048102f Implemented getKiller in LivingEntity
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-11 16:05:27 +00:00
CraftBukkit/Spigot
a163a97e1c Linked thundering and storming.
By: EvilSeph <evilseph@gmail.com>
2011-12-10 12:20:24 -05:00
CraftBukkit/Spigot
67af7c0ed5 Implemented CraftServer.getAllowEnd(). Thanks codename-B!
By: Erik Broes <erikbroes@grum.nl>
2011-12-09 18:55:36 +01:00
CraftBukkit/Spigot
799afe978e Implemented onStructureGrow event, thanks to md-5.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-09 16:11:56 +00:00
CraftBukkit/Spigot
ffcbcf109c Fix NPE as described in BUKKIT-245. Thanks snowleo
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-08 10:26:39 +11:00
CraftBukkit/Spigot
927bd1f45d Teach EnderDragon how to throw EntityExplosionEvents when it breaks blocks
We also teach CraftWorld how to explode an event, taken from
Explosion.a(boolean) (the code that breaks blocks and drops them on the ground).

The EnderDragon has a flag that slows it down when it hits unbreakable blocks:
Obsidian, White Stone or Bedrock. It might be useful to extend the event so that
plugins can set this.

Letting the API set the default yield for an explosion event has been
deprecated, so we now set the default yield using the appropriate constructor.

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-08 00:23:06 +11:00
CraftBukkit/Spigot
e1c6569f8e Implement new interface ConsoleCommandSender.
Also use abstracted ServerCommandSender to reduce complexity! Yay!

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-07 17:04:00 +11:00
CraftBukkit/Spigot
79d53f0f9b Teach MinecraftServer how to handle Remote Console commands.
This fixes BUKKIT-220. Thanks for the help bawoodruff!

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-07 17:01:05 +11:00
CraftBukkit/Spigot
ae5c797119 Fix for entity spawning and some code cleanup
By: Tahg <tahgtahv@gmail.com>
2011-12-06 19:21:10 -05:00
CraftBukkit/Spigot
a84f36b67f Performance update to remove several very high counts of temp object creation
By: Tahg <tahgtahv@gmail.com>
2011-12-06 08:52:45 -05:00
CraftBukkit/Spigot
4a52ff756a fix NPE issue with CB inventory
By: Tahg <tahgtahv@gmail.com>
2011-12-06 08:48:45 -05:00
CraftBukkit/Spigot
d1bb68a060 Clean-up some events to maintain general style
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-05 19:13:10 +11:00
CraftBukkit/Spigot
4ed2b5b754 CraftInventory.remove shouldn't care about amount (BUKKIT-138)
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-05 01:51:33 +00:00
CraftBukkit/Spigot
33742d5592 Implemented server.getOfflinePlayers
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-04 17:57:00 +00:00
CraftBukkit/Spigot
c9c8d2a915 Fixed some various CraftInventory bugs related to dropping Enchantments
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-04 13:22:50 +00:00
CraftBukkit/Spigot
63318d575f Fixed player teleporting not working with a certain method. This fixes BUKKIT-198
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-04 13:22:31 +00:00
CraftBukkit/Spigot
2d41f1d696 Indicate when a teleport event was triggered by ender pearls or unknown internal teleports
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-04 11:04:14 +00:00
CraftBukkit/Spigot
dadf3e028c Remove unused import
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-02 21:29:37 +11:00
CraftBukkit/Spigot
0945d42bf0 Made world.spawnCreature just delegate to world.spawn. This fixes BUKKIT-57
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-01 21:50:23 +00:00
CraftBukkit/Spigot
b327d49e49 Use 1.0.1 artifact
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-01 21:49:50 +00:00
CraftBukkit/Spigot
17ba6a756e Fix CraftBlock toString.
By: Erik Broes <erikbroes@grum.nl>
2011-12-01 21:00:21 +01:00
CraftBukkit/Spigot
c370b75aca Fixed rare NPEs with CraftItemStack. This fixes BUKKIT-51
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-01 05:17:22 +00:00
CraftBukkit/Spigot
3505a6c77e Fixed exp methods returning wrong values
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-30 22:31:03 +00:00
CraftBukkit/Spigot
0939b7a7f9 Updated to use mc-dev rename revision 1
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-29 23:17:43 +00:00
CraftBukkit/Spigot
540f893f86 Fixed multiworld loading of some worlds, yay for 1 letter fixes :D
By: Erik Broes <erikbroes@grum.nl>
2011-11-30 21:47:51 +01:00
CraftBukkit/Spigot
9c7ab7c33f Fix CraftEnderCrystal so that it implements EnderCrystal, not EnderSignal.
Thanks zhuowei!

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-30 09:21:54 +11:00
CraftBukkit/Spigot
dcbd5b4f23 Fix Craft Entity constructors and toStrings.
Also, standardise getHandle and clean up in general.
getHandle is now using the 'entity' member variable instead of
super.getHandle, as this reduces the number of chained calls needed.

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-29 21:22:35 +11:00
CraftBukkit/Spigot
e02756bd58 Ignore minecraft resources in src directory
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-29 21:20:14 +11:00
CraftBukkit/Spigot
f5793d6a80 Fix CraftVillager constructor to only take an EntityVillager
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-29 09:46:20 +11:00
CraftBukkit/Spigot
1e64b14e06 BUKKIT-57 Fix using Bukkit interface instead of nmc Entity for type check.
Thanks nidefawl!

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-29 09:42:09 +11:00
CraftBukkit/Spigot
107149bd07 Fixed Enchantments being lost on inventory.setItem
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-28 05:17:05 +00:00
CraftBukkit/Spigot
7cb34c4384 Fixed magma slimes from being nonspawnable
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-28 05:08:28 +00:00
CraftBukkit/Spigot
a78bd5eb1c Add new Entity types to CreatureSpawnEvent
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-28 11:18:27 +11:00
CraftBukkit/Spigot
18610c823a Add CraftMagmaCube
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-28 11:17:04 +11:00
CraftBukkit/Spigot
39ddc11033 Fixed NPE in CraftPlayer.getBedSpawnLocation
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-27 04:09:34 +00:00
CraftBukkit/Spigot
2a560a3b24 Clone item enchantments unchecked
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-27 03:58:43 +00:00
CraftBukkit/Spigot
f235a09660 Fixed issue with enchantments reseting under certain conditions
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-27 02:45:34 +00:00
CraftBukkit/Spigot
b90c9ef770 Implemented Enchantment API
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-27 00:39:25 +00:00
CraftBukkit/Spigot
44b5953141 Implemented world.getWorldFolder
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-25 03:47:12 +00:00
CraftBukkit/Spigot
474234b6be Changed Entity.isDead to be aware of health for living entities
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-25 00:32:44 +00:00
CraftBukkit/Spigot
aa9a64c1d7 Fixed NPE in player inventory + don't ignore the cancel state of world unloads
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 20:27:16 +00:00
CraftBukkit/Spigot
2f98915d03 Implemented new age methods in animals, and made spawned animals via eggs properly age back to children
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 20:16:43 +00:00
CraftBukkit/Spigot
cbcd3aa1ae I've either fixed going to The End, or made it worse. I'm sure we'll find out soon!
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 20:00:55 +00:00
CraftBukkit/Spigot
66c96af623 Made BlockStates inform playes upon update
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 18:48:23 +00:00
CraftBukkit/Spigot
20d9b64e16 Fixed allow-nether being ignored
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 18:48:01 +00:00
CraftBukkit/Spigot
0f394bd1f6 Implemented new biome values
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-22 21:21:33 +00:00