package net.minecraft.server; // CraftBukkit start import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.entity.CraftTNTPrimed; // CraftBukkit stop public class EntityTNTPrimed extends Entity { public int a; public EntityTNTPrimed(World world) { super(world); a = 0; i = true; a(0.98F, 0.98F); 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) { this(world); a(d1, d2, d3); float f = (float) (Math.random() * 3.1415927410125732D * 2D); s = -MathHelper.a((f * 3.141593F) / 180F) * 0.02F; t = 0.20000000298023224D; u = -MathHelper.b((f * 3.141593F) / 180F) * 0.02F; M = false; a = 80; m = d1; n = d2; o = d3; } protected void a() {} public boolean c_() { return !G; } public void b_() { m = p; n = q; o = r; t -= 0.039999999105930328D; c(s, t, u); s *= 0.98000001907348633D; t *= 0.98000001907348633D; u *= 0.98000001907348633D; if (A) { s *= 0.69999998807907104D; u *= 0.69999998807907104D; t *= -0.5D; } if (a-- <= 0) { q(); d(); } else { l.a("smoke", p, q + 0.5D, r, 0.0D, 0.0D, 0.0D); } } private void d() { float f = 4F; l.a(((Entity) (null)), p, q, r, f); } protected void a(NBTTagCompound nbttagcompound) { nbttagcompound.a("Fuse", (byte) a); } protected void b(NBTTagCompound nbttagcompound) { a = ((int) (nbttagcompound.b("Fuse"))); } }