August 30, 20205 yr On top of that, this line: https://github.com/iSyriux2/BLBLBLLBLB/blob/master/src/main/java/com/isyriux/divinerod/DivineRodMod.java#L43 Does the same thing as all of these put together: https://github.com/iSyriux2/BLBLBLLBLB/blob/master/src/main/java/com/isyriux/divinerod/DivineRodMod.java#L33-L40 Pick an event registration method and stick with it. You even went with a different, third option, here: https://github.com/iSyriux2/BLBLBLLBLB/blob/master/src/main/java/com/isyriux/divinerod/DivineRodMod.java#L80 And another, fourth option, here: https://github.com/iSyriux2/BLBLBLLBLB/blob/master/src/main/java/com/isyriux/divinerod/util/registhandler.java#L23 And then here: https://github.com/iSyriux2/BLBLBLLBLB/blob/master/src/main/java/com/isyriux/divinerod/armour/PowerReenforcedArmourItem.java#L18 Don't return null. 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 5, 20205 yr Author What does having different lines of code doing the same thing have to do with the armour not rendering correctly? Also, what do I return instead of null?
September 5, 20205 yr 42 minutes ago, iSyriux said: Also, what do I return instead of null? ...something that isn't null!? 42 minutes ago, iSyriux said: What does having different lines of code doing the same thing have to do with the armour not rendering correctly? Nothing, its just completely useless redundant code that makes it clear that you have no idea what the fuck you're doing. 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 5, 20205 yr Obviously. The method expects something to be returned. It even tells you what it expects. And you're not giving it that thing. 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 5, 20205 yr Author Alright, I just made a read on a java manual And it shows a code example of it returning the thing in the arrow brackets, however it seems to be showing an error.
September 5, 20205 yr That's not how generics work. This works: public List<Article> { return articles; } because of this (not shown): private List<Article> articles = new List<Article>(); Not because this: public List<FooBar> { return foobar; //return "foobar" because FooBar is inside <>! } The "thing inside the angle brackets" is a generic. List<T> is a list of things that are Type T. What is T? Whatever you want it to be. <A extends ModelBiped> is a Type A (and extends ModelBiped). You need to return some object that is of Type A. 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 6, 20205 yr Author Ah, I see. I've returned _default and it doesn't give an error anymore. However, the model is still not rendering correctly. Edited September 6, 20205 yr by iSyriux
September 6, 20205 yr Well...of course not, the default chestplate model doesn't have the layer you want to add. 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 12, 20205 yr 1 hour ago, iSyriux said: So how do you add the layer? On 9/6/2020 at 12:39 AM, Danebi said: You have to return your armor model. Have you done this? Edited September 12, 20205 yr by Danebi
September 13, 20205 yr Author If I return my armour model it gives an error, so the only thing I can return is _default
September 13, 20205 yr On 9/5/2020 at 5:41 PM, Draco18s said: <A extends ModelBiped> is a Type A (and extends ModelBiped). You need to return some object that is of Type A. 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 13, 20205 yr 18 minutes ago, iSyriux said: If I return my armour model it gives an error, so the only thing I can return is _default Show the method after you return your armor model and the class of the model.
September 16, 20205 yr Author @Draco18sCan you reiterate? I don't know what is type A. I Apologise if my questions seem redundant or moronic, I am quite new to minecraft modding. @Danebi I have all my code in the github link above.
September 16, 20205 yr 2 minutes ago, iSyriux said: I am quite new to minecraft modding. This is basic Java.
September 16, 20205 yr Author Actually basic coding. I didn't realise Method was another name for function
September 16, 20205 yr You are returning the default model. You should return a class that extends BipedModel.
September 16, 20205 yr 29 minutes ago, iSyriux said: I don't know what is type A. I Apologise if my questions seem redundant or moronic, I am quite new to minecraft modding. It's a generic type. The code tells you what matches it. <A extends ModelBiped> 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 16, 20205 yr Author Okay, so I traced the method back to pauldronarmouritem.java and found that BipedModel extended Living Entity, but when I return it it gives an error
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.