Updated to Minecraft version 1.4

This commit is contained in:
Dinnerbone
2011-03-31 21:40:00 +01:00
parent 0635f7c1b8
commit 87c36febeb
84 changed files with 1024 additions and 793 deletions

View File

@@ -17,7 +17,7 @@ public class EntityItem extends Entity {
public EntityItem(World world, double d0, double d1, double d2, ItemStack itemstack) {
super(world);
this.a(0.25F, 0.25F);
this.b(0.25F, 0.25F);
this.height = this.width / 2.0F;
this.a(d0, d1, d2);
this.a = itemstack;
@@ -25,12 +25,15 @@ public class EntityItem extends Entity {
this.motX = (double) ((float) (Math.random() * 0.20000000298023224D - 0.10000000149011612D));
this.motY = 0.20000000298023224D;
this.motZ = (double) ((float) (Math.random() * 0.20000000298023224D - 0.10000000149011612D));
this.bg = false;
}
protected boolean l() {
return false;
}
public EntityItem(World world) {
super(world);
this.a(0.25F, 0.25F);
this.b(0.25F, 0.25F);
this.height = this.width / 2.0F;
}
@@ -76,7 +79,7 @@ public class EntityItem extends Entity {
++this.e;
++this.b;
if (this.b >= 6000) {
this.C();
this.D();
}
}
@@ -167,10 +170,10 @@ public class EntityItem extends Entity {
}
public boolean a(Entity entity, int i) {
this.R();
this.W();
this.f -= i;
if (this.f <= 0) {
this.C();
this.D();
}
return false;
@@ -203,7 +206,7 @@ public class EntityItem extends Entity {
if (!event.isCancelled() && entityhuman.inventory.a(this.a)) {
this.world.a(this, "random.pop", 0.2F, ((this.random.nextFloat() - this.random.nextFloat()) * 0.7F + 1.0F) * 2.0F);
entityhuman.b(this, i);
this.C();
this.D();
}
}
// CraftBukkit end