Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +01:00
Implemented new entities
Dieser Commit ist enthalten in:
Ursprung
a9b3a90dc9
Commit
ca4810e8d4
16
src/main/java/org/bukkit/craftbukkit/entity/CraftCaveSpider.java
Normale Datei
16
src/main/java/org/bukkit/craftbukkit/entity/CraftCaveSpider.java
Normale Datei
@ -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();
|
||||
}
|
||||
}
|
16
src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java
Normale Datei
16
src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java
Normale Datei
@ -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();
|
||||
}
|
||||
}
|
@ -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); }
|
||||
|
17
src/main/java/org/bukkit/craftbukkit/entity/CraftExperienceOrb.java
Normale Datei
17
src/main/java/org/bukkit/craftbukkit/entity/CraftExperienceOrb.java
Normale Datei
@ -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();
|
||||
}
|
||||
}
|
16
src/main/java/org/bukkit/craftbukkit/entity/CraftSilverfish.java
Normale Datei
16
src/main/java/org/bukkit/craftbukkit/entity/CraftSilverfish.java
Normale Datei
@ -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();
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren