82 use LegacyEnumShimTrait;
90 case LONG_NIGHT_VISION;
92 case LONG_INVISIBILITY;
97 case LONG_FIRE_RESISTANCE;
100 case STRONG_SWIFTNESS;
103 case WATER_BREATHING;
104 case LONG_WATER_BREATHING;
113 case LONG_REGENERATION;
114 case STRONG_REGENERATION;
117 case STRONG_STRENGTH;
122 case LONG_TURTLE_MASTER;
123 case STRONG_TURTLE_MASTER;
125 case LONG_SLOW_FALLING;
126 case STRONG_SLOWNESS;
135 return $cache[spl_object_id($this)] ??= match($this){
136 self::WATER => [
"Water", fn() => []],
137 self::MUNDANE => [
"Mundane", fn() => []],
138 self::LONG_MUNDANE => [
"Long Mundane", fn() => []],
139 self::THICK => [
"Thick", fn() => []],
140 self::AWKWARD => [
"Awkward", fn() => []],
141 self::NIGHT_VISION => [
"Night Vision", fn() => [
144 self::LONG_NIGHT_VISION => [
"Long Night Vision", fn() => [
147 self::INVISIBILITY => [
"Invisibility", fn() => [
150 self::LONG_INVISIBILITY => [
"Long Invisibility", fn() => [
153 self::LEAPING => [
"Leaping", fn() => [
156 self::LONG_LEAPING => [
"Long Leaping", fn() => [
159 self::STRONG_LEAPING => [
"Strong Leaping", fn() => [
162 self::FIRE_RESISTANCE => [
"Fire Resistance", fn() => [
165 self::LONG_FIRE_RESISTANCE => [
"Long Fire Resistance", fn() => [
168 self::SWIFTNESS => [
"Swiftness", fn() => [
171 self::LONG_SWIFTNESS => [
"Long Swiftness", fn() => [
174 self::STRONG_SWIFTNESS => [
"Strong Swiftness", fn() => [
177 self::SLOWNESS => [
"Slowness", fn() => [
180 self::LONG_SLOWNESS => [
"Long Slowness", fn() => [
183 self::WATER_BREATHING => [
"Water Breathing", fn() => [
186 self::LONG_WATER_BREATHING => [
"Long Water Breathing", fn() => [
189 self::HEALING => [
"Healing", fn() => [
192 self::STRONG_HEALING => [
"Strong Healing", fn() => [
195 self::HARMING => [
"Harming", fn() => [
198 self::STRONG_HARMING => [
"Strong Harming", fn() => [
201 self::POISON => [
"Poison", fn() => [
204 self::LONG_POISON => [
"Long Poison", fn() => [
207 self::STRONG_POISON => [
"Strong Poison", fn() => [
210 self::REGENERATION => [
"Regeneration", fn() => [
213 self::LONG_REGENERATION => [
"Long Regeneration", fn() => [
216 self::STRONG_REGENERATION => [
"Strong Regeneration", fn() => [
219 self::STRENGTH => [
"Strength", fn() => [
222 self::LONG_STRENGTH => [
"Long Strength", fn() => [
225 self::STRONG_STRENGTH => [
"Strong Strength", fn() => [
228 self::WEAKNESS => [
"Weakness", fn() => [
231 self::LONG_WEAKNESS => [
"Long Weakness", fn() => [
234 self::WITHER => [
"Wither", fn() => [
237 self::TURTLE_MASTER => [
"Turtle Master", fn() => [
241 self::LONG_TURTLE_MASTER => [
"Long Turtle Master", fn() => [
245 self::STRONG_TURTLE_MASTER => [
"Strong Turtle Master", fn() => [
249 self::SLOW_FALLING => [
"Slow Falling", fn() => [
252 self::LONG_SLOW_FALLING => [
"Long Slow Falling", fn() => [
255 self::STRONG_SLOWNESS => [
"Strong Slowness", fn() => [
261 public function getDisplayName() :
string{
return $this->
getMetadata()[0]; }