Posted September 15, 20178 yr Hey there o/ I finally got a Block Model to work in Minecraft (yay). But now it looks kinda weird. Here a screenshot: Spoiler The lightning looks quite a bit off. Has someone experienced it/knows a fix? -Dj
September 15, 20178 yr Post your block class. 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.
September 15, 20178 yr Author Block class: https://pastebin.com/8skfgwX1 and the Parent class for my Blocks: https://pastebin.com/nBgKEejZ sry for the delay just had breakfast ^^" -Dj
September 15, 20178 yr You probably want to put all this on your blocks class: @Override @SuppressWarnings("deprecation") public EnumBlockRenderType getRenderType(IBlockState state) { return EnumBlockRenderType.MODEL; } @Override @SuppressWarnings("deprecation") public boolean isOpaqueCube(IBlockState state) { return false; } @Override @SuppressWarnings("deprecation") public boolean isFullCube(IBlockState state) { return false; } Edited September 15, 20178 yr by Busti a typo PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
September 15, 20178 yr Author Nice, that works! Thank you very much! Do you happen to know the not deprecated methods? I have a feeling it'll bork the hell out when I update to a new Forge version in the future. -Dj Edited September 15, 20178 yr by MrDj200
September 15, 20178 yr Please do not use@SuppressWarnings("deprecation") 1 hour ago, MrDj200 said: Do you happen to know the not deprecated methods? I have a feeling it'll bork the hell out when I update to a new Forge version in the future. Deprecated means "do not call" not "do not override." It is safe to override these methods, however if you want to know whether or not a given block has these features, you should call IBlockState.<whatever> instead. 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.
September 15, 20178 yr Author 1 minute ago, Draco18s said: Deprecated means "do not call" Yeah, I know ^^. I was told that the probability that Deprecated methods will be removed in the near Future is high, thats why I wanted to know the new variants ^^ -Dj
September 15, 20178 yr Just now, MrDj200 said: Yeah, I know ^^. I was told that the probability that Deprecated methods will be removed in the near Future is high, thats why I wanted to know the new variants ^^ There aren't "new variants" 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.
September 15, 20178 yr Author So "deprecated" does not mean "it'll be removed soon, please use a new method instead" ?
September 15, 20178 yr Usually it means "will be removed soon" but Mojang has marked it as deprecated because everything should call the same methods in IBlockState instead (this is the "moved" part of things: the method calls need to point to the new thing). Whether or not they will be removed from the Block class entirely is unclear (and if they are, how would the behaviors be handled?). 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.
September 15, 20178 yr 12 hours ago, Draco18s said: Post your block class. Its your 10.000th post, congrats! I should have removed the @SuppressWarnings("deprecation") annotation. I use it for convenience, but it might confuse other people. I'll leave it in the post though, so that this conversation still makes sense. PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
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.