| 18 | |
| 19 | namespace endstone::python { |
| 20 | void init_potion(py::module_ &m) |
| 21 | { |
| 22 | py::class_<PotionType>(m, "PotionType", "All potion types.") |
| 23 | .def_property_readonly_static("WATER", [](const py::object &) { return PotionType::Water; }) |
| 24 | .def_property_readonly_static("MUNDANE", [](const py::object &) { return PotionType::Mundane; }) |
| 25 | .def_property_readonly_static("LONG_MUNDANE", [](const py::object &) { return PotionType::LongMundane; }) |
| 26 | .def_property_readonly_static("THICK", [](const py::object &) { return PotionType::Thick; }) |
| 27 | .def_property_readonly_static("AWKWARD", [](const py::object &) { return PotionType::Awkward; }) |
| 28 | .def_property_readonly_static("NIGHTVISION", [](const py::object &) { return PotionType::Nightvision; }) |
| 29 | .def_property_readonly_static("LONG_NIGHTVISION", |
| 30 | [](const py::object &) { return PotionType::LongNightvision; }) |
| 31 | .def_property_readonly_static("INVISIBILITY", [](const py::object &) { return PotionType::Invisibility; }) |
| 32 | .def_property_readonly_static("LONG_INVISIBILITY", |
| 33 | [](const py::object &) { return PotionType::LongInvisibility; }) |
| 34 | .def_property_readonly_static("LEAPING", [](const py::object &) { return PotionType::Leaping; }) |
| 35 | .def_property_readonly_static("LONG_LEAPING", [](const py::object &) { return PotionType::LongLeaping; }) |
| 36 | .def_property_readonly_static("STRONG_LEAPING", [](const py::object &) { return PotionType::StrongLeaping; }) |
| 37 | .def_property_readonly_static("FIRE_RESISTANCE", [](const py::object &) { return PotionType::FireResistance; }) |
| 38 | .def_property_readonly_static("LONG_FIRE_RESISTANCE", |
| 39 | [](const py::object &) { return PotionType::LongFireResistance; }) |
| 40 | .def_property_readonly_static("SWIFTNESS", [](const py::object &) { return PotionType::Swiftness; }) |
| 41 | .def_property_readonly_static("LONG_SWIFTNESS", [](const py::object &) { return PotionType::LongSwiftness; }) |
| 42 | .def_property_readonly_static("STRONG_SWIFTNESS", |
| 43 | [](const py::object &) { return PotionType::StrongSwiftness; }) |
| 44 | .def_property_readonly_static("SLOWNESS", [](const py::object &) { return PotionType::Slowness; }) |
| 45 | .def_property_readonly_static("LONG_SLOWNESS", [](const py::object &) { return PotionType::LongSlowness; }) |
| 46 | .def_property_readonly_static("STRONG_SLOWNESS", [](const py::object &) { return PotionType::StrongSlowness; }) |
| 47 | .def_property_readonly_static("WATER_BREATHING", [](const py::object &) { return PotionType::WaterBreathing; }) |
| 48 | .def_property_readonly_static("LONG_WATER_BREATHING", |
| 49 | [](const py::object &) { return PotionType::LongWaterBreathing; }) |
| 50 | .def_property_readonly_static("HEALING", [](const py::object &) { return PotionType::Healing; }) |
| 51 | .def_property_readonly_static("STRONG_HEALING", [](const py::object &) { return PotionType::StrongHealing; }) |
| 52 | .def_property_readonly_static("HARMING", [](const py::object &) { return PotionType::Harming; }) |
| 53 | .def_property_readonly_static("STRONG_HARMING", [](const py::object &) { return PotionType::StrongHarming; }) |
| 54 | .def_property_readonly_static("POISON", [](const py::object &) { return PotionType::Poison; }) |
| 55 | .def_property_readonly_static("LONG_POISON", [](const py::object &) { return PotionType::LongPoison; }) |
| 56 | .def_property_readonly_static("STRONG_POISON", [](const py::object &) { return PotionType::StrongPoison; }) |
| 57 | .def_property_readonly_static("REGENERATION", [](const py::object &) { return PotionType::Regeneration; }) |
| 58 | .def_property_readonly_static("LONG_REGENERATION", |
| 59 | [](const py::object &) { return PotionType::LongRegeneration; }) |
| 60 | .def_property_readonly_static("STRONG_REGENERATION", |
| 61 | [](const py::object &) { return PotionType::StrongRegeneration; }) |
| 62 | .def_property_readonly_static("STRENGTH", [](const py::object &) { return PotionType::Strength; }) |
| 63 | .def_property_readonly_static("LONG_STRENGTH", [](const py::object &) { return PotionType::LongStrength; }) |
| 64 | .def_property_readonly_static("STRONG_STRENGTH", [](const py::object &) { return PotionType::StrongStrength; }) |
| 65 | .def_property_readonly_static("WEAKNESS", [](const py::object &) { return PotionType::Weakness; }) |
| 66 | .def_property_readonly_static("LONG_WEAKNESS", [](const py::object &) { return PotionType::LongWeakness; }) |
| 67 | .def_property_readonly_static("WITHER", [](const py::object &) { return PotionType::Wither; }) |
| 68 | .def_property_readonly_static("TURTLE_MASTER", [](const py::object &) { return PotionType::TurtleMaster; }) |
| 69 | .def_property_readonly_static("LONG_TURTLE_MASTER", |
| 70 | [](const py::object &) { return PotionType::LongTurtleMaster; }) |
| 71 | .def_property_readonly_static("STRONG_TURTLE_MASTER", |
| 72 | [](const py::object &) { return PotionType::StrongTurtleMaster; }) |
| 73 | .def_property_readonly_static("SLOW_FALLING", [](const py::object &) { return PotionType::SlowFalling; }) |
| 74 | .def_property_readonly_static("LONG_SLOW_FALLING", |
| 75 | [](const py::object &) { return PotionType::LongSlowFalling; }) |
| 76 | .def_property_readonly_static("WIND_CHARGED", [](const py::object &) { return PotionType::WindCharged; }) |
| 77 | .def_property_readonly_static("WEAVING", [](const py::object &) { return PotionType::Weaving; }) |