Java 类net.minecraft.entity.EnumEntitySize 实例源码

项目:RuneCraftery    文件:Entity.java   
public Entity(World p_i1582_1_) {
   this.field_70157_k = field_70152_a++;
   this.field_70155_l = 1.0D;
   this.field_70121_D = AxisAlignedBB.func_72330_a(0.0D, 0.0D, 0.0D, 0.0D, 0.0D, 0.0D);
   this.field_70135_K = true;
   this.field_70130_N = 0.6F;
   this.field_70131_O = 1.8F;
   this.field_70150_b = 1;
   this.field_70146_Z = new Random();
   this.field_70174_ab = 1;
   this.field_70148_d = true;
   this.field_70180_af = new DataWatcher();
   this.field_96093_i = UUID.randomUUID();
   this.field_70168_am = EnumEntitySize.SIZE_2;
   this.field_70170_p = p_i1582_1_;
   this.func_70107_b(0.0D, 0.0D, 0.0D);
   if(p_i1582_1_ != null) {
      this.field_71093_bK = p_i1582_1_.field_73011_w.field_76574_g;
   }

   this.field_70180_af.func_75682_a(0, Byte.valueOf((byte)0));
   this.field_70180_af.func_75682_a(1, Short.valueOf((short)300));
   this.func_70088_a();
}
项目:RuneCraftery    文件:Entity.java   
protected void func_70105_a(float p_70105_1_, float p_70105_2_) {
   float var3;
   if(p_70105_1_ != this.field_70130_N || p_70105_2_ != this.field_70131_O) {
      var3 = this.field_70130_N;
      this.field_70130_N = p_70105_1_;
      this.field_70131_O = p_70105_2_;
      this.field_70121_D.field_72336_d = this.field_70121_D.field_72340_a + (double)this.field_70130_N;
      this.field_70121_D.field_72334_f = this.field_70121_D.field_72339_c + (double)this.field_70130_N;
      this.field_70121_D.field_72337_e = this.field_70121_D.field_72338_b + (double)this.field_70131_O;
      if(this.field_70130_N > var3 && !this.field_70148_d && !this.field_70170_p.field_72995_K) {
         this.func_70091_d((double)(var3 - this.field_70130_N), 0.0D, (double)(var3 - this.field_70130_N));
      }
   }

   var3 = p_70105_1_ % 2.0F;
   if((double)var3 < 0.375D) {
      this.field_70168_am = EnumEntitySize.SIZE_1;
   } else if((double)var3 < 0.75D) {
      this.field_70168_am = EnumEntitySize.SIZE_2;
   } else if((double)var3 < 1.0D) {
      this.field_70168_am = EnumEntitySize.SIZE_3;
   } else if((double)var3 < 1.375D) {
      this.field_70168_am = EnumEntitySize.SIZE_4;
   } else if((double)var3 < 1.75D) {
      this.field_70168_am = EnumEntitySize.SIZE_5;
   } else {
      this.field_70168_am = EnumEntitySize.SIZE_6;
   }

}
项目:RuneCraftery    文件:EnumHelper.java   
public static EnumEntitySize addEntitySize(String name)
{
    return addEnum(EnumEntitySize.class, name);
}
项目:RuneCraftery    文件:EnumHelper.java   
public static EnumEntitySize addEntitySize(String name)
{
    return addEnum(EnumEntitySize.class, name);
}
项目:BetterNutritionMod    文件:EnumHelper.java   
public static EnumEntitySize addEntitySize(String name)
{
    return addEnum(EnumEntitySize.class, name);
}