Merging
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -15,4 +15,5 @@ eula.txt
|
||||
server.properties
|
||||
crash-reports
|
||||
saves
|
||||
usernamecache.json
|
||||
usernamecache.json
|
||||
options.txt
|
||||
@@ -3,9 +3,6 @@ package nmd.primal.energy;
|
||||
import nmd.primal.energy.common.CommonProxy;
|
||||
import nmd.primal.energy.common.ModInfo;
|
||||
import nmd.primal.energy.crafting.CraftingHandler;
|
||||
import nmd.primal.energy.render.RenderID;
|
||||
import nmd.primal.energy.render.RenderRegistry;
|
||||
import nmd.primal.energy.tileents.TileRegistry;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.EventHandler;
|
||||
@@ -29,14 +26,13 @@ public class Energy {
|
||||
Energy.proxy.preInit(event);
|
||||
// some example code
|
||||
// System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName());
|
||||
TileRegistry.init();
|
||||
RenderID.init();
|
||||
RenderRegistry.init();
|
||||
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
|
||||
Energy.proxy.init(event);
|
||||
FMLCommonHandler.instance().bus().register(new CraftingHandler());
|
||||
|
||||
// some example code
|
||||
@@ -44,8 +40,9 @@ public class Energy {
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent e) {
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
|
||||
Energy.proxy.postInit(event);
|
||||
System.out.println("U want some Body Massage?");
|
||||
// RenderingRegistry.registerEntityRenderingHandler(EntityShit.class,
|
||||
// new RenderSnowball(ModItems.itemShit));
|
||||
|
||||
@@ -12,7 +12,7 @@ public static Block crankBlock;
|
||||
|
||||
public static final void init() {
|
||||
|
||||
GameRegistry.registerBlock(SMBBlock = new SMBBlock("SMBBlock", Material.iron), "SMBBlock");
|
||||
GameRegistry.registerBlock(SMBBlock = new SMBBlock("SMBBlock", Material.wood), "SMBBlock");
|
||||
GameRegistry.registerBlock(crankBlock = new CrankBlock("CrankBlock", Material.wood), "CrankBlock");
|
||||
//GameRegistry.registerBlock(mineralBlock = new MineralBlock("mineralBlock", Material.rock), "mineralBlock");
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package nmd.primal.energy.client;
|
||||
|
||||
import nmd.primal.energy.common.CommonProxy;
|
||||
import nmd.primal.energy.render.RenderRegistry;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
@@ -23,6 +24,8 @@ public class ClientProxy extends CommonProxy{
|
||||
public void postInit(FMLPostInitializationEvent event)
|
||||
{
|
||||
super.postInit(event);
|
||||
RenderRegistry.init();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import nmd.primal.energy.block.ModBlocks;
|
||||
import nmd.primal.energy.crafting.ModCrafting;
|
||||
import nmd.primal.energy.item.ModItems;
|
||||
import nmd.primal.energy.render.RenderID;
|
||||
import nmd.primal.energy.render.RenderRegistry;
|
||||
import nmd.primal.energy.tileents.TileRegistry;
|
||||
import nmd.primal.energy.util.CustomTab;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
@@ -19,6 +18,7 @@ public class CommonProxy {
|
||||
ModItems.registerItems();
|
||||
ModBlocks.init();
|
||||
ModCrafting.init();
|
||||
RenderID.init();
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class CommonProxy {
|
||||
|
||||
public void postInit(FMLPostInitializationEvent event)
|
||||
{
|
||||
RenderRegistry.init();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -17,10 +17,10 @@ public class ModCrafting {
|
||||
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(ModItems.schiselItem), new Object[]{
|
||||
" f",
|
||||
" t ",
|
||||
"s ",
|
||||
'f', Items.flint, 't', Items.string, 's', Items.stick});
|
||||
" f",
|
||||
" t ",
|
||||
"s ",
|
||||
'f', Items.flint, 't', Items.string, 's', Items.stick});
|
||||
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(ModItems.sgearItem), new Object[]{
|
||||
@@ -35,5 +35,12 @@ public class ModCrafting {
|
||||
"sss",
|
||||
's', Blocks.wooden_slab});
|
||||
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(ModBlocks.crankBlock), new Object[]{
|
||||
" fs",
|
||||
" s ",
|
||||
" s ",
|
||||
'f', Items.string, 's', Items.stick});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,5 @@ item.swheelItem.name=Standard Wheel
|
||||
item.sgearItem.name=Standard Gear
|
||||
item.saxleItem.name=Standard Axle
|
||||
|
||||
tile.SMBBlock.name=Standard Machine Box
|
||||
tile.SMBBlock.name=Standard Machine Box
|
||||
tile.CrankBlock.name=Crank
|
||||
Reference in New Issue
Block a user