mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-01 14:13:35 +00:00
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "Tile.h"
|
|
|
|
class Icon;
|
|
|
|
class QuartzBlockTile : public Tile {
|
|
friend class ChunkRebuildData;
|
|
|
|
public:
|
|
static const int TYPE_DEFAULT = 0;
|
|
static const int TYPE_CHISELED = 1;
|
|
static const int TYPE_LINES_Y = 2;
|
|
static const int TYPE_LINES_X = 3;
|
|
static const int TYPE_LINES_Z = 4;
|
|
|
|
static const int QUARTZ_BLOCK_NAMES = 5;
|
|
|
|
static int BLOCK_NAMES[QUARTZ_BLOCK_NAMES];
|
|
|
|
private:
|
|
static const int QUARTZ_BLOCK_TEXTURES = 5;
|
|
|
|
static const std::string TEXTURE_TOP;
|
|
static const std::string TEXTURE_CHISELED_TOP;
|
|
static const std::string TEXTURE_LINES_TOP;
|
|
static const std::string TEXTURE_BOTTOM;
|
|
static const std::string TEXTURE_NAMES[QUARTZ_BLOCK_TEXTURES];
|
|
|
|
Icon* icons[QUARTZ_BLOCK_TEXTURES];
|
|
Icon* iconChiseledTop;
|
|
Icon* iconLinesTop;
|
|
Icon* iconTop;
|
|
Icon* iconBottom;
|
|
|
|
public:
|
|
QuartzBlockTile(int id);
|
|
|
|
Icon* getTexture(int face, int data);
|
|
int getPlacedOnFaceDataValue(Level* level, int x, int y, int z, int face,
|
|
float clickX, float clickY, float clickZ,
|
|
int itemValue);
|
|
int getSpawnResourcesAuxValue(int data);
|
|
|
|
protected:
|
|
std::shared_ptr<ItemInstance> getSilkTouchItemInstance(int data);
|
|
|
|
public:
|
|
int getRenderShape();
|
|
void registerIcons(IconRegister* iconRegister);
|
|
}; |