32 use IntSaveIdMapTrait;
34 private function __construct(){
35 foreach(PotionType::cases() as $case){
36 $this->
register(match($case){
37 PotionType::WATER => PotionTypeIds::WATER,
38 PotionType::MUNDANE => PotionTypeIds::MUNDANE,
39 PotionType::LONG_MUNDANE => PotionTypeIds::LONG_MUNDANE,
40 PotionType::THICK => PotionTypeIds::THICK,
41 PotionType::AWKWARD => PotionTypeIds::AWKWARD,
42 PotionType::NIGHT_VISION => PotionTypeIds::NIGHT_VISION,
43 PotionType::LONG_NIGHT_VISION => PotionTypeIds::LONG_NIGHT_VISION,
44 PotionType::INVISIBILITY => PotionTypeIds::INVISIBILITY,
45 PotionType::LONG_INVISIBILITY => PotionTypeIds::LONG_INVISIBILITY,
46 PotionType::LEAPING => PotionTypeIds::LEAPING,
47 PotionType::LONG_LEAPING => PotionTypeIds::LONG_LEAPING,
48 PotionType::STRONG_LEAPING => PotionTypeIds::STRONG_LEAPING,
49 PotionType::FIRE_RESISTANCE => PotionTypeIds::FIRE_RESISTANCE,
50 PotionType::LONG_FIRE_RESISTANCE => PotionTypeIds::LONG_FIRE_RESISTANCE,
51 PotionType::SWIFTNESS => PotionTypeIds::SWIFTNESS,
52 PotionType::LONG_SWIFTNESS => PotionTypeIds::LONG_SWIFTNESS,
53 PotionType::STRONG_SWIFTNESS => PotionTypeIds::STRONG_SWIFTNESS,
54 PotionType::SLOWNESS => PotionTypeIds::SLOWNESS,
55 PotionType::LONG_SLOWNESS => PotionTypeIds::LONG_SLOWNESS,
56 PotionType::WATER_BREATHING => PotionTypeIds::WATER_BREATHING,
57 PotionType::LONG_WATER_BREATHING => PotionTypeIds::LONG_WATER_BREATHING,
58 PotionType::HEALING => PotionTypeIds::HEALING,
59 PotionType::STRONG_HEALING => PotionTypeIds::STRONG_HEALING,
60 PotionType::HARMING => PotionTypeIds::HARMING,
61 PotionType::STRONG_HARMING => PotionTypeIds::STRONG_HARMING,
62 PotionType::POISON => PotionTypeIds::POISON,
63 PotionType::LONG_POISON => PotionTypeIds::LONG_POISON,
64 PotionType::STRONG_POISON => PotionTypeIds::STRONG_POISON,
65 PotionType::REGENERATION => PotionTypeIds::REGENERATION,
66 PotionType::LONG_REGENERATION => PotionTypeIds::LONG_REGENERATION,
67 PotionType::STRONG_REGENERATION => PotionTypeIds::STRONG_REGENERATION,
68 PotionType::STRENGTH => PotionTypeIds::STRENGTH,
69 PotionType::LONG_STRENGTH => PotionTypeIds::LONG_STRENGTH,
70 PotionType::STRONG_STRENGTH => PotionTypeIds::STRONG_STRENGTH,
71 PotionType::WEAKNESS => PotionTypeIds::WEAKNESS,
72 PotionType::LONG_WEAKNESS => PotionTypeIds::LONG_WEAKNESS,
73 PotionType::WITHER => PotionTypeIds::WITHER,
74 PotionType::TURTLE_MASTER => PotionTypeIds::TURTLE_MASTER,
75 PotionType::LONG_TURTLE_MASTER => PotionTypeIds::LONG_TURTLE_MASTER,
76 PotionType::STRONG_TURTLE_MASTER => PotionTypeIds::STRONG_TURTLE_MASTER,
77 PotionType::SLOW_FALLING => PotionTypeIds::SLOW_FALLING,
78 PotionType::LONG_SLOW_FALLING => PotionTypeIds::LONG_SLOW_FALLING,
79 PotionType::STRONG_SLOWNESS => PotionTypeIds::STRONG_SLOWNESS,