aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/StairTile_SPU.h
blob: ca5ba279f811184acca2f44346cf862a44380a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#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 = nullptr);	// 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);
};