1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
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 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")));
}
}
|