Archiviert
13
0

Implemented new entities

Dieser Commit ist enthalten in:
Dinnerbone 2011-09-15 02:33:50 +01:00
Ursprung a9b3a90dc9
Commit ca4810e8d4
5 geänderte Dateien mit 72 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,16 @@
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityCaveSpider;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.CaveSpider;
public class CraftCaveSpider extends CraftSpider implements CaveSpider {
public CraftCaveSpider(CraftServer server, EntityCaveSpider entity) {
super(server, entity);
}
@Override
public EntityCaveSpider getHandle() {
return (EntityCaveSpider) super.getHandle();
}
}

Datei anzeigen

@ -0,0 +1,16 @@
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityEnderman;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Enderman;
public class CraftEnderman extends CraftMonster implements Enderman {
public CraftEnderman(CraftServer server, EntityEnderman entity) {
super(server, entity);
}
@Override
public EntityEnderman getHandle() {
return (EntityEnderman) super.getHandle();
}
}

Datei anzeigen

@ -50,9 +50,14 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
else { return new CraftZombie(server, (EntityZombie) entity); }
}
else if (entity instanceof EntityCreeper) { return new CraftCreeper(server, (EntityCreeper) entity); }
else if (entity instanceof EntityEnderman) { return new CraftEnderman(server, (EntityEnderman) entity); }
else if (entity instanceof EntitySilverfish) { return new CraftSilverfish(server, (EntitySilverfish) entity); }
else if (entity instanceof EntityGiantZombie) { return new CraftGiant(server, (EntityGiantZombie) entity); }
else if (entity instanceof EntitySkeleton) { return new CraftSkeleton(server, (EntitySkeleton) entity); }
else if (entity instanceof EntitySpider) { return new CraftSpider(server, (EntitySpider) entity); }
else if (entity instanceof EntitySpider) {
if (entity instanceof EntityCaveSpider) { return new CraftCaveSpider(server, (EntityCaveSpider) entity); }
else { return new CraftSpider(server, (EntitySpider) entity); }
}
else { return new CraftMonster(server, (EntityMonster) entity); }
}
@ -72,6 +77,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
}
else { return new CraftLivingEntity(server, (EntityLiving) entity); }
}
else if (entity instanceof EntityExperienceOrb) { return new CraftExperienceOrb(server, (EntityExperienceOrb) entity); }
else if (entity instanceof EntityArrow) { return new CraftArrow(server, (EntityArrow) entity); }
else if (entity instanceof EntityBoat) { return new CraftBoat(server, (EntityBoat) entity); }
else if (entity instanceof EntityEgg) { return new CraftEgg(server, (EntityEgg) entity); }

Datei anzeigen

@ -0,0 +1,17 @@
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityExperienceOrb;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.ExperienceOrb;
public class CraftExperienceOrb extends CraftEntity implements ExperienceOrb {
public CraftExperienceOrb(CraftServer server, EntityExperienceOrb entity) {
super(server, entity);
}
@Override
public EntityExperienceOrb getHandle() {
return (EntityExperienceOrb) super.getHandle();
}
}

Datei anzeigen

@ -0,0 +1,16 @@
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntitySilverfish;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Silverfish;
public class CraftSilverfish extends CraftMonster implements Silverfish {
public CraftSilverfish(CraftServer server, EntitySilverfish entity) {
super(server, entity);
}
@Override
public EntitySilverfish getHandle() {
return (EntitySilverfish) super.getHandle();
}
}