mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
github.dev removing files randomly lmfao
This commit is contained in:
33
source/world/tile/OreTile.cpp
Normal file
33
source/world/tile/OreTile.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/********************************************************************
|
||||
Minecraft: Pocket Edition - Decompilation Project
|
||||
Copyright (C) 2023 iProgramInCpp
|
||||
|
||||
The following code is licensed under the BSD 1 clause license.
|
||||
SPDX-License-Identifier: BSD-1-Clause
|
||||
********************************************************************/
|
||||
|
||||
#include "Tile.hpp"
|
||||
#include "Level.hpp"
|
||||
|
||||
OreTile::OreTile(int id, int texture) : Tile(id, texture, Material::stone)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int OreTile::getResource(int x, Random* random)
|
||||
{
|
||||
return m_ID;
|
||||
}
|
||||
|
||||
int OreTile::getResourceCount(Random* random)
|
||||
{
|
||||
if (m_ID == Tile::lapisOre->m_ID)
|
||||
return random->genrand_int32() % 5 + 4;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int OreTile::getSpawnResourcesAuxValue(int x)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user