Jump to content

[1.12.2] Creating an Entity with OBJ model?


Thegametutor101

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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".

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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

Important Information

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