Jump to content

Recommended Posts

Posted

So when updating my mod to 1.5.1 I came across issue's with the icons for my items.

 

Code of item icon:

	@SideOnly(Side.CLIENT)
public void updateIcons(IconRegister iconRegister)
{
	this.itemIcon = iconRegister.registerIcon("EasySteel:coalDust");
}

 

and this is what i get when i start minecraft:

2013-04-29 21:04:29 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/items/steelBall.png, but that file does not exist. Ignoring.
2013-04-29 21:04:30 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/items/steelIngot.png, but that file does not exist. Ignoring.
2013-04-29 21:04:30 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/items/ironDust.png, but that file does not exist. Ignoring.
2013-04-29 21:04:30 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/items/coalDust.png, but that file does not exist. Ignoring.

 

and ingame i get the texture missing icon

 

any help would be helpfull :)

Posted

The override actually has no impact on his problem.

 

He's just not putting his textures in the right place.

 

Have a look at this post:

http://www.minecraftforge.net/forum/index.php/topic,8041.msg40615.html#msg40615

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

This was for some blocks, but items will just be in /items instead of /blocks

 

Capture.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

This was for some blocks, but items will just be in /items instead of /blocks

 

Capture.png

 

i know that (made a texturepack the other day :P) still does not work :\

Posted

diesieben07 is correct, if you wanna override a function you should annotate it as overriden, this has nothing to do with runtime, but it explicity shows you if you've fucked up your method signature so that it wont actually override anything.

when i add @Override

updateIcons(IconRegister iconRegister) gets red underlined.

This clearly shows that his signature is indeed fucked up.

In this case its pretty damn obvious,t he issue is that the function is called registerIcons not updateIcons.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

diesieben07 is correct, if you wanna override a function you should annotate it as overriden, this has nothing to do with runtime, but it explicity shows you if you've fucked up your method signature so that it wont actually override anything.

when i add @Override

updateIcons(IconRegister iconRegister) gets red underlined.

This clearly shows that his signature is indeed fucked up.

In this case its pretty damn obvious,t he issue is that the function is called registerIcons not updateIcons.

 

oh thx, i did not know how to change item icons so i was searching for tut's every tut said i should use updateIcons for items and registerIcons for blocks,

its working now :)

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.