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