Jump to content

[1.7.2]NetworkRegistry


Z@Nka

Recommended Posts

public Electrocuted() //<-- this is your constructor for you main mod
{
 //Registry
 GameRegistry.registerItem(BonePlate, "BonePlate");
 GameRegistry.registerItem(BoneIngot, "BoneIngot");
 GameRegistry.registerItem(CoalMotor, "CoalMotor");
 GameRegistry.registerItem(ElectricMotor, "ElectricMotor");
 GameRegistry.registerItem(Generator, "Generator");

 GameRegistry.registerBlock(CompressionFurnaceIdle, "CompressionFurnaceIdle");
 GameRegistry.registerBlock(CompressionFurnaceActive, "CompressionFurnaceActive");

 GameRegistry.registerItem(BoneSword, "BoneSword");
 GameRegistry.registerItem(BoneSpade, "BoneSpade");
 GameRegistry.registerItem(BonePickaxe, "BonePickaxe");
 GameRegistry.registerItem(BoneAxe, "BoneAxe");
 GameRegistry.registerItem(BoneHoe, "BoneHoe");

 GameRegistry.registerItem(BoneHelmet, "BoneHelmet");
 GameRegistry.registerItem(BoneChestPlate, "BoneChestPlate");
 GameRegistry.registerItem(BoneLeggings, "BoneLeggings");
 GameRegistry.registerItem(BoneBoots, "BoneBoots");
 LanguageRegistry.instance().addStringLocalization("container.CompressionFurnace", "Compression Furnace");
 GuiHandler GuiHandler = new GuiHandler();

//Recipe
 	//Items
 GameRegistry.addRecipe(new ItemStack(BonePlate, 2), new Object []
 {
		"XX ", "XX ", 'X', Items.bone
 });
 GameRegistry.addRecipe(new ItemStack(BoneIngot, 3), new Object []
 {
	"XXX", "XYX", "XXX", 'X', Items.bone, 'Y', Items.iron_ingot
 });

 	//Tools
 GameRegistry.addRecipe(new ItemStack(BoneSword, 1), new Object []
 {
	 " X ", " X ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneSpade, 1), new Object []
 {
	 " X ", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BonePickaxe, 1), new Object []
 {
	 "XXX", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneAxe, 1), new Object []
 {
	 "XX ", "XY ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneHoe, 1), new Object []
 {
	 " XX", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });


 	//Armor
 GameRegistry.addRecipe(new ItemStack(BoneHelmet, 1), new Object []
 {
	 "XXX", "X X", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneChestPlate, 1), new Object []
 {
	 "X X", "XXX", "XXX", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneLeggings, 1), new Object []
 {
	 "XXX", "X X", "X X", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneBoots, 1), new Object []
 {
	 "X X", "X X", 'X', BonePlate
 });

}

 

See your problem?

Link to comment
Share on other sites

i think he quitted. hopefully

*********************************

**  Always remember you are unique,  **

**  just like everyone else                   **     

**********************************

Was my post helpful? Say thanks and

press the thank you button, on my post!!

God, damn it!

Link to comment
Share on other sites

Dude if you know java you must know the Difference between this

 

public class(){} <------------------- constructor

 

public void class(){} <---- what i know it is a method :)

 

public interface class(){} <---------------- ahh for API's

 

Its the first tutorial my teacher

 

you're problem is you that you must make yours in constructor since yours is a method

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.