- BlockType &Get(Block::Type id) { return types[id]; }
- const BlockType &Get(Block::Type id) const { return types[id]; }
+ BlockType &Get(Block::Type id) noexcept { return types[id]; }
+ const BlockType &Get(Block::Type id) const noexcept { return types[id]; }
+
+ /// lookup by name
+ BlockType &Get(const std::string &name);
+ const BlockType &Get(const std::string &name) const;