summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorV10lator <v10lator@myway.de>2012-04-25 11:40:57 +0200
committerfeildmaster <admin@feildmaster.com>2012-06-23 10:57:59 -0500
commitf735129254e7cd2e7bfdf05923885dd0e001cbac (patch)
treeaa25206809ab7e25e5a917817a568600d02715ed /src/main
parent9cb65fd1cdecc7bdc3092f97a2ebb3ad0da3efb8 (diff)
downloadbukkit-f735129254e7cd2e7bfdf05923885dd0e001cbac.tar
bukkit-f735129254e7cd2e7bfdf05923885dd0e001cbac.tar.gz
bukkit-f735129254e7cd2e7bfdf05923885dd0e001cbac.tar.lz
bukkit-f735129254e7cd2e7bfdf05923885dd0e001cbac.tar.xz
bukkit-f735129254e7cd2e7bfdf05923885dd0e001cbac.zip
Deprecate spawnCreature and add spawnEntity. Addresses BUKKIT-1168
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/World.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index 4fa3b179..be9baa79 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -305,12 +305,23 @@ public interface World extends PluginMessageRecipient, Metadatable {
public boolean generateTree(Location loc, TreeType type, BlockChangeDelegate delegate);
/**
+ * Creates a entity at the given {@link Location}
+ *
+ * @param loc The location to spawn the entity
+ * @param type The entity to spawn
+ * @return Resulting Entity of this method, or null if it was unsuccessful
+ */
+ public Entity spawnEntity(Location loc, EntityType type);
+
+ /**
* Creates a creature at the given {@link Location}
*
* @param loc The location to spawn the creature
* @param type The creature to spawn
* @return Resulting LivingEntity of this method, or null if it was unsuccessful
+ * @deprecated Has issues spawning non LivingEntities. Use {@link #spawnEntity(Location, EntityType) spawnEntity} instead.
*/
+ @Deprecated
public LivingEntity spawnCreature(Location loc, EntityType type);
/**