LivingEntity
is an interface, CraftLivingEntity
is a class. You can only extend a class, you implement an interface. The interface itself has no "normal steps".
If you can control whether CraftLivingEntity
or a different class is instantiated, extend CLE as follows
public class MyCraftLivingEntity extends CraftLivingEntity {
@Override // just a marker annotation to help catch inheritance issues
public void setCustomName(String name) {
super.setCustomName(name);
// do whatever else
}
}
and instantiate your class instead.