Started by
Lamento
on
Topic category: Advanced modding
How do I get a link to the created entity?
For example, an entity has a TestEntity class and a TestRenderer, how do I pass the entity itself from the TestEntity class to the constructor in TestRenderer?
I understand that entities are added to the ModList, but how do I get it from there?
I need to pass to the constructor a Textrenderer -> TestEntity that extends LivingEntity or subclasse
If I just pass TestEntity to the constructor, then I get an error:
where T is a type-variable:
T extends LivingEntity
The membership of TestEntity to LivingEntity is created in the Custom Entity class, but how do I pass it to the constructor?
I am a C# developer, I find it very difficult to work with Java .Damn
Edited by Lamento on Thu, 05/06/2021 - 13:39
Moderators I ask for your help
God, what a moron this Java is. Since no one helped me on the forum, it took me a lot of time to adapt Geckolib 3.0 for Mcreator. I was just killed by the possibility of expanding only one class. Also, there are no normal manuals about Forge, everything had to be done intuitively.
P. S My adores minecraft and decided to make a mod. She needed a complex animation, so I had to do everything myself :)
If someone also has these problems, then the constructor is passed the Custom Entity itself, via the import class
So, were you able to integrate geckolib with mcreator?
Yes, I succeeded
Do you have discord ? I did it too, but I'm having trouble making certain animations play at events
I have a discord, but I'm Russian. I don't speak English. (translator only :D)
Rarety#4441