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

56 lines
1.2 KiB
C++

#pragma once
#include <optional>
#include "Tile.h"
#include "console_helpers/Definitions.h"
class Random;
class Level;
class ReedTile : public Tile {
friend class Tile;
protected:
ReedTile(int id);
public:
virtual void updateDefaultShape(); // 4J Added override
void tick(Level* level, int x, int y, int z, Random* random);
public:
bool mayPlace(Level* level, int x, int y, int z);
public:
void neighborChanged(Level* level, int x, int y, int z, int type);
protected:
const void checkAlive(Level* level, int x, int y, int z);
public:
bool canSurvive(Level* level, int x, int y, int z);
public:
std::optional<AABB> getAABB(Level* level, int x, int y, int z);
public:
int getResource(int data, Random* random, int playerBonusLevel);
public:
bool blocksLight();
public:
bool isSolidRender(bool isServerLevel = false);
public:
bool isCubeShaped();
public:
int getRenderShape();
virtual int cloneTileId(Level* level, int x, int y, int z);
// 4J Added so we can check before we try to add a tile to the tick list if
// it's actually going to do seomthing
virtual bool shouldTileTick(Level* level, int x, int y, int z);
};