本文整理匯總了Java中net.minecraft.entity.EnumEntitySize類的典型用法代碼示例。如果您正苦於以下問題:Java EnumEntitySize類的具體用法?Java EnumEntitySize怎麽用?Java EnumEntitySize使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
EnumEntitySize類屬於net.minecraft.entity包,在下文中一共展示了EnumEntitySize類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: Entity
import net.minecraft.entity.EnumEntitySize; //導入依賴的package包/類
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();
}
示例2: func_70105_a
import net.minecraft.entity.EnumEntitySize; //導入依賴的package包/類
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;
}
}
示例3: addEntitySize
import net.minecraft.entity.EnumEntitySize; //導入依賴的package包/類
public static EnumEntitySize addEntitySize(String name)
{
return addEnum(EnumEntitySize.class, name);
}