aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/IceTile_SPU.h
blob: 4d5f9e3c61a52181428c7aed983392f76c437cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include "HalfTransparentTile_SPU.h"

class Random;

class IceTile_SPU : public HalfTransparentTile_SPU
{
public:
	IceTile_SPU(int id) : HalfTransparentTile_SPU(id) {}
	virtual int getRenderLayer() { return 1; }
	virtual bool shouldRenderFace(ChunkRebuildData *level, int x, int y, int z, int face) 
	{ 	
		int id = level->getTile(x, y, z);
		if (!ms_pTileData->iceTile_allowSame && id == this->id) return false;
		return Tile_SPU::shouldRenderFace(level, x, y, z, 1 - face);
	}
};