Finish porting all recipes to json, cleanup a lot of old code

This commit is contained in:
modmuss50 2019-08-12 15:37:45 +01:00
parent 2a5708b328
commit 9db1978410
17 changed files with 76 additions and 1132 deletions

View file

@ -41,8 +41,7 @@ import techreborn.blockentity.fusionReactor.FusionControlComputerBlockEntity;
import techreborn.client.GuiHandler;
import techreborn.events.ModRegistry;
import techreborn.init.*;
import techreborn.init.recipes.FluidGeneratorRecipes;
import techreborn.init.recipes.FusionReactorRecipes;
import techreborn.init.FluidGeneratorRecipes;
import techreborn.packets.ClientboundPackets;
import techreborn.packets.ServerboundPackets;
import techreborn.utils.BehaviorDispenseScrapbox;
@ -76,7 +75,6 @@ public class TechReborn implements ModInitializer {
WorldGenerator.initBiomeFeatures();
GuiHandler.register();
FluidGeneratorRecipes.init();
FusionReactorRecipes.init();
//Force loads the block entities at the right time
TRBlockEntities.THERMAL_GEN.toString();
@ -88,15 +86,6 @@ public class TechReborn implements ModInitializer {
Torus.genSizeMap(FusionControlComputerBlockEntity.maxCoilSize);
CommandRegistry.INSTANCE.register(false, dispatcher -> dispatcher.register(CommandManager.literal("recipe").executes(context -> {
try {
RecipeTemplate.generateFromInv(context.getSource().getPlayer());
} catch (Exception e){
e.printStackTrace();
}
return 0;
})));
LOGGER.info("TechReborn setup done!");
}