Skip to content

BoatVariant 5.46.0 ​

enum · pocketmine\entity\vehicle\BoatVariant · source

The wood of a boat, sent to clients as the VARIANT of minecraft:boat and minecraft:chest_boat and saved as "Variant" (Bedrock numbering: the bamboo raft is variant 7).

Cases ​

ACACIA ​

php
case ACACIA = 4

BAMBOO ​

php
case BAMBOO = 7

BIRCH ​

php
case BIRCH = 2

CHERRY ​

php
case CHERRY = 8

DARK_OAK ​

php
case DARK_OAK = 5

JUNGLE ​

php
case JUNGLE = 3

MANGROVE ​

php
case MANGROVE = 6

OAK ​

php
case OAK = 0

PALE_OAK ​

php
case PALE_OAK = 9

POPLAR ​

php
case POPLAR = 10

SPRUCE ​

php
case SPRUCE = 1

Methods ​

fromBoatType() ​

php
public static function fromBoatType(\pocketmine\item\BoatType $type) : self

getBoatItem() ​

php
public function getBoatItem() : \pocketmine\item\Item

The item of the boat of this wood (the bamboo raft for bamboo).

getChestBoatItem() ​

php
public function getChestBoatItem() : \pocketmine\item\Item

The item of the boat with chest of this wood (the bamboo chest raft for bamboo).

isRaft() ​

php
public function isRaft() : bool

Whether this is the bamboo raft (flat, its seats are higher).

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.