aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/DefaultServerContainerPlugin.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-08-17 17:05:59 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-08-17 17:05:59 +0800
commit5c91a6654e697fdadde79508f3ef994936e4b952 (patch)
treec2d47385603b038dedcba893a7242bc4c04bb5b3 /src/main/java/me/shedaniel/rei/plugin/DefaultServerContainerPlugin.java
parentdab398882cd64f6152078f59ba768e4ffd437ba3 (diff)
downloadRoughlyEnoughItems-5c91a6654e697fdadde79508f3ef994936e4b952.tar.gz
RoughlyEnoughItems-5c91a6654e697fdadde79508f3ef994936e4b952.tar.bz2
RoughlyEnoughItems-5c91a6654e697fdadde79508f3ef994936e4b952.zip
Finishing the auto crafting API
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/DefaultServerContainerPlugin.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/DefaultServerContainerPlugin.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultServerContainerPlugin.java b/src/main/java/me/shedaniel/rei/plugin/DefaultServerContainerPlugin.java
new file mode 100644
index 000000000..d192cf39e
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/plugin/DefaultServerContainerPlugin.java
@@ -0,0 +1,17 @@
+package me.shedaniel.rei.plugin;
+
+import me.shedaniel.rei.plugin.containers.CraftingContainerInfoWrapper;
+import me.shedaniel.rei.server.ContainerInfoHandler;
+import net.minecraft.container.*;
+import net.minecraft.util.Identifier;
+
+public class DefaultServerContainerPlugin implements Runnable {
+ @Override
+ public void run() {
+ ContainerInfoHandler.registerContainerInfo(new Identifier("minecraft", "plugins/crafting"), new CraftingContainerInfoWrapper(CraftingTableContainer.class));
+ ContainerInfoHandler.registerContainerInfo(new Identifier("minecraft", "plugins/crafting"), new CraftingContainerInfoWrapper(PlayerContainer.class));
+ ContainerInfoHandler.registerContainerInfo(new Identifier("minecraft", "plugins/smelting"), new CraftingContainerInfoWrapper(FurnaceContainer.class));
+ ContainerInfoHandler.registerContainerInfo(new Identifier("minecraft", "plugins/smoking"), new CraftingContainerInfoWrapper(SmokerContainer.class));
+ ContainerInfoHandler.registerContainerInfo(new Identifier("minecraft", "plugins/blasting"), new CraftingContainerInfoWrapper(BlastFurnaceContainer.class));
+ }
+}