Topic category: Advanced modding
I've been attempting to create a tameable mob, and I've managed to iron out every build error but this one (minus the location link):
: error: CustomEntity is not abstract and does not override abstract method createChild(AgeableEntity) in AgeableEntity public static class CustomEntity extends TameableEntity implements IRangedAttackMob {
Now, if I do what it wants and change static to abstract, I get a bunch of other errors telling me that CustomEntity is not allowed to be abstract. I also don't know how to override createChild(AgeableEntity), because the mob is not ageable in the first place. The only connection my mob has to AgeableEntity.java is through TameableEntity, which extends AnimalEntity, which extends AgeableEntity.
Anyone have any ideas as to what the issue is?
Because TameableEntity extends AgeableEntity, it wants you to create an override method in your entity called createChild, with the parameters given. This method returns what "child" entity will be created when your custom entity is bred. I believe this is a void method and it will look like this:
Replace [your entity here] with the class of your custom entity, as it is referred to in your code. For example, entities generated by MCreator are called CustomEntity.
I hope this isn't too confusing. I'm relatively new at java so I don't know all the terms for various things, but I ran into this issue as well a couple weeks ago and this is how I solved it.
OH! I forgot to put this in, but above this code put @Override because you are overriding createChild from AgeableEntity.