Files
LegacyRenouveau/Minecraft.World/GrassPathTile.h
T
Fireblade 1011c714c4 fix: grass path
fixes:
- grass path not being on the shovel's diggable list, hence the slow breaking speed whilst mining the block
- grass path AABB collisions, creating a discrepency between farmland + the grass path tile where the former could walk up more tiles than the latter
2026-07-18 19:01:12 -04:00

25 lines
772 B
C++

#pragma once
#include "Tile.h"
class GrassPathTile : public Tile
{
Icon *iconTop;
Icon *iconBottom;
public:
GrassPathTile(int id);
virtual void updateDefaultShape() override;
virtual bool isSolidRender(bool isServerLevel = false) override;
virtual bool isCubeShaped() override;
virtual AABB *getAABB(Level *level, int x, int y, int z);
virtual void neighborChanged(Level *level, int x, int y, int z, int neighborId) override;
virtual void registerIcons(IconRegister *iconRegister) override;
virtual Icon *getTexture(int face, int data) override;
virtual int getResource(int data, Random *random, int playerBonusLevel) override;
virtual int getResourceCount(Random *random) override;
private:
void checkAndConvert(Level *level, int x, int y, int z);
};