blob: 8bcbe5083a34f52949c82c3faf72834cd3c10197 (
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
44
45
46
|
/*
* 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.AutoBlastingBookHandler;
import me.shedaniel.rei.plugin.autocrafting.AutoCraftingHandler;
import me.shedaniel.rei.plugin.autocrafting.AutoFurnaceBookHandler;
import me.shedaniel.rei.plugin.autocrafting.AutoSmokerBookHandler;
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().isLoadingDefaultPlugin()) {
return;
}
// recipeHelper.registerAutoCraftingHandler(new AutoCraftingTableBookHandler());
// recipeHelper.registerAutoCraftingHandler(new AutoInventoryBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoFurnaceBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoSmokerBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoBlastingBookHandler());
recipeHelper.registerAutoCraftingHandler(new AutoCraftingHandler());
}
}
|