63 protected static function setup() :
void{
65 KnownTranslationFactory::enchantment_protect_all(),
72 fn(
int $level) :
int => 11 * ($level - 1) + 1,
76 KnownTranslationFactory::enchantment_protect_fire(),
83 EntityDamageEvent::CAUSE_FIRE,
84 EntityDamageEvent::CAUSE_FIRE_TICK,
85 EntityDamageEvent::CAUSE_LAVA
88 fn(
int $level) :
int => 8 * ($level - 1) + 10,
92 KnownTranslationFactory::enchantment_protect_fall(),
99 EntityDamageEvent::CAUSE_FALL
101 fn(
int $level) :
int => 6 * ($level - 1) + 5,
105 KnownTranslationFactory::enchantment_protect_explosion(),
112 EntityDamageEvent::CAUSE_BLOCK_EXPLOSION,
113 EntityDamageEvent::CAUSE_ENTITY_EXPLOSION
115 fn(
int $level) :
int => 8 * ($level - 1) + 5,
119 KnownTranslationFactory::enchantment_protect_projectile(),
126 EntityDamageEvent::CAUSE_PROJECTILE
128 fn(
int $level) :
int => 6 * ($level - 1) + 3,
132 KnownTranslationFactory::enchantment_thorns(),
137 fn(
int $level) :
int => 20 * ($level - 1) + 10,
141 KnownTranslationFactory::enchantment_oxygen(),
146 fn(
int $level) :
int => 10 * $level,
151 KnownTranslationFactory::enchantment_frostwalker(),
156 fn(
int $level) :
int => 10 * $level,
160 KnownTranslationFactory::enchantment_waterWorker(),
170 KnownTranslationFactory::enchantment_damage_all(),
175 fn(
int $level) :
int => 11 * ($level - 1) + 1,
179 KnownTranslationFactory::enchantment_knockback(),
184 fn(
int $level) :
int => 20 * ($level - 1) + 5,
188 KnownTranslationFactory::enchantment_fire(),
193 fn(
int $level) :
int => 20 * ($level - 1) + 10,
199 KnownTranslationFactory::enchantment_digging(),
204 fn(
int $level) :
int => 10 * ($level - 1) + 1,
208 KnownTranslationFactory::enchantment_lootBonusDigger(),
213 fn(
int $level) :
int => 9 * ($level - 1) + 15,
217 KnownTranslationFactory::enchantment_untouching(),
222 fn(
int $level) :
int => 15,
226 KnownTranslationFactory::enchantment_durability(),
231 fn(
int $level) :
int => 8 * ($level - 1) + 5,
236 KnownTranslationFactory::enchantment_arrowDamage(),
241 fn(
int $level) :
int => 10 * ($level - 1) + 1,
245 KnownTranslationFactory::enchantment_arrowKnockback(),
250 fn(
int $level) :
int => 20 * ($level - 1) + 12,
254 KnownTranslationFactory::enchantment_arrowFire(),
259 fn(
int $level) :
int => 20,
263 KnownTranslationFactory::enchantment_arrowInfinite(),
268 fn(
int $level) :
int => 20,
273 KnownTranslationFactory::enchantment_mending(),
278 fn(
int $level) :
int => 25,
283 KnownTranslationFactory::enchantment_curse_vanishing(),
288 fn(
int $level) :
int => 25,
293 KnownTranslationFactory::enchantment_swift_sneak(),
298 fn(
int $level) :
int => 10 * $level,
303 protected static function register(
string $name,
Enchantment $member) :
void{
304 self::_registryRegister($name, $member);
316 $result = self::_registryGetAll();