mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-22 13:44:31 +00:00
23 lines
478 B
C++
23 lines
478 B
C++
#pragma once
|
|
|
|
namespace CustomBlockRegistry
|
|
{
|
|
enum class ToolType : int
|
|
{
|
|
None = 0,
|
|
Pickaxe = 1,
|
|
Axe = 2,
|
|
Shovel = 3,
|
|
};
|
|
|
|
struct Definition
|
|
{
|
|
int requiredHarvestLevel = -1;
|
|
ToolType requiredTool = ToolType::None;
|
|
bool acceptsRedstonePower = false;
|
|
};
|
|
|
|
void Register(int blockId, int requiredHarvestLevel, int requiredTool, bool acceptsRedstonePower);
|
|
const Definition* Find(int blockId);
|
|
}
|