Posted April 10, 201411 yr Using: Forge 10.12.0.1024 on a Windows 7 64 bit Java with JDK 7_51 Okay, inside of my custom Block class, I have this code: @Override public void registerBlockIcons(IIconRegister iconRegister) { System.out.println("TRIGGER1"); super.registerBlockIcons(iconRegister); } @Override public IIcon getIcon(int side, int meta) { System.out.println("TRIGGER2"); return super.getIcon(side, meta); } Whenever I go inside my testing world, the texture doesn't show, and only TRIGGER2 appears in the console, never TRIGGER1. I've actually gotten this to work earlier, but I accidentally deleted the code. What am I doing wrong? if (user.hasKnowledgeOfJava) { if (user.question.hasCode) { return interpetHelpfulResponse(user.getQuestion()); } else { return "Could you post your code please?"; } } else { return "Learn some freaking Java!"; }
April 10, 201411 yr Using: Forge 10.12.0.1024 on a Windows 7 64 bit Java with JDK 7_51 Okay, inside of my custom Block class, I have this code: @Override public void registerBlockIcons(IIconRegister iconRegister) { System.out.println("TRIGGER1"); super.registerBlockIcons(iconRegister); } @Override public IIcon getIcon(int side, int meta) { System.out.println("TRIGGER2"); return super.getIcon(side, meta); } Whenever I go inside my testing world, the texture doesn't show, and only TRIGGER2 appears in the console, never TRIGGER1. I've actually gotten this to work earlier, but I accidentally deleted the code. What am I doing wrong? where do you register your block? It sounds like you do it on Init (FMLInitializationEvent) and if you do, move that registration stuff into the PreInit (FMLPreInitializationEvent) Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
April 10, 201411 yr Author Thanks! I was taking MachineMuse's advice from here: https://github.com/MachineMuse/MachineMusePowersuits/blob/master/src/minecraft/net/machinemuse/powersuits/common/ModularPowersuits.java though it is for 1.6.4. if (user.hasKnowledgeOfJava) { if (user.question.hasCode) { return interpetHelpfulResponse(user.getQuestion()); } else { return "Could you post your code please?"; } } else { return "Learn some freaking Java!"; }
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.