forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
26
src/world/level/tile/ClayTile.h
Executable file
26
src/world/level/tile/ClayTile.h
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef NET_MINECRAFT_WORLD_LEVEL_TILE__ClayTile_H__
|
||||
#define NET_MINECRAFT_WORLD_LEVEL_TILE__ClayTile_H__
|
||||
|
||||
//package net.minecraft.world.level.tile;
|
||||
|
||||
#include "../../../util/Random.h"
|
||||
#include "../material/Material.h"
|
||||
|
||||
#include "Tile.h"
|
||||
|
||||
class ClayTile: public Tile {
|
||||
public:
|
||||
ClayTile(int id, int tex)
|
||||
: Tile(id, tex, Material::clay)
|
||||
{}
|
||||
|
||||
int getResource(int data, Random* random) {
|
||||
return Item::clay->id;
|
||||
}
|
||||
|
||||
int getResourceCount(Random* random) {
|
||||
return 4;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_LEVEL_TILE__ClayTile_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue