mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
Addition of all Entity classes.
Each Entity creates a corresponding instance of a Craft Entity, to be used whenever sending instances to an event handler with getBukkitEntity().
This commit is contained in:
parent
431f2f62cf
commit
6a3b096fb8
@ -1,9 +1,16 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftAnimals;
|
||||||
|
|
||||||
public abstract class EntityAnimals extends EntityCreature implements IAnimals {
|
public abstract class EntityAnimals extends EntityCreature implements IAnimals {
|
||||||
|
|
||||||
public EntityAnimals(World world) {
|
public EntityAnimals(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftAnimals(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected float a(int i, int j, int k) {
|
protected float a(int i, int j, int k) {
|
||||||
|
@ -2,6 +2,10 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftAnimals;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftChicken;
|
||||||
|
|
||||||
public class EntityChicken extends EntityAnimals {
|
public class EntityChicken extends EntityAnimals {
|
||||||
|
|
||||||
public boolean a;
|
public boolean a;
|
||||||
@ -22,6 +26,10 @@ public class EntityChicken extends EntityAnimals {
|
|||||||
a(0.3F, 0.4F);
|
a(0.3F, 0.4F);
|
||||||
aZ = 4;
|
aZ = 4;
|
||||||
am = W.nextInt(6000) + 6000;
|
am = W.nextInt(6000) + 6000;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftChicken(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public void o() {
|
public void o() {
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftCow;
|
||||||
|
|
||||||
public class EntityCow extends EntityAnimals {
|
public class EntityCow extends EntityAnimals {
|
||||||
|
|
||||||
public EntityCow(World world) {
|
public EntityCow(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
aP = "/mob/cow.png";
|
aP = "/mob/cow.png";
|
||||||
a(0.9F, 1.3F);
|
a(0.9F, 1.3F);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftCow(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(NBTTagCompound nbttagcompound) {
|
public void a(NBTTagCompound nbttagcompound) {
|
||||||
|
@ -2,6 +2,9 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftCreature;
|
||||||
|
|
||||||
public class EntityCreature extends EntityLiving {
|
public class EntityCreature extends EntityLiving {
|
||||||
|
|
||||||
private PathEntity a;
|
private PathEntity a;
|
||||||
@ -11,6 +14,10 @@ public class EntityCreature extends EntityLiving {
|
|||||||
public EntityCreature(World world) {
|
public EntityCreature(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
e = false;
|
e = false;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftCreature(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void d() {
|
protected void d() {
|
||||||
|
@ -2,6 +2,9 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftCreeper;
|
||||||
|
|
||||||
public class EntityCreeper extends EntityMobs {
|
public class EntityCreeper extends EntityMobs {
|
||||||
|
|
||||||
int a;
|
int a;
|
||||||
@ -10,6 +13,10 @@ public class EntityCreeper extends EntityMobs {
|
|||||||
public EntityCreeper(World world) {
|
public EntityCreeper(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
aP = "/mob/creeper.png";
|
aP = "/mob/creeper.png";
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftCreeper(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void a() {
|
protected void a() {
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftFallingSand;
|
||||||
|
|
||||||
public class EntityFallingSand extends Entity {
|
public class EntityFallingSand extends Entity {
|
||||||
|
|
||||||
public int a;
|
public int a;
|
||||||
@ -25,6 +28,10 @@ public class EntityFallingSand extends Entity {
|
|||||||
m = d;
|
m = d;
|
||||||
n = d1;
|
n = d1;
|
||||||
o = d2;
|
o = d2;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftFallingSand(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void a() {}
|
protected void a() {}
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftFlying;
|
||||||
|
|
||||||
public class EntityFlying extends EntityLiving {
|
public class EntityFlying extends EntityLiving {
|
||||||
|
|
||||||
public EntityFlying(World world) {
|
public EntityFlying(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftFlying(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void a(float f) {}
|
protected void a(float f) {}
|
||||||
|
@ -3,6 +3,10 @@ package net.minecraft.server;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftAnimals;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftGhast;
|
||||||
|
|
||||||
public class EntityGhast extends EntityFlying implements IMobs {
|
public class EntityGhast extends EntityFlying implements IMobs {
|
||||||
|
|
||||||
public int a;
|
public int a;
|
||||||
@ -24,6 +28,10 @@ public class EntityGhast extends EntityFlying implements IMobs {
|
|||||||
aP = "/mob/ghast.png";
|
aP = "/mob/ghast.png";
|
||||||
a(4F, 4F);
|
a(4F, 4F);
|
||||||
ae = true;
|
ae = true;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftGhast(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void d() {
|
protected void d() {
|
||||||
|
@ -2,6 +2,10 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftAnimals;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftItem;
|
||||||
|
|
||||||
public class EntityItem extends Entity {
|
public class EntityItem extends Entity {
|
||||||
|
|
||||||
public ItemStack a;
|
public ItemStack a;
|
||||||
@ -25,6 +29,10 @@ public class EntityItem extends Entity {
|
|||||||
t = 0.20000000298023224D;
|
t = 0.20000000298023224D;
|
||||||
u = (float) (Math.random() * 0.20000000298023224D - 0.10000000149011612D);
|
u = (float) (Math.random() * 0.20000000298023224D - 0.10000000149011612D);
|
||||||
M = false;
|
M = false;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftItem(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityItem(World world) {
|
public EntityItem(World world) {
|
||||||
|
@ -3,6 +3,10 @@ package net.minecraft.server;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftAnimals;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftLivingEntity;
|
||||||
|
|
||||||
public abstract class EntityLiving extends Entity {
|
public abstract class EntityLiving extends Entity {
|
||||||
|
|
||||||
public int aF;
|
public int aF;
|
||||||
@ -93,6 +97,10 @@ public abstract class EntityLiving extends Entity {
|
|||||||
aG = (float) Math.random() * 12398F;
|
aG = (float) Math.random() * 12398F;
|
||||||
v = (float) (Math.random() * 3.1415927410125732D * 2D);
|
v = (float) (Math.random() * 3.1415927410125732D * 2D);
|
||||||
S = 0.5F;
|
S = 0.5F;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftLivingEntity(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void a() {}
|
protected void a() {}
|
||||||
|
@ -6,6 +6,7 @@ import java.util.Random;
|
|||||||
import org.bukkit.craftbukkit.entity.CraftEntity;
|
import org.bukkit.craftbukkit.entity.CraftEntity;
|
||||||
import org.bukkit.craftbukkit.entity.CraftLivingEntity;
|
import org.bukkit.craftbukkit.entity.CraftLivingEntity;
|
||||||
import org.bukkit.craftbukkit.entity.CraftMinecart;
|
import org.bukkit.craftbukkit.entity.CraftMinecart;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftMonster;
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.event.entity.EntityDamageByBlockEvent;
|
import org.bukkit.event.entity.EntityDamageByBlockEvent;
|
||||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||||
@ -22,7 +23,7 @@ public class EntityMobs extends EntityCreature implements IMobs {
|
|||||||
aZ = 20;
|
aZ = 20;
|
||||||
//CraftBukkit start
|
//CraftBukkit start
|
||||||
CraftServer server = ((WorldServer) this.l).getServer();
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
this.bukkitEntity = new CraftLivingEntity(server, this);
|
this.bukkitEntity = new CraftMonster(server, this);
|
||||||
//CraftBukkit end
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftPainting;
|
||||||
|
|
||||||
public class EntityPainting extends Entity {
|
public class EntityPainting extends Entity {
|
||||||
|
|
||||||
private int f;
|
private int f;
|
||||||
@ -17,6 +20,10 @@ public class EntityPainting extends Entity {
|
|||||||
a = 0;
|
a = 0;
|
||||||
H = 0.0F;
|
H = 0.0F;
|
||||||
a(0.5F, 0.5F);
|
a(0.5F, 0.5F);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftPainting(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityPainting(World world, int i, int j, int k, int l) {
|
public EntityPainting(World world, int i, int j, int k, int l) {
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftPig;
|
||||||
|
|
||||||
public class EntityPig extends EntityAnimals {
|
public class EntityPig extends EntityAnimals {
|
||||||
|
|
||||||
public EntityPig(World world) {
|
public EntityPig(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
aP = "/mob/pig.png";
|
aP = "/mob/pig.png";
|
||||||
a(0.9F, 0.9F);
|
a(0.9F, 0.9F);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftPig(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void a() {
|
protected void a() {
|
||||||
|
@ -3,6 +3,9 @@ package net.minecraft.server;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftPigZombie;
|
||||||
|
|
||||||
public class EntityPigZombie extends EntityZombie {
|
public class EntityPigZombie extends EntityZombie {
|
||||||
|
|
||||||
private int a;
|
private int a;
|
||||||
@ -17,6 +20,10 @@ public class EntityPigZombie extends EntityZombie {
|
|||||||
bC = 0.5F;
|
bC = 0.5F;
|
||||||
c = 5;
|
c = 5;
|
||||||
ae = true;
|
ae = true;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftPigZombie(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public void b_() {
|
public void b_() {
|
||||||
|
@ -3,9 +3,7 @@ package net.minecraft.server;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
// CraftBukkit start
|
import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
||||||
import org.bukkit.craftbukkit.entity.CraftEntity;
|
|
||||||
import org.bukkit.craftbukkit.entity.CraftLivingEntity;
|
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||||
import org.bukkit.event.entity.EntityDamageEvent;
|
import org.bukkit.event.entity.EntityDamageEvent;
|
||||||
@ -53,7 +51,7 @@ public abstract class EntityPlayer extends EntityLiving {
|
|||||||
aP = "/mob/char.png";
|
aP = "/mob/char.png";
|
||||||
//CraftBukkit start
|
//CraftBukkit start
|
||||||
CraftServer server = ((WorldServer) this.l).getServer();
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
this.bukkitEntity = new CraftLivingEntity(server, this);
|
this.bukkitEntity = new CraftHumanEntity(server, this);
|
||||||
//CraftBukkit end
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftSheep;
|
||||||
|
|
||||||
public class EntitySheep extends EntityAnimals {
|
public class EntitySheep extends EntityAnimals {
|
||||||
|
|
||||||
public static final float a[][] = {
|
public static final float a[][] = {
|
||||||
@ -44,6 +47,10 @@ public class EntitySheep extends EntityAnimals {
|
|||||||
super(world);
|
super(world);
|
||||||
aP = "/mob/sheep.png";
|
aP = "/mob/sheep.png";
|
||||||
a(0.9F, 1.3F);
|
a(0.9F, 1.3F);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftSheep(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void a() {
|
protected void a() {
|
||||||
|
@ -2,8 +2,7 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
// CraftBukkit start
|
import org.bukkit.craftbukkit.entity.CraftSkeleton;
|
||||||
import org.bukkit.craftbukkit.entity.CraftLivingEntity;
|
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.event.Event.Type;
|
import org.bukkit.event.Event.Type;
|
||||||
import org.bukkit.event.entity.EntityCombustEvent;
|
import org.bukkit.event.entity.EntityCombustEvent;
|
||||||
@ -18,7 +17,7 @@ public class EntitySkeleton extends EntityMobs {
|
|||||||
aP = "/mob/skeleton.png";
|
aP = "/mob/skeleton.png";
|
||||||
//CraftBukkit start
|
//CraftBukkit start
|
||||||
CraftServer server = ((WorldServer) this.l).getServer();
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
this.bukkitEntity = new CraftLivingEntity(server, this);
|
this.bukkitEntity = new CraftSkeleton(server, this);
|
||||||
//CraftBukkit end
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftSkeleton;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftSlime;
|
||||||
|
|
||||||
public class EntitySlime extends EntityLiving implements IMobs {
|
public class EntitySlime extends EntityLiving implements IMobs {
|
||||||
|
|
||||||
public float a;
|
public float a;
|
||||||
@ -18,6 +22,10 @@ public class EntitySlime extends EntityLiving implements IMobs {
|
|||||||
H = 0.0F;
|
H = 0.0F;
|
||||||
d = W.nextInt(20) + 10;
|
d = W.nextInt(20) + 10;
|
||||||
a(c);
|
a(c);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftSlime(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(int j) {
|
public void a(int j) {
|
||||||
|
@ -2,6 +2,9 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftSpider;
|
||||||
|
|
||||||
public class EntitySpider extends EntityMobs {
|
public class EntitySpider extends EntityMobs {
|
||||||
|
|
||||||
public EntitySpider(World world) {
|
public EntitySpider(World world) {
|
||||||
@ -9,6 +12,10 @@ public class EntitySpider extends EntityMobs {
|
|||||||
aP = "/mob/spider.png";
|
aP = "/mob/spider.png";
|
||||||
a(1.4F, 0.9F);
|
a(1.4F, 0.9F);
|
||||||
bC = 0.8F;
|
bC = 0.8F;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftSpider(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public double k() {
|
public double k() {
|
||||||
|
@ -2,6 +2,9 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftSquid;
|
||||||
|
|
||||||
public class EntitySquid extends EntityWaterMob {
|
public class EntitySquid extends EntityWaterMob {
|
||||||
|
|
||||||
public float a;
|
public float a;
|
||||||
@ -38,6 +41,10 @@ public class EntitySquid extends EntityWaterMob {
|
|||||||
aP = "/mob/squid.png";
|
aP = "/mob/squid.png";
|
||||||
a(0.95F, 0.95F);
|
a(0.95F, 0.95F);
|
||||||
ap = (1.0F / (W.nextFloat() + 1.0F)) * 0.2F;
|
ap = (1.0F / (W.nextFloat() + 1.0F)) * 0.2F;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftSquid(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(NBTTagCompound nbttagcompound) {
|
public void a(NBTTagCompound nbttagcompound) {
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftSkeleton;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftTNTPrimed;
|
||||||
|
|
||||||
public class EntityTNTPrimed extends Entity {
|
public class EntityTNTPrimed extends Entity {
|
||||||
|
|
||||||
public int a;
|
public int a;
|
||||||
@ -10,6 +14,10 @@ public class EntityTNTPrimed extends Entity {
|
|||||||
i = true;
|
i = true;
|
||||||
a(0.98F, 0.98F);
|
a(0.98F, 0.98F);
|
||||||
H = J / 2.0F;
|
H = J / 2.0F;
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftTNTPrimed(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityTNTPrimed(World world, double d1, double d2, double d3) {
|
public EntityTNTPrimed(World world, double d1, double d2, double d3) {
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftWaterMob;
|
||||||
|
|
||||||
public class EntityWaterMob extends EntityCreature implements IAnimals {
|
public class EntityWaterMob extends EntityCreature implements IAnimals {
|
||||||
|
|
||||||
public EntityWaterMob(World world) {
|
public EntityWaterMob(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftWaterMob(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean d_() {
|
public boolean d_() {
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
import java.util.Random;
|
import org.bukkit.craftbukkit.entity.CraftZombie;
|
||||||
|
|
||||||
// CraftBukkit start
|
|
||||||
import org.bukkit.craftbukkit.entity.CraftLivingEntity;
|
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.event.Event.Type;
|
import org.bukkit.event.Event.Type;
|
||||||
import org.bukkit.event.entity.EntityCombustEvent;
|
import org.bukkit.event.entity.EntityCombustEvent;
|
||||||
@ -18,7 +15,7 @@ public class EntityZombie extends EntityMobs {
|
|||||||
c = 5;
|
c = 5;
|
||||||
//CraftBukkit start
|
//CraftBukkit start
|
||||||
CraftServer server = ((WorldServer) this.l).getServer();
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
this.bukkitEntity = new CraftLivingEntity(server, this);
|
this.bukkitEntity = new CraftZombie(server, this);
|
||||||
//CraftBukkit end
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.craftbukkit.entity.CraftGiant;
|
||||||
|
|
||||||
public class EntityZombieSimple extends EntityMobs {
|
public class EntityZombieSimple extends EntityMobs {
|
||||||
|
|
||||||
public EntityZombieSimple(World world) {
|
public EntityZombieSimple(World world) {
|
||||||
@ -10,6 +13,10 @@ public class EntityZombieSimple extends EntityMobs {
|
|||||||
aZ *= 10;
|
aZ *= 10;
|
||||||
H *= 6F;
|
H *= 6F;
|
||||||
a(I * 6F, J * 6F);
|
a(I * 6F, J * 6F);
|
||||||
|
//CraftBukkit start
|
||||||
|
CraftServer server = ((WorldServer) this.l).getServer();
|
||||||
|
this.bukkitEntity = new CraftGiant(server, this);
|
||||||
|
//CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected float a(int i, int j, int k) {
|
protected float a(int i, int j, int k) {
|
||||||
|
Loading…
Reference in New Issue
Block a user