blob: d8719c0faf23f76f7c2183b84b842429ae1cb6ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*
* Roughly Enough Items by Danielshe.
* Licensed under the MIT License.
*/
package me.shedaniel.rei.plugin;
import me.shedaniel.rei.RoughlyEnoughItemsCore;
import me.shedaniel.rei.api.RecipeHelper;
import me.shedaniel.rei.api.plugins.REIPluginV0;
import me.shedaniel.rei.plugin.autocrafting.*;
import net.fabricmc.loader.api.SemanticVersion;
import net.fabricmc.loader.util.version.VersionParsingException;
import net.minecraft.util.Identifier;
public class DefaultAutoCraftingPlugin implements REIPluginV0 {
public static final Identifier PLUGIN = new Identifier("roughlyenoughitems", "default_auto_crafting_plugin");
@Override
public Identifier getPluginIdentifier() {
return PLUGIN;
}
@Override
public SemanticVersion getMinimumVersion() throws VersionParsingException {
return SemanticVersion.parse("2.10");
}
@Override
public void registerOthers(RecipeHelper recipeHelper) {
if (!RoughlyEnoughItemsCore.getConfigManager().getConfig().loadDefaultPlugin) {
return;
}
recipeHelper.registerAutoCraftingHandler(new AutoCraftingTableBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoInventoryBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoFurnaceBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoSmokerBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoBlastingBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoCraftingTableHandler());
}
}
|