Hey,
At the moment, I'm porting my mod from ModLoader to Forge.
The only step i missed is porting the textures for crops.
In ModLoader it looks like this:
public int getBlockTextureFromSideAndMetadata(int i, int j)
{
if(j == 0)
{
return blockIndexInTexture;
}
if(j == 1)
{
return mod_Namehere.growNamehere1;
}
if(j == 2)
{
return mod_Namehere.growNamehere2;
}
if(j == 3)
{
return mod_Namehere.growNamehere3;
}
if(j == 4)
{
return mod_Namehere.growNamehere4;
}
if(j == 5)
{
return mod_Namehere.growNamehere5;
}
if(j == 6)
{
return mod_Namehere.growNamehere6;
}
if(j == 7)
{
return mod_Namehere.growNamehere7;
}
if(j ==
{
return mod_Namehere.growNamehere8;
}
return j;
}
But how i have to do that in Forge?