the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "Tile.h"
3
4class Player;
5class Random;
6
7class RedStoneOreTile : public Tile
8{
9private:
10 bool lit;
11public:
12 RedStoneOreTile(int id, bool lit);
13 virtual int getTickDelay(Level *level);
14 virtual void attack(Level *level, int x, int y, int z, shared_ptr<Player> player);
15 virtual void stepOn(Level *level, int x, int y, int z, shared_ptr<Entity> entity);
16 virtual bool TestUse();
17 virtual bool use(Level *level, int x, int y, int z, shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly = false); // 4J added soundOnly param
18private:
19 virtual void interact(Level *level, int x, int y, int z);
20public:
21 virtual void tick(Level *level, int x, int y, int z, Random* random);
22 virtual int getResource(int data, Random *random, int playerBonusLevel);
23 virtual int getResourceCountForLootBonus(int bonusLevel, Random *random);
24 virtual int getResourceCount(Random *random);
25 virtual void spawnResources(Level *level, int x, int y, int z, int data, float odds, int playerBonusLevel);
26 virtual void animateTick(Level *level, int x, int y, int z, Random *random);
27
28 // 4J Added so we can check before we try to add a tile to the tick list if it's actually going to do seomthing
29 virtual bool shouldTileTick(Level *level, int x,int y,int z);
30private:
31 void poofParticles(Level *level, int x, int y, int z);
32protected:
33 virtual shared_ptr<ItemInstance> getSilkTouchItemInstance(int data);
34};