Add some stuff, that does things
This commit is contained in:
parent
0ac86ff303
commit
1f59226e01
12 changed files with 102 additions and 13 deletions
src/main/java/techreborn/init
|
@ -90,9 +90,11 @@ public class ModBlocks {
|
|||
public static Block storage;
|
||||
public static Block storage2;
|
||||
public static Block machineframe;
|
||||
|
||||
public static Block rubberLog;
|
||||
public static Block rubberLeaves;
|
||||
public static Block rubberSapling;
|
||||
public static Block rubberPlanks;
|
||||
|
||||
public static void init() {
|
||||
thermalGenerator = new BlockThermalGenerator();
|
||||
|
@ -286,10 +288,16 @@ public class ModBlocks {
|
|||
|
||||
rubberLog = new BlockRubberLog();
|
||||
GameRegistry.registerBlock(rubberLog, "rubberLog");
|
||||
|
||||
rubberPlanks = new BlockRubberPlank();
|
||||
GameRegistry.registerBlock(rubberPlanks, "rubberPlanks");
|
||||
|
||||
rubberLeaves = new BlockRubberLeaves();
|
||||
GameRegistry.registerBlock(rubberLeaves, "rubberLeaves");
|
||||
|
||||
rubberSapling = new BlockRubberSapling();
|
||||
GameRegistry.registerBlock(rubberSapling, "rubberSapling");
|
||||
GameRegistry.registerBlock(rubberSapling, ItemBlockRubberSapling.class, "rubberSapling");
|
||||
|
||||
|
||||
registerOreDict();
|
||||
Core.logHelper.info("TechReborns Blocks Loaded");
|
||||
|
|
|
@ -23,7 +23,9 @@ public class RecipeCompact implements IRecipeCompact {
|
|||
|
||||
ArrayList<String> missingItems = new ArrayList<>();
|
||||
|
||||
public RecipeCompact() {
|
||||
boolean inited = false;
|
||||
|
||||
public void init(){
|
||||
recipes.put("industrialDiamond", new ItemStack(Items.diamond));
|
||||
recipes.put("industrialTnt", new ItemStack(Blocks.tnt));
|
||||
recipes.put("copperIngot", ItemIngots.getIngotByName("copper"));
|
||||
|
@ -44,10 +46,15 @@ public class RecipeCompact implements IRecipeCompact {
|
|||
recipes.put("reBattery", new ItemStack(ModItems.reBattery));
|
||||
recipes.put("machine", BlockMachineFrame.getFrameByName("machine", 1));
|
||||
recipes.put("advancedMachine", BlockMachineFrame.getFrameByName("advancedMachine", 1));
|
||||
inited = false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ItemStack getItem(String name) {
|
||||
if(!inited){
|
||||
init();
|
||||
}
|
||||
if(!recipes.containsKey(name)){
|
||||
if(!missingItems.contains(name)){
|
||||
missingItems.add(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue