Jump to content

Recommended Posts

Posted

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?

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

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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