Jump to content

Recommended Posts

Posted

The current constructor for extends ItemFood adds 3 variables. An int, which I'm assuming to be the item id, a float, which I think is the saturation level, and a boolean, which I'm guessing is the isWolfsFavoriteFood function.

 

When I run MC, when the item is eaten, is completely fills up the hunger bar. My question is, how do I change that? Is there an additional constructor I can add? Or is something going wrong with the current constructor?

 

Thanks

 

Oh, and a side thing, is the ordinary code for Minecraft decompiled yet? It would be useful to reference to Item.java amongst other things

Yup.

Posted

Then where do I stick the item id?

code is this atm: (In the main class)

public static Item Truffle = new Truffle(3004, 0.1F, false).setUnlocalizedName("Truffle").setTextureName("TestMod:Truffle");

Yup.

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.