getProtection

fun ItemStack.getProtection(enchantment: Enchantment): Int

아이템의 보호 인챈트 수치를 가져옵니다. Enchantment.PROTECTION_ENVIRONMENTAL의 경우 두배의 수치를 반환합니다.

fun LivingEntity.getProtection(enchantment: Enchantment): Int

개체 방어구의 보호 인챈트 수치를 가져옵니다.

수치는 getProtection을 통해 계산되며 최대 40을 반환합니다.