Skip to content

Instantly share code, notes, and snippets.

Created February 22, 2016 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/902ba91d394afd3094ac to your computer and use it in GitHub Desktop.
Save anonymous/902ba91d394afd3094ac to your computer and use it in GitHub Desktop.
public final static SCItems
{
public static Item discSleeve;
public static void initItems()
{
discSleeve = new ItemDiscSleeve();
GameRegistry.registerItem(discSleeve, SCNames.Items.DISC_SLEEVE);
}
public static void initTextures()
{
registerTexture((SCBaseItem)discSleeve);
}
private static void registerTexture(SCBaseItem item)
{
RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
renderItem.getItemModelMesher().register(item, 0, new ModelResourceLocation(SCInfo.MOD_ID + ":" + item.getUnlocalizedName().substring(18), "inventory"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment