mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Register mangrove boat item
This commit is contained in:
parent
896dd2ec9d
commit
299ff5d912
@ -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());
|
||||
|
@ -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()),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user