Files
MinecraftConsoles/Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/StairTile_SPU.h
Loki Rautio 087b7e7abf Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
2026-03-07 21:12:22 -06:00

30 lines
941 B
C++

#pragma once
#include "Tile_SPU.h"
class StairTile_SPU : public Tile_SPU
{
public:
static const int UPSIDEDOWN_BIT = 4;
// the direction is the way going up (for normal non-upsidedown stairs)
static const int DIR_EAST = 0;
static const int DIR_WEST = 1;
static const int DIR_SOUTH = 2;
static const int DIR_NORTH = 3;
public:
StairTile_SPU(int id) : Tile_SPU(id) {}
void updateShape(ChunkRebuildData *level, int x, int y, int z, int forceData = -1, TileEntity* forceEntity = NULL); // 4J added forceData, forceEntity param
bool isSolidRender(bool isServerLevel = false);
int getRenderShape();
void setBaseShape(ChunkRebuildData *level, int x, int y, int z);
static bool isStairs(int id);
private:
bool isLockAttached(ChunkRebuildData *level, int x, int y, int z, int data);
public:
bool setStepShape(ChunkRebuildData *level, int x, int y, int z);
bool setInnerPieceShape(ChunkRebuildData *level, int x, int y, int z);
};