mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 12:43:52 -07:00
Updated to Minecraft version 1.4
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user