62 protected static function setup() :
void{
64 KnownTranslationFactory::enchantment_protect_all(),
69 fn(
int $level) :
int => 11 * ($level - 1) + 1,
73 KnownTranslationFactory::enchantment_protect_fire(),
78 EntityDamageEvent::CAUSE_FIRE,
79 EntityDamageEvent::CAUSE_FIRE_TICK,
80 EntityDamageEvent::CAUSE_LAVA
83 fn(
int $level) :
int => 8 * ($level - 1) + 10,
87 KnownTranslationFactory::enchantment_protect_fall(),
92 EntityDamageEvent::CAUSE_FALL
94 fn(
int $level) :
int => 6 * ($level - 1) + 5,
98 KnownTranslationFactory::enchantment_protect_explosion(),
103 EntityDamageEvent::CAUSE_BLOCK_EXPLOSION,
104 EntityDamageEvent::CAUSE_ENTITY_EXPLOSION
106 fn(
int $level) :
int => 8 * ($level - 1) + 5,
110 KnownTranslationFactory::enchantment_protect_projectile(),
115 EntityDamageEvent::CAUSE_PROJECTILE
117 fn(
int $level) :
int => 6 * ($level - 1) + 3,
121 KnownTranslationFactory::enchantment_thorns(),
124 fn(
int $level) :
int => 20 * ($level - 1) + 10,
128 KnownTranslationFactory::enchantment_oxygen(),
131 fn(
int $level) :
int => 10 * $level,
135 KnownTranslationFactory::enchantment_waterWorker(),
143 KnownTranslationFactory::enchantment_damage_all(),
146 fn(
int $level) :
int => 11 * ($level - 1) + 1,
150 KnownTranslationFactory::enchantment_knockback(),
153 fn(
int $level) :
int => 20 * ($level - 1) + 5,
157 KnownTranslationFactory::enchantment_fire(),
160 fn(
int $level) :
int => 20 * ($level - 1) + 10,
166 KnownTranslationFactory::enchantment_digging(),
169 fn(
int $level) :
int => 10 * ($level - 1) + 1,
173 KnownTranslationFactory::enchantment_lootBonusDigger(),
176 fn(
int $level) :
int => 9 * ($level - 1) + 15,
180 KnownTranslationFactory::enchantment_untouching(),
183 fn(
int $level) :
int => 15,
187 KnownTranslationFactory::enchantment_durability(),
190 fn(
int $level) :
int => 8 * ($level - 1) + 5,
195 KnownTranslationFactory::enchantment_arrowDamage(),
198 fn(
int $level) :
int => 10 * ($level - 1) + 1,
202 KnownTranslationFactory::enchantment_arrowKnockback(),
205 fn(
int $level) :
int => 20 * ($level - 1) + 12,
209 KnownTranslationFactory::enchantment_arrowFire(),
212 fn(
int $level) :
int => 20,
216 KnownTranslationFactory::enchantment_arrowInfinite(),
219 fn(
int $level) :
int => 20,
224 KnownTranslationFactory::enchantment_mending(),
227 fn(
int $level) :
int => 25,
232 KnownTranslationFactory::enchantment_curse_vanishing(),
235 fn(
int $level) :
int => 25,
240 KnownTranslationFactory::enchantment_swift_sneak(),
243 fn(
int $level) :
int => 10 * $level,
248 protected static function register(
string $name,
Enchantment $member) :
void{
249 self::_registryRegister($name, $member);
261 $result = self::_registryGetAll();