2020-08-13 04:10:44 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "IDMapper.h"
|
2020-11-07 01:51:08 +00:00
|
|
|
#include "RegistryMap.h"
|
2020-08-13 04:10:44 +01:00
|
|
|
#include "block/state/BlockState.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Feather
|
|
|
|
{
|
2020-11-07 01:51:08 +00:00
|
|
|
class Block;
|
|
|
|
|
2020-08-13 04:10:44 +01:00
|
|
|
class Registry
|
|
|
|
{
|
|
|
|
public:
|
2020-11-07 01:51:08 +00:00
|
|
|
// Maps block Identifier to Block
|
|
|
|
static RegistryMap<Block> BLOCKS;
|
|
|
|
|
|
|
|
// Maps numeric ID to BlockState
|
2020-08-13 04:10:44 +01:00
|
|
|
static IDMapper<BlockState> BLOCK_STATES;
|
|
|
|
|
|
|
|
static void Init();
|
|
|
|
};
|
2020-11-07 01:51:08 +00:00
|
|
|
}
|