diff --git a/src/data/bedrock/item/ItemSerializerDeserializerRegistrar.php b/src/data/bedrock/item/ItemSerializerDeserializerRegistrar.php index aafac3b60f..368423911d 100644 --- a/src/data/bedrock/item/ItemSerializerDeserializerRegistrar.php +++ b/src/data/bedrock/item/ItemSerializerDeserializerRegistrar.php @@ -274,6 +274,7 @@ final class ItemSerializerDeserializerRegistrar{ $this->map1to1Item(Ids::LEATHER_HELMET, Items::LEATHER_CAP()); $this->map1to1Item(Ids::LEATHER_LEGGINGS, Items::LEATHER_PANTS()); $this->map1to1Item(Ids::MAGMA_CREAM, Items::MAGMA_CREAM()); + $this->map1to1Item(Ids::MANGROVE_BOAT, Items::MANGROVE_BOAT()); $this->map1to1Item(Ids::MANGROVE_SIGN, Items::MANGROVE_SIGN()); $this->map1to1Item(Ids::MELON_SEEDS, Items::MELON_SEEDS()); $this->map1to1Item(Ids::MELON_SLICE, Items::MELON()); diff --git a/src/item/BoatType.php b/src/item/BoatType.php index 09816412b5..5ef0c9255b 100644 --- a/src/item/BoatType.php +++ b/src/item/BoatType.php @@ -36,6 +36,7 @@ use pocketmine\utils\EnumTrait; * @method static BoatType BIRCH() * @method static BoatType DARK_OAK() * @method static BoatType JUNGLE() + * @method static BoatType MANGROVE() * @method static BoatType OAK() * @method static BoatType SPRUCE() */ @@ -52,6 +53,7 @@ final class BoatType{ new self("jungle", WoodType::JUNGLE()), new self("acacia", WoodType::ACACIA()), new self("dark_oak", WoodType::DARK_OAK()), + new self("mangrove", WoodType::MANGROVE()), ); } diff --git a/src/item/ItemTypeIds.php b/src/item/ItemTypeIds.php index ddde0d1cbb..f2be016b91 100644 --- a/src/item/ItemTypeIds.php +++ b/src/item/ItemTypeIds.php @@ -300,8 +300,9 @@ final class ItemTypeIds{ public const SUSPICIOUS_STEW = 20261; public const TURTLE_HELMET = 20262; public const MEDICINE = 20263; + public const MANGROVE_BOAT = 20264; - public const FIRST_UNUSED_ITEM_ID = 20264; + public const FIRST_UNUSED_ITEM_ID = 20265; private static int $nextDynamicId = self::FIRST_UNUSED_ITEM_ID; diff --git a/src/item/VanillaItems.php b/src/item/VanillaItems.php index 9da73abe92..eeaeddc800 100644 --- a/src/item/VanillaItems.php +++ b/src/item/VanillaItems.php @@ -203,6 +203,7 @@ use pocketmine\world\World; * @method static Armor LEATHER_PANTS() * @method static Armor LEATHER_TUNIC() * @method static Item MAGMA_CREAM() + * @method static Boat MANGROVE_BOAT() * @method static ItemBlockWallOrFloor MANGROVE_SIGN() * @method static Medicine MEDICINE() * @method static Melon MELON() @@ -547,6 +548,7 @@ final class VanillaItems{ BoatType::JUNGLE() => Ids::JUNGLE_BOAT, BoatType::ACACIA() => Ids::ACACIA_BOAT, BoatType::DARK_OAK() => Ids::DARK_OAK_BOAT, + BoatType::MANGROVE() => Ids::MANGROVE_BOAT, default => throw new AssumptionFailedError("Unhandled tree type " . $type->name()) }), $type->getDisplayName() . " Boat", $type)); }