Jump to content

Recommended Posts

Posted
15 minutes ago, V0idWa1k3r said:

Minecraft.class has a ItemRenderer instance that you can obtain via a getter that is called getItemRenderer

That's a clear answer thank you. and I know how my IDE works but i can't search for something if I don't know what I have to search.

16 minutes ago, V0idWa1k3r said:

An example of what do you need?

Of what lines I need to write in the doRender method of my RenderThrowablePokeball class.

Posted
8 minutes ago, Thegametutor101 said:

but i can't search for something if I don't know what I have to search.

Well, in this case you need to search for ItemRenderer, right? You can use your IDE's "find references" feature to see everything that references ItemRenderer. I don't know about eclipse but IDEA will sort the references by their type - whether it's just an import, a type parameter, etc. In IDEA I would just expad the "method return type" section to see which methods return this to me. That takes maybe 15 seconds or so on average accounting for the search type.

Alternatively since I told you that it is provided by Minecraft you could just go into the Minecraft.class and perform a simple search(Ctrl+F) for ItemRenderer.

 

11 minutes ago, Thegametutor101 said:

Of what lines I need to write in the doRender method of my RenderThrowablePokeball class.

Do the same RenderEntityItem does as I've told you previously but don't create the ItemRenderer, instead use the one Minecraft provides.

Posted
29 minutes ago, V0idWa1k3r said:

Do the same RenderEntityItem does as I've told you previously but don't create the ItemRenderer, instead use the one Minecraft provides.

can you please just write the code that I am supposed to put?

 

I found the getItemRenderer method in the Minecraft class but can't get it via a Minecraft.getItemRenderer() call.

I can't manage to "do the same RenderEntityItem does".

Posted
5 minutes ago, Thegametutor101 said:

can you please just write the code that I am supposed to put?

 

No. I will not give you code to copy-paste, that's the worst solution possible because you'll just come back to these forums an hour later with a similar problem.

 

6 minutes ago, Thegametutor101 said:

but can't get it via a Minecraft.getItemRenderer() call.

Well, the method isn't static thus you can't do that, obviously. But that's basic java. You do know basic java, right? If you don't then you need to learn it before making minecraft mods.

Posted
5 minutes ago, V0idWa1k3r said:

No. I will not give you code to copy-paste

Then if you want to help me give me a better explanation other than just sayng the same thing i already said I didn't understand.

 

7 minutes ago, V0idWa1k3r said:

Well, the method isn't static thus you can't do that, obviously.

Yes I realised that and thus I don't know what you are trying to say. Need a better explanation than "do the same as".

7 minutes ago, V0idWa1k3r said:

But that's basic java. You do know basic java, right?

Remember what I said about being arrogant? I'm trying to be patient and polite so please give me the same treatment.

Posted

Again, I am notbeing arrogant, you are making a mistake that a person with enough java knowledge would never make.

Case and point - if you don't know java - stop. This is not me being arrogant, you simply won't be able to proceed further without knowing the language. You could bash your head against the wall but it will just cause you great frustration. Just learn java if you don't know it enough, don't try building a rocket without the basic understanding of physics and engineering.

 

9 minutes ago, Thegametutor101 said:

Then if you want to help me give me a better explanation other than just sayng the same thing i already said I didn't understand.

 

If you want a better explanation then you need to formulate what you don't understand better. Simply saying "I don't understand what you are saying" isn't helpful and I can't help you with that. Give me a concrete issue you are having that isn't a basic java issue and I will help you with an explanation if nececcarry.

 

10 minutes ago, Thegametutor101 said:

Yes I realised that and thus I don't know what you are trying to say.

If the method isn't static then you need an instance to invoke it, this is basic java. Again, you can use your IDE to figure out how to obtain the instance of Minecraft you need.

 

11 minutes ago, Thegametutor101 said:

Need a better explanation than "do the same as".

Well, what do you want me to do? Copy the entire method and go through it line-by-line explaining what each and every line does? You can understand it yourself with enough time and logic, you don't need a stranger on the internet to hold your hand here.

 

Again, give me a concrete problem that you can't solve yourselves and I will try my best to explain it to you.

Posted

Don’t ever use GL11, use GLStateManager instead 

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • 9 months later...
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi, I've been having trouble trying to use forge as it shows a black screen when I open the game, but I can still interact with it and hear the music.  I've done all of the step by steps and most common fixes like updating drivers, keeping up to date with Java, deleting and reinstalling minecraft, restarting my computer MANY times, even smaller things like splash.properties (I didn't have that file so I added it and set it to false thinking it would do something, definitely not) and making sure to prioritize my rtx 3070 in the settings but with no luck. Minecraft works as intended when I uninstall forge and I also don't have any mods currently, it just gives me this issue when I install forge. I also increased the ram usage, made sure my hardware isn't full or anything, and even changed the resolution in hopes it would fix things. I checked my antivirus and firewall but that isn't the issue either. Trust me, I've done everything I can think of. For some reason the black screen does flicker a little into the main menu, but obviously unplayable. I couldn't even make my way to the settings with how little it flickered. I'm not sure if it flickered randomly or if it was because I was messing around moving and clicking a bunch, I didn't really test it that much.  
    • I've had a really weird issue recently,  I wanted to add the Depper and Darker mod on my dedicated server (MC 1.21 with Fabric 0.16.9, hosted on nitroserv.com) but whenever I do add the mod the sever stops doing anything after listing the mods, and I get no crash or error or anything, just a stuck server. Here's a normal log of the server booting up: https://pastebin.com/JipFF2Eh and here's the log of the server doing the weird thing: https://pastebin.com/W4JBh3eX I just don't understand it. I've tried removing other mods (somewhat randomly) but deeper and darker still breaks my server whenever I add it. NitroServ support staff is about as confused as I am and I've had no response from the Deeper and Darker support staff... Now I know this is the Forge support not the Fabric support but I'm just trying to know if anyone has any kind of idea to fix this (aside from not using the mod obviously) Also I still have a bunch of errors and warnings whenever the server does start properly, are there any of them I should be worried about?
    • Delete the config of RandomTweaker (config folder) If there is no change, remove this mod
    • Hello! So i have been trying to make a mod that adds plant fiber to minecraft 1.16.5 (i believe there are mods that add plant fiber but not for 1.16.5) but the problem is that i want to modify the loot table of grass to always drop plant fiber but also keep the vanilla drops. Most common answer i have seen is GlobalLootModifiers. But my tiny brain cant understand any tutorials. So any help is appreciated.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.