shane020482 Posted December 27, 2016 Posted December 27, 2016 I have created a block with different meta data using enums and Im having trouble with it always placing the default block and I cant find the cause here's what I have http://pastebin.com/GEiRdhBX Any help would be appreciate thanks Quote
shane020482 Posted December 28, 2016 Author Posted December 28, 2016 please don't think me an idiot but Iv been following a tutorial and have no idea how to use ItemMultiTexture Quote
shane020482 Posted December 28, 2016 Author Posted December 28, 2016 NM i found the prob in the itemblock class i had public int getMeta(int damage) { return damage; } not public int getMetadata(int damage) { return damage; } Quote
shane020482 Posted December 28, 2016 Author Posted December 28, 2016 Yep 3 days of beating my head against a wall for one small mistake Quote
Draco18s Posted December 28, 2016 Posted December 28, 2016 This is why we use @Override Quote 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.
jeffryfisher Posted December 28, 2016 Posted December 28, 2016 please don't think me an idiot but Iv been following a tutorial and have no idea how to use ItemMultiTexture If it's the class I used, then ItemMultiTexture would already be an extension of ItemBlock. So, you can either declare your item block to be a new ItemMultiTexture or you may first extend ItemMultiTexture and then declare a new one of those. Quote The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
Recommended Posts
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.