Jump to content

ItemFood Picture override help


Dajel_Deker

Recommended Posts

Hi

 

Im Trying to make a food mod thats gonna add "you guessed it" food. Im using the Implements itextureprovider thing

but i can't put it in the ItemFood. So how do i do? Do i need a new file thats extends ItemFood? In that case how? Im a new modder

with almost non experience so i have no idea what to do. If anyone could help me it would mean SO MUCH.

 

If you know how to fix my problem so please tell me. Even if my mod is little i would leave much credit for you in my mod post.

 

Thanks for reading.

Have a nice day Dajel_Deker  :)

 

(Sorry if i spelled anything wrong i am Swedish  :))

 

EDIT: I mean i cant put it in there because that would make my mod incompatible with any mod adding food (and using forge). So i need a way to add my itextureprovider but at    the same time not edit the ItemFood.

 

Link to comment
Share on other sites

I'm not sure why you said you can't implement that interface into the ItemFood class (since the ItemFood class extends the Item class). Tell me in more detail how it doesn't allow you to implement this interface.

 

I mean i cant put it in there because that would make my mod incompatible with any mod adding food (and using forge). So i need a way to add my itextureprovider but at the same time not edit the ItemFood.

Link to comment
Share on other sites

I just have my own ItemFoodITexture class that just subclasses ItemFood but implements the ITextureProvider interface.

 

i am sorry if i am i irritates you but.. how do i do a subbclass that work. I have tried manny times but i always get errors.

Link to comment
Share on other sites

I just have my own ItemFoodITexture class that just subclasses ItemFood but implements the ITextureProvider interface.

 

i am sorry if i am i irritates you but.. how do i do a subbclass that work. I have tried manny times but i always get errors.

Oh not irritating at all, I just described what you need to do is all.  :)

 

If you do not know how to subclass though then might I recommend you learning Java first?  Google knows of *quite* a few tutorials.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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