43 protected function setup() : void{
52 fn(int $level) : int => 11 * ($level - 1) + 1,
56 KnownTranslationFactory::enchantment_protect_fire(),
63 EntityDamageEvent::CAUSE_FIRE,
64 EntityDamageEvent::CAUSE_FIRE_TICK,
65 EntityDamageEvent::CAUSE_LAVA
68 fn(
int $level) :
int => 8 * ($level - 1) + 10,
72 KnownTranslationFactory::enchantment_protect_fall(),
79 EntityDamageEvent::CAUSE_FALL
81 fn(
int $level) :
int => 6 * ($level - 1) + 5,
85 KnownTranslationFactory::enchantment_protect_explosion(),
92 EntityDamageEvent::CAUSE_BLOCK_EXPLOSION,
93 EntityDamageEvent::CAUSE_ENTITY_EXPLOSION
95 fn(
int $level) :
int => 8 * ($level - 1) + 5,
99 KnownTranslationFactory::enchantment_protect_projectile(),
106 EntityDamageEvent::CAUSE_PROJECTILE
108 fn(
int $level) :
int => 6 * ($level - 1) + 3,
112 KnownTranslationFactory::enchantment_thorns(),
117 fn(
int $level) :
int => 20 * ($level - 1) + 10,
121 KnownTranslationFactory::enchantment_oxygen(),
126 fn(
int $level) :
int => 10 * $level,
131 KnownTranslationFactory::enchantment_frostwalker(),
136 fn(
int $level) :
int => 10 * $level,
140 KnownTranslationFactory::enchantment_waterWorker(),
150 KnownTranslationFactory::enchantment_damage_all(),
155 fn(
int $level) :
int => 11 * ($level - 1) + 1,
159 KnownTranslationFactory::enchantment_knockback(),
164 fn(
int $level) :
int => 20 * ($level - 1) + 5,
168 KnownTranslationFactory::enchantment_fire(),
173 fn(
int $level) :
int => 20 * ($level - 1) + 10,
179 KnownTranslationFactory::enchantment_digging(),
184 fn(
int $level) :
int => 10 * ($level - 1) + 1,
188 KnownTranslationFactory::enchantment_lootBonusDigger(),
193 fn(
int $level) :
int => 9 * ($level - 1) + 15,
197 KnownTranslationFactory::enchantment_untouching(),
202 fn(
int $level) :
int => 15,
206 KnownTranslationFactory::enchantment_durability(),
211 fn(
int $level) :
int => 8 * ($level - 1) + 5,
216 KnownTranslationFactory::enchantment_arrowDamage(),
221 fn(
int $level) :
int => 10 * ($level - 1) + 1,
225 KnownTranslationFactory::enchantment_arrowKnockback(),
230 fn(
int $level) :
int => 20 * ($level - 1) + 12,
234 KnownTranslationFactory::enchantment_arrowFire(),
239 fn(
int $level) :
int => 20,
243 KnownTranslationFactory::enchantment_arrowInfinite(),
248 fn(
int $level) :
int => 20,
253 KnownTranslationFactory::enchantment_mending(),
258 fn(
int $level) :
int => 25,
263 KnownTranslationFactory::enchantment_curse_vanishing(),
268 fn(
int $level) :
int => 25,
273 KnownTranslationFactory::enchantment_swift_sneak(),
278 fn(
int $level) :
int => 10 * $level,