forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
15
src/world/level/tile/LightGemTile.cpp
Executable file
15
src/world/level/tile/LightGemTile.cpp
Executable file
@@ -0,0 +1,15 @@
|
||||
#include "LightGemTile.h"
|
||||
#include "../../../util/Random.h"
|
||||
#include "../../item/Item.h"
|
||||
LightGemTile::LightGemTile( int id, int tex, const Material* material )
|
||||
: super(id, tex, material)
|
||||
{ }
|
||||
|
||||
int LightGemTile::getResourceCount( Random* random ) {
|
||||
return 2 + random->nextInt(3);
|
||||
}
|
||||
|
||||
int LightGemTile::getResource( int data, Random* random ) {
|
||||
return Item::yellowDust->id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user