mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
29 lines
933 B
C++
29 lines
933 B
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "Tile.hpp"
|
|
|
|
class Bush : public Tile
|
|
{
|
|
public:
|
|
Bush(int id, int texture);
|
|
|
|
virtual bool canSurvive(Level*, int x, int y, int z) override;
|
|
virtual AABB* getAABB(Level*, int x, int y, int z) override;
|
|
virtual int getRenderShape() override;
|
|
virtual bool isCubeShaped() override;
|
|
virtual bool isSolidRender() override;
|
|
virtual bool mayPlace(Level*, int x, int y, int z) override;
|
|
virtual void tick(Level*, int x, int y, int z, Random*) override;
|
|
virtual void neighborChanged(Level*, int x, int y, int z, int dir) override;
|
|
|
|
void checkAlive(Level*, int x, int y, int z);
|
|
};
|