Troglodo Posted September 1, 2022 Share Posted September 1, 2022 Im making my first entity and in the EntityTypesInit the register throws this error: The method register(String, Supplier<? extends I>) in the type DeferredRegister<EntityType<?>> is not applicable for the arguments (String, () -> {}) The code is simple: here Im using Eclipse IDE What can i do? Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted September 1, 2022 Share Posted September 1, 2022 You need to call EntityType.Builder#build to create the actual EntityType from the Builder. Quote Link to comment Share on other sites More sharing options...
Troglodo Posted September 1, 2022 Author Share Posted September 1, 2022 1 hour ago, Luis_ST said: You need to call EntityType.Builder#build to create the actual EntityType from the Builder. This is going to sound very bad, but how do I call it, im ashamed sorry for not knowing im new to all this. Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted September 1, 2022 Share Posted September 1, 2022 If you do not know how to call a method on a object please learn basic java before modding. The EntityType.Builder#build requires a String as parameter, you need to pass in the entity name with out your mod i Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.