43 protected function setup() : void{
50 fn(int $level) : int => 11 * ($level - 1) + 1,
54 KnownTranslationFactory::enchantment_protect_fire(),
59 EntityDamageEvent::CAUSE_FIRE,
60 EntityDamageEvent::CAUSE_FIRE_TICK,
61 EntityDamageEvent::CAUSE_LAVA
64 fn(
int $level) :
int => 8 * ($level - 1) + 10,
68 KnownTranslationFactory::enchantment_protect_fall(),
73 EntityDamageEvent::CAUSE_FALL
75 fn(
int $level) :
int => 6 * ($level - 1) + 5,
79 KnownTranslationFactory::enchantment_protect_explosion(),
84 EntityDamageEvent::CAUSE_BLOCK_EXPLOSION,
85 EntityDamageEvent::CAUSE_ENTITY_EXPLOSION
87 fn(
int $level) :
int => 8 * ($level - 1) + 5,
91 KnownTranslationFactory::enchantment_protect_projectile(),
96 EntityDamageEvent::CAUSE_PROJECTILE
98 fn(
int $level) :
int => 6 * ($level - 1) + 3,
102 KnownTranslationFactory::enchantment_thorns(),
105 fn(
int $level) :
int => 20 * ($level - 1) + 10,
109 KnownTranslationFactory::enchantment_oxygen(),
112 fn(
int $level) :
int => 10 * $level,
117 KnownTranslationFactory::enchantment_frostwalker(),
120 fn(
int $level) :
int => 10 * $level,
124 KnownTranslationFactory::enchantment_waterWorker(),
132 KnownTranslationFactory::enchantment_damage_all(),
135 fn(
int $level) :
int => 11 * ($level - 1) + 1,
139 KnownTranslationFactory::enchantment_knockback(),
142 fn(
int $level) :
int => 20 * ($level - 1) + 5,
146 KnownTranslationFactory::enchantment_fire(),
149 fn(
int $level) :
int => 20 * ($level - 1) + 10,
155 KnownTranslationFactory::enchantment_digging(),
158 fn(
int $level) :
int => 10 * ($level - 1) + 1,
162 KnownTranslationFactory::enchantment_lootBonusDigger(),
165 fn(
int $level) :
int => 9 * ($level - 1) + 15,
169 KnownTranslationFactory::enchantment_untouching(),
172 fn(
int $level) :
int => 15,
176 KnownTranslationFactory::enchantment_durability(),
179 fn(
int $level) :
int => 8 * ($level - 1) + 5,
184 KnownTranslationFactory::enchantment_arrowDamage(),
187 fn(
int $level) :
int => 10 * ($level - 1) + 1,
191 KnownTranslationFactory::enchantment_arrowKnockback(),
194 fn(
int $level) :
int => 20 * ($level - 1) + 12,
198 KnownTranslationFactory::enchantment_arrowFire(),
201 fn(
int $level) :
int => 20,
205 KnownTranslationFactory::enchantment_arrowInfinite(),
208 fn(
int $level) :
int => 20,
213 KnownTranslationFactory::enchantment_mending(),
216 fn(
int $level) :
int => 25,
221 KnownTranslationFactory::enchantment_curse_vanishing(),
224 fn(
int $level) :
int => 25,
229 KnownTranslationFactory::enchantment_swift_sneak(),
232 fn(
int $level) :
int => 10 * $level,