public function __construct(FullChunk $chunk, CompoundTag $nbt) { if (!isset($nbt->WoodID)) { $nbt->WoodID = new IntTag("WoodID", 0); } parent::__construct($chunk, $nbt); $this->setDataProperty(self::DATA_VARIANT, self::DATA_TYPE_INT, $this->getWoodID()); }
public function __construct(FullChunk $chunk, CompoundTag $nbt) { if (!isset($nbt->woodID)) { $nbt->woodID = new ByteTag("woodID", 0); } parent::__construct($chunk, $nbt); $this->setDataProperty(self::DATA_BOAT_COLOR, self::DATA_TYPE_BYTE, $this->getWoodID()); }