4jcraft/targets/minecraft/world/level/tile/WaterLilyTile.h
Tropical dd93cfe91e
Some checks are pending
Build (Linux, x86-64) / build-linux (push) Waiting to run
Format Check / clang-format (push) Waiting to run
format everything
2026-04-01 13:48:29 -05:00

30 lines
983 B
C++

#pragma once
#include "PlantTile.h"
class Level;
class Random;
class WaterlilyTile : public Bush {
private:
// static const int col = 0x208030;
public:
WaterlilyTile(int id);
virtual void updateDefaultShape(); // 4J Added override
virtual int getRenderShape();
virtual void addAABBs(Level* level, int x, int y, int z, AABB* box,
std::vector<AABB>* boxes,
std::shared_ptr<Entity> source);
virtual std::optional<AABB> getAABB(Level* level, int x, int y, int z);
virtual int getColor() const;
virtual int getColor(int auxData);
virtual int getColor(LevelSource* level, int x, int y, int z);
virtual int getColor(LevelSource* level, int x, int y, int z,
int data); // 4J added
protected:
virtual bool mayPlaceOn(int tile);
virtual bool canSurvive(Level* level, int x, int y, int z);
bool growTree(Level* level, int x, int y, int z, Random* random);
};