summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 05:53:19 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 05:53:19 +0100
commit7eff773769d55b3c090d3846b7981b65560c9abd (patch)
treebf6c0a9bc49aaf871e14bae17c0d8bf29b6896e4 /src/main/java
parent548ecfdec8c7cd97239dc3cb67df4ff63aaeec64 (diff)
downloadcraftbukkit-7eff773769d55b3c090d3846b7981b65560c9abd.tar
craftbukkit-7eff773769d55b3c090d3846b7981b65560c9abd.tar.gz
craftbukkit-7eff773769d55b3c090d3846b7981b65560c9abd.tar.lz
craftbukkit-7eff773769d55b3c090d3846b7981b65560c9abd.tar.xz
craftbukkit-7eff773769d55b3c090d3846b7981b65560c9abd.zip
Fixed spawning the new entities
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 98c98ad2..ab507664 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -729,7 +729,13 @@ public class CraftWorld implements World {
} else if (Slime.class.isAssignableFrom(clazz)) {
entity = new EntitySlime(world);
} else if (Spider.class.isAssignableFrom(clazz)) {
- entity = new EntitySpider(world);
+
+ if (CaveSpider.class.isAssignableFrom(clazz)) {
+ entity = new EntityCaveSpider(world);
+ } else {
+ entity = new EntitySpider(world);
+ }
+
} else if (Squid.class.isAssignableFrom(clazz)) {
entity = new EntitySquid(world);
} else if (Wolf.class.isAssignableFrom(clazz)) {
@@ -738,6 +744,10 @@ public class CraftWorld implements World {
entity = new EntityPigZombie(world);
} else if (Zombie.class.isAssignableFrom(clazz)) {
entity = new EntityZombie(world);
+ } else if (Silverfish.class.isAssignableFrom(clazz)) {
+ entity = new EntitySilverfish(world);
+ } else if (Enderman.class.isAssignableFrom(clazz)) {
+ entity = new EntityEnderman(world);
}
if (entity != null) {
@@ -748,6 +758,8 @@ public class CraftWorld implements World {
// negative
} else if (TNTPrimed.class.isAssignableFrom(clazz)) {
entity = new EntityTNTPrimed(world, x, y, z);
+ } else if (ExperienceOrb.class.isAssignableFrom(clazz)) {
+ entity = new EntityExperienceOrb(world, x, y, z, 0);
} else if (Weather.class.isAssignableFrom(clazz)) {
// not sure what this can do
entity = new EntityWeatherStorm(world, x, y, z);