Jump to content

[1.7.2][Solved]"javax.imageio.IIOException: Can't read input file!"


Recommended Posts

Posted

Another thing.  In your crop block class you need to @Override the getIcon() method.  Something like this (this is copied from BlockPotato.  The iIcon array should be whatever you use in your class to store the registered icons.

 

    /**
     * Gets the block's texture. Args: side, meta
     */
    @Override
@SideOnly(Side.CLIENT)
    public IIcon getIcon(int parSide, int parGrowthStage)
    {
        if (parGrowthStage < 7)
        {
            if (parGrowthStage == 6)
            {
                parGrowthStage = 5;
            }

            return iIcon[parGrowthStage >> 1];
        }
        else
        {
            return iIcon[3];
        }
    }

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Another thing.  In your crop block class you need to @Override the getIcon() method.  Something like this (this is copied from BlockPotato.  The iIcon array should be whatever you use in your class to store the registered icons.

 

    /**
     * Gets the block's texture. Args: side, meta
     */
    @Override
@SideOnly(Side.CLIENT)
    public IIcon getIcon(int parSide, int parGrowthStage)
    {
        if (parGrowthStage < 7)
        {
            if (parGrowthStage == 6)
            {
                parGrowthStage = 5;
            }

            return iIcon[parGrowthStage >> 1];
        }
        else
        {
            return iIcon[3];
        }
    }

Jabelar THANKSSS textures are working you are best.

Diesieben07 you helped me too with that tutorial minecraft its not laggy now.

ty guys!!!!

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.