4jcraft/targets/minecraft/world/level/tile/PlantTile.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

42 lines
978 B
C++

#pragma once
#include "Tile.h"
#include "minecraft/world/level/material/Material.h"
class Random;
class Level;
class Material;
class Bush : public Tile {
friend class Tile;
private:
void _init();
protected:
Bush(int id, Material* material);
Bush(int id);
public:
virtual void updateDefaultShape();
virtual bool mayPlace(Level* level, int x, int y, int z);
protected:
virtual bool mayPlaceOn(int tile);
public:
virtual void neighborChanged(Level* level, int x, int y, int z, int type);
virtual void tick(Level* level, int x, int y, int z, Random* random);
protected:
void checkAlive(Level* level, int x, int y, int z);
public:
virtual bool canSurvive(Level* level, int x, int y, int z);
virtual std::optional<AABB> getAABB(Level* level, int x, int y, int z);
virtual bool blocksLight();
virtual bool isSolidRender(bool isServerLevel = false);
virtual bool isCubeShaped();
virtual int getRenderShape();
};