4jcraft/targets/minecraft/world/level/tile/MushroomPlantTile.h
2026-04-01 13:27:58 -05:00

25 lines
556 B
C++

#pragma once
#include "PlantTile.h"
class Random;
class Level;
class Mushroom : public Bush {
friend class Tile;
protected:
Mushroom(int id);
public:
virtual void updateDefaultShape(); // 4J Added override
virtual void tick(Level* level, int x, int y, int z, Random* random);
virtual bool mayPlace(Level* level, int x, int y, int z);
protected:
virtual bool mayPlaceOn(int tile);
public:
virtual bool canSurvive(Level* level, int x, int y, int z);
bool growTree(Level* level, int x, int y, int z, Random* random);
};