aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/PotatoTile_SPU.h
blob: eb2362fa360cc61bb09fb78dda23525fd0e39cc0 (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
#pragma once

#include "CropTile_SPU.h"

class PotatoTile_SPU : public CropTile_SPU
{
private:
//	Icon *icons[4];

public:
	PotatoTile_SPU(int id) : CropTile_SPU(id) {}

	Icon_SPU *getTexture(int face, int data)
	{
		if (data < 7)
		{
			if (data == 6)
			{
				data = 5;
			}
			return &ms_pTileData->potato_icons[data >> 1];
		}
		else
		{
			return &ms_pTileData->potato_icons[3];
		}
	}
};