blob: 6663ce90871744ca0d9cd15104fd6560f1760f88 (
plain)
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
|
package net.minecraft.server;
import java.util.Random;
public class EntityChicken extends EntityAnimals {
public boolean a;
public float b;
public float c;
public float f;
public float ak;
public float al;
public int am;
public EntityChicken(World world) {
super(world);
a = false;
b = 0.0F;
c = 0.0F;
al = 1.0F;
aP = "/mob/chicken.png";
a(0.3F, 0.4F);
aZ = 4;
am = W.nextInt(6000) + 6000;
}
public void o() {
super.o();
ak = b;
f = c;
c += ((float) ((double) (A ? -1 : 4) * 0.29999999999999999D));
if (c < 0.0F) {
c = 0.0F;
}
if (c > 1.0F) {
c = 1.0F;
}
if (!A && al < 1.0F) {
al = 1.0F;
}
al *= 0.90000000000000002D;
if (!A && t < 0.0D) {
t *= 0.59999999999999998D;
}
b += al * 2.0F;
if (!l.z && --am <= 0) {
l.a(((Entity) (this)), "mob.chickenplop", 1.0F, (W.nextFloat() - W.nextFloat()) * 0.2F + 1.0F);
a(Item.aN.ba, 1);
am = W.nextInt(6000) + 6000;
}
}
protected void a(float f1) {}
public void a(NBTTagCompound nbttagcompound) {
super.a(nbttagcompound);
}
public void b(NBTTagCompound nbttagcompound) {
super.b(nbttagcompound);
}
protected String e() {
return "mob.chicken";
}
protected String f() {
return "mob.chickenhurt";
}
protected String g() {
return "mob.chickenhurt";
}
protected int h() {
return Item.J.ba;
}
}
|