iSyriux Posted August 29, 2020 Author Share Posted August 29, 2020 Done. Quote Link to comment Share on other sites More sharing options...
iSyriux Posted August 29, 2020 Author Share Posted August 29, 2020 https://github.com/iSyriux2/BLBLBLLBLB Quote Link to comment Share on other sites More sharing options...
Danebi Posted August 29, 2020 Share Posted August 29, 2020 (edited) Christ, almost all this code is useless... Edited August 29, 2020 by Danebi Quote Link to comment Share on other sites More sharing options...
Draco18s Posted August 30, 2020 Share Posted August 30, 2020 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. 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. Link to comment Share on other sites More sharing options...
iSyriux Posted September 5, 2020 Author Share Posted September 5, 2020 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? Quote Link to comment Share on other sites More sharing options...
Draco18s Posted September 5, 2020 Share Posted September 5, 2020 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. 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. Link to comment Share on other sites More sharing options...
iSyriux Posted September 5, 2020 Author Share Posted September 5, 2020 Well, I can't just do return; Quote Link to comment Share on other sites More sharing options...
Draco18s Posted September 5, 2020 Share Posted September 5, 2020 Obviously. The method expects something to be returned. It even tells you what it expects. And you're not giving it that thing. 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. Link to comment Share on other sites More sharing options...
iSyriux Posted September 5, 2020 Author Share Posted September 5, 2020 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. Quote Link to comment Share on other sites More sharing options...
Danebi Posted September 5, 2020 Share Posted September 5, 2020 Do you know java? You have to return your armor model. Quote Link to comment Share on other sites More sharing options...
Draco18s Posted September 5, 2020 Share Posted September 5, 2020 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. 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. Link to comment Share on other sites More sharing options...
iSyriux Posted September 6, 2020 Author Share Posted September 6, 2020 (edited) 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, 2020 by iSyriux Quote Link to comment Share on other sites More sharing options...
Draco18s Posted September 6, 2020 Share Posted September 6, 2020 Well...of course not, the default chestplate model doesn't have the layer you want to add. 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. Link to comment Share on other sites More sharing options...
iSyriux Posted September 12, 2020 Author Share Posted September 12, 2020 So how do you add the layer? Quote Link to comment Share on other sites More sharing options...
Danebi Posted September 12, 2020 Share Posted September 12, 2020 (edited) 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, 2020 by Danebi Quote Link to comment Share on other sites More sharing options...
iSyriux Posted September 13, 2020 Author Share Posted September 13, 2020 If I return my armour model it gives an error, so the only thing I can return is _default Quote Link to comment Share on other sites More sharing options...
Draco18s Posted September 13, 2020 Share Posted September 13, 2020 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. 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. Link to comment Share on other sites More sharing options...
Danebi Posted September 13, 2020 Share Posted September 13, 2020 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. Quote Link to comment Share on other sites More sharing options...
iSyriux Posted September 16, 2020 Author Share Posted September 16, 2020 @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. Quote Link to comment Share on other sites More sharing options...
Danebi Posted September 16, 2020 Share Posted September 16, 2020 2 minutes ago, iSyriux said: I am quite new to minecraft modding. This is basic Java. Quote Link to comment Share on other sites More sharing options...
iSyriux Posted September 16, 2020 Author Share Posted September 16, 2020 Actually basic coding. I didn't realise Method was another name for function Quote Link to comment Share on other sites More sharing options...
iSyriux Posted September 16, 2020 Author Share Posted September 16, 2020 I don't have anything after the return of the armour model Quote Link to comment Share on other sites More sharing options...
Danebi Posted September 16, 2020 Share Posted September 16, 2020 You are returning the default model. You should return a class that extends BipedModel. Quote Link to comment Share on other sites More sharing options...
Draco18s Posted September 16, 2020 Share Posted September 16, 2020 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> 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. Link to comment Share on other sites More sharing options...
iSyriux Posted September 16, 2020 Author Share Posted September 16, 2020 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 Quote Link to comment Share on other sites More sharing options...
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.