Skip to content

The type EntityModel is not generic; it cannot be parameterized with arguments <Entity> #2008

Answered by warjort
Uskoe asked this question in Mod Dev Support
Discussion options

You must be logged in to vote

The type WrogglerEntityModel is not generic; it cannot be parameterized with arguments Java(16777740)

public class WrogglerEntityRenderer extends BipedEntityRenderer<WrogglerEntity, WrogglerEntityModel<WrogglerEntity>> {
public class WrogglerEntityModel extends EntityModel<WrogglerEntity> {

Like it says the WrogglerEntityModel is not parameterized.

Possible fixes would be to remove the type argument when you create your type:

public class WrogglerEntityRenderer extends BipedEntityRenderer<WrogglerEntity, WrogglerEntityModel>

or keep your entity model type generic so you can create it with the type argument.

public class WrogglerEntityModel<E extends Entity> extends EntityModel<E> {

H…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Uskoe
Comment options

@warjort
Comment options

@Uskoe
Comment options

@warjort
Comment options

@Uskoe
Comment options

Answer selected by Uskoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants