62 protected static function setup() :
void{
64 KnownTranslationFactory::enchantment_protect_all(),
71 fn(
int $level) :
int => 11 * ($level - 1) + 1,
75 KnownTranslationFactory::enchantment_protect_fire(),
82 EntityDamageEvent::CAUSE_FIRE,
83 EntityDamageEvent::CAUSE_FIRE_TICK,
84 EntityDamageEvent::CAUSE_LAVA
87 fn(
int $level) :
int => 8 * ($level - 1) + 10,
91 KnownTranslationFactory::enchantment_protect_fall(),
98 EntityDamageEvent::CAUSE_FALL
100 fn(
int $level) :
int => 6 * ($level - 1) + 5,
104 KnownTranslationFactory::enchantment_protect_explosion(),
111 EntityDamageEvent::CAUSE_BLOCK_EXPLOSION,
112 EntityDamageEvent::CAUSE_ENTITY_EXPLOSION
114 fn(
int $level) :
int => 8 * ($level - 1) + 5,
118 KnownTranslationFactory::enchantment_protect_projectile(),
125 EntityDamageEvent::CAUSE_PROJECTILE
127 fn(
int $level) :
int => 6 * ($level - 1) + 3,
131 KnownTranslationFactory::enchantment_thorns(),
136 fn(
int $level) :
int => 20 * ($level - 1) + 10,
140 KnownTranslationFactory::enchantment_oxygen(),
145 fn(
int $level) :
int => 10 * $level,
149 KnownTranslationFactory::enchantment_waterWorker(),
159 KnownTranslationFactory::enchantment_damage_all(),
164 fn(
int $level) :
int => 11 * ($level - 1) + 1,
168 KnownTranslationFactory::enchantment_knockback(),
173 fn(
int $level) :
int => 20 * ($level - 1) + 5,
177 KnownTranslationFactory::enchantment_fire(),
182 fn(
int $level) :
int => 20 * ($level - 1) + 10,
188 KnownTranslationFactory::enchantment_digging(),
193 fn(
int $level) :
int => 10 * ($level - 1) + 1,
197 KnownTranslationFactory::enchantment_lootBonusDigger(),
202 fn(
int $level) :
int => 9 * ($level - 1) + 15,
206 KnownTranslationFactory::enchantment_untouching(),
211 fn(
int $level) :
int => 15,
215 KnownTranslationFactory::enchantment_durability(),
220 fn(
int $level) :
int => 8 * ($level - 1) + 5,
225 KnownTranslationFactory::enchantment_arrowDamage(),
230 fn(
int $level) :
int => 10 * ($level - 1) + 1,
234 KnownTranslationFactory::enchantment_arrowKnockback(),
239 fn(
int $level) :
int => 20 * ($level - 1) + 12,
243 KnownTranslationFactory::enchantment_arrowFire(),
248 fn(
int $level) :
int => 20,
252 KnownTranslationFactory::enchantment_arrowInfinite(),
257 fn(
int $level) :
int => 20,
262 KnownTranslationFactory::enchantment_mending(),
267 fn(
int $level) :
int => 25,
272 KnownTranslationFactory::enchantment_curse_vanishing(),
277 fn(
int $level) :
int => 25,
282 KnownTranslationFactory::enchantment_swift_sneak(),
287 fn(
int $level) :
int => 10 * $level,
292 protected static function register(
string $name,
Enchantment $member) :
void{
293 self::_registryRegister($name, $member);
305 $result = self::_registryGetAll();