mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-09 03:07:04 +00:00
28 lines
798 B
C++
28 lines
798 B
C++
#pragma once
|
|
|
|
#include "Tile_SPU.h"
|
|
#include "FlowerPotTileEntity.h"
|
|
|
|
class FlowerPotTile_SPU : public EntityTile_SPU
|
|
{
|
|
public:
|
|
FlowerPotTile_SPU(int id) : EntityTile_SPU(id) {}
|
|
|
|
void updateDefaultShape()
|
|
{
|
|
float size = 6.0f / 16.0f;
|
|
float half = size / 2;
|
|
setShape(0.5f - half, 0, 0.5f - half, 0.5f + half, size, 0.5f + half);
|
|
}
|
|
bool isSolidRender(bool isServerLevel = false) { return false; }
|
|
int getRenderShape() { return SHAPE_FLOWER_POT; }
|
|
bool isCubeShaped() { return false; }
|
|
virtual void updateShape(ChunkRebuildData *level, int x, int y, int z, int forceData = -1, TileEntity* forceEntity = nullptr) override
|
|
{
|
|
updateDefaultShape();
|
|
if (forceEntity && forceEntity->GetType() == eTYPE_FLOWERPOTTILEENTITY)
|
|
{
|
|
// later
|
|
}
|
|
}
|
|
}; |