@@ -49,36 +49,36 @@ public int countEntity(int num)
49
49
Minecraft minecraft = Minecraft .getMinecraft ();
50
50
switch (num )
51
51
{
52
- case 0 : return minecraft .theWorld .getEntitiesWithinAABB (EntityChicken .class , boundingBox ).size ();
53
- case 1 : return minecraft .theWorld .getEntitiesWithinAABB (EntityPig .class , boundingBox ).size ();
54
- case 2 : return minecraft .theWorld .getEntitiesWithinAABB (EntitySheep .class , boundingBox ).size ();
55
- case 3 : return minecraft .theWorld .getEntitiesWithinAABB (EntityCow .class , boundingBox ).size () - this .countEntity (5 );
56
- case 4 : return minecraft .theWorld .getEntitiesWithinAABB (EntityHorse .class , boundingBox ).size ();
57
- case 5 : return minecraft .theWorld .getEntitiesWithinAABB (EntityMooshroom .class , boundingBox ).size ();
58
- case 6 : return minecraft .theWorld .getEntitiesWithinAABB (EntityRabbit .class , boundingBox ).size ();
59
- case 7 : return minecraft .theWorld .getEntitiesWithinAABB (EntityWolf .class , boundingBox ).size ();
60
-
61
- case 8 : return (minecraft .theWorld .getEntitiesWithinAABB (EntityZombie .class , hostileBB ).size () - this .countEntity (14 ));
62
- case 9 : return minecraft .theWorld .getEntitiesWithinAABB (EntityCaveSpider .class , hostileBB ).size ();
63
- case 10 : return minecraft .theWorld .getEntitiesWithinAABB (EntitySkeleton .class , hostileBB ).size ();
64
- case 11 : return (minecraft .theWorld .getEntitiesWithinAABB (EntitySpider .class , hostileBB ).size () - this .countEntity (9 ));
65
- case 12 : return minecraft .theWorld .getEntitiesWithinAABB (EntityCreeper .class , hostileBB ).size ();
66
- case 13 : return minecraft .theWorld .getEntitiesWithinAABB (EntityWitch .class , hostileBB ).size ();
67
- case 14 : return minecraft .theWorld .getEntitiesWithinAABB (EntityPigZombie .class , hostileBB ).size ();
68
- case 15 : return minecraft .theWorld .getEntitiesWithinAABB (EntitySlime .class , hostileBB ).size ();
69
- case 16 : return minecraft .theWorld .getEntitiesWithinAABB (EntityGuardian .class , hostileBB ).size ();
70
-
71
- case 17 : return minecraft .theWorld .getEntitiesWithinAABB (EntityIronGolem .class , boundingBox ).size ();
72
- case 18 : return minecraft .theWorld .getEntitiesWithinAABB (EntitySnowman .class , boundingBox ).size ();
73
- case 20 : return minecraft .theWorld .getEntitiesWithinAABB (EntityPlayer .class , boundingBox ).size () - 1 ;
52
+ case 0 : return minecraft .world .getEntitiesWithinAABB (EntityChicken .class , boundingBox ).size ();
53
+ case 1 : return minecraft .world .getEntitiesWithinAABB (EntityPig .class , boundingBox ).size ();
54
+ case 2 : return minecraft .world .getEntitiesWithinAABB (EntitySheep .class , boundingBox ).size ();
55
+ case 3 : return minecraft .world .getEntitiesWithinAABB (EntityCow .class , boundingBox ).size () - this .countEntity (5 );
56
+ case 4 : return minecraft .world .getEntitiesWithinAABB (EntityHorse .class , boundingBox ).size ();
57
+ case 5 : return minecraft .world .getEntitiesWithinAABB (EntityMooshroom .class , boundingBox ).size ();
58
+ case 6 : return minecraft .world .getEntitiesWithinAABB (EntityRabbit .class , boundingBox ).size ();
59
+ case 7 : return minecraft .world .getEntitiesWithinAABB (EntityWolf .class , boundingBox ).size ();
60
+
61
+ case 8 : return (minecraft .world .getEntitiesWithinAABB (EntityZombie .class , hostileBB ).size () - this .countEntity (14 ));
62
+ case 9 : return minecraft .world .getEntitiesWithinAABB (EntityCaveSpider .class , hostileBB ).size ();
63
+ case 10 : return minecraft .world .getEntitiesWithinAABB (EntitySkeleton .class , hostileBB ).size ();
64
+ case 11 : return (minecraft .world .getEntitiesWithinAABB (EntitySpider .class , hostileBB ).size () - this .countEntity (9 ));
65
+ case 12 : return minecraft .world .getEntitiesWithinAABB (EntityCreeper .class , hostileBB ).size ();
66
+ case 13 : return minecraft .world .getEntitiesWithinAABB (EntityWitch .class , hostileBB ).size ();
67
+ case 14 : return minecraft .world .getEntitiesWithinAABB (EntityPigZombie .class , hostileBB ).size ();
68
+ case 15 : return minecraft .world .getEntitiesWithinAABB (EntitySlime .class , hostileBB ).size ();
69
+ case 16 : return minecraft .world .getEntitiesWithinAABB (EntityGuardian .class , hostileBB ).size ();
70
+
71
+ case 17 : return minecraft .world .getEntitiesWithinAABB (EntityIronGolem .class , boundingBox ).size ();
72
+ case 18 : return minecraft .world .getEntitiesWithinAABB (EntitySnowman .class , boundingBox ).size ();
73
+ case 20 : return minecraft .world .getEntitiesWithinAABB (EntityPlayer .class , boundingBox ).size () - 1 ;
74
74
75
75
}
76
76
return 0 ;
77
77
}
78
78
79
79
public void updateBB ()
80
80
{
81
- EntityPlayer player = Minecraft .getMinecraft ().thePlayer ;
81
+ EntityPlayer player = Minecraft .getMinecraft ().player ;
82
82
this .boundingBox = new AxisAlignedBB (player .posX - this .radius , player .posY - this .radius , player .posZ - this .radius ,
83
83
player .posX + this .radius , player .posY + this .radius , player .posZ + this .radius );
84
84
}
@@ -87,7 +87,7 @@ public void updateHostileBB()
87
87
{
88
88
if (!this .xp5 )
89
89
{
90
- EntityPlayer player = Minecraft .getMinecraft ().thePlayer ;
90
+ EntityPlayer player = Minecraft .getMinecraft ().player ;
91
91
this .hostileBB = new AxisAlignedBB (player .posX - this .hRadius , player .posY - this .hRadius , player .posZ - this .hRadius ,
92
92
player .posX + this .hRadius , player .posY + this .hRadius , player .posZ + this .hRadius );
93
93
}
0 commit comments