10 lines
301 B
JavaScript
10 lines
301 B
JavaScript
|
function loader (registryOrVersion) {
|
||
|
const registry = typeof registryOrVersion === 'string' ? require('prismarine-registry')(registryOrVersion) : registryOrVersion
|
||
|
return {
|
||
|
Recipe: require('./lib/recipe')(registry),
|
||
|
RecipeItem: require('./lib/recipe_item')
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = loader
|