本文整理匯總了Java中net.minecraft.entity.EnumCreatureAttribute.UNDEFINED屬性的典型用法代碼示例。如果您正苦於以下問題:Java EnumCreatureAttribute.UNDEFINED屬性的具體用法?Java EnumCreatureAttribute.UNDEFINED怎麽用?Java EnumCreatureAttribute.UNDEFINED使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraft.entity.EnumCreatureAttribute
的用法示例。
在下文中一共展示了EnumCreatureAttribute.UNDEFINED屬性的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: calcDamageByCreature
@Override
public float calcDamageByCreature(int level, EnumCreatureAttribute creatureType) {
if (creatureType == EnumCreatureAttribute.ILLAGER || creatureType == EnumCreatureAttribute.UNDEFINED) {
return level * 2.5F;
} else {
return 0;
}
}
示例2: getCreatureAttribute
/**
* Get this Entity's EnumCreatureAttribute
*/
public EnumCreatureAttribute getCreatureAttribute()
{
return this.getType().isUndead() ? EnumCreatureAttribute.UNDEAD : EnumCreatureAttribute.UNDEFINED;
}
示例3: getCreatureAttribute
/**
* Get this Entity's EnumCreatureAttribute
*/
public EnumCreatureAttribute getCreatureAttribute()
{
return EnumCreatureAttribute.UNDEFINED;
}
示例4: getCreatureAttribute
public EnumCreatureAttribute getCreatureAttribute() {
return EnumCreatureAttribute.UNDEFINED;
}
示例5: getCreatureAttribute
@Override
public EnumCreatureAttribute getCreatureAttribute() {
return EnumCreatureAttribute.UNDEFINED;
}
示例6: getCreatureAttribute
public EnumCreatureAttribute getCreatureAttribute() {
return EnumCreatureAttribute.UNDEFINED;
}
示例7: func_70668_bt
public EnumCreatureAttribute func_70668_bt() {
return EnumCreatureAttribute.UNDEFINED;
}
示例8: getCreatureAttribute
/**
* Get this Entity's EnumCreatureAttribute
*/
@Override
public EnumCreatureAttribute getCreatureAttribute()
{
return EnumCreatureAttribute.UNDEFINED;
}