本文整理匯總了Java中net.minecraft.init.Enchantments.FROST_WALKER屬性的典型用法代碼示例。如果您正苦於以下問題:Java Enchantments.FROST_WALKER屬性的具體用法?Java Enchantments.FROST_WALKER怎麽用?Java Enchantments.FROST_WALKER使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraft.init.Enchantments
的用法示例。
在下文中一共展示了Enchantments.FROST_WALKER屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getEnchantmentFromMeta
public static Enchantment getEnchantmentFromMeta (int meta) {
switch (meta) {
case 0:
return Enchantments.FIRE_ASPECT;
case 1:
return Enchantments.EFFICIENCY;
case 2:
return Enchantments.DEPTH_STRIDER;
case 3:
return Enchantments.KNOCKBACK;
case 4:
return Enchantments.PROTECTION;
case 5:
return Enchantments.LUCK_OF_THE_SEA;
case 6:
return Enchantments.FROST_WALKER;
default:
return Enchantments.FIRE_ASPECT;
}
}
示例2: canApplyTogether
/**
* Determines if the enchantment passed can be applyied together with this enchantment.
*/
public boolean canApplyTogether(Enchantment ench)
{
return super.canApplyTogether(ench) && ench != Enchantments.FROST_WALKER;
}
示例3: canApplyEnchantment
public static boolean canApplyEnchantment(Enchantment enchantment){
if(enchantment == Enchantments.FEATHER_FALLING || enchantment == Enchantments.DEPTH_STRIDER || enchantment == Enchantments.FROST_WALKER){
return true;
}
return false;
}