Help with Entity

Started by Lamento on

Topic category: Advanced modding

Last seen on 15:34, 21. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with Entity
Thu, 05/06/2021 - 13:39 (edited)

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
Last seen on 15:34, 21. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Moderators I ask for your…
Thu, 05/06/2021 - 16:29

Moderators I ask for your help

Last seen on 15:34, 21. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
God, what a moron this Java…
Fri, 05/07/2021 - 00:33

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 :)

Last seen on 15:34, 21. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If someone also has these…
Fri, 05/07/2021 - 16:58

If someone also has these problems, then the constructor is passed the Custom Entity itself, via the import class

Last seen on 10:10, 25. Jun 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  So, were you able to…
Tue, 05/11/2021 - 17:31

 

So, were you able to integrate geckolib with mcreator?

Last seen on 15:34, 21. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, I succeeded
Tue, 05/11/2021 - 18:57

Yes, I succeeded

Last seen on 10:10, 25. Jun 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you have discord ? I did…
Tue, 05/11/2021 - 19:01

Do you have discord ? I did it too, but I'm having trouble making certain animations play at events

Last seen on 15:34, 21. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have a discord, but I'm…
Tue, 05/11/2021 - 19:05

I have a discord, but I'm Russian. I don't speak English. (translator only :D)
Rarety#4441