CustomGoal inheritance fixes

This commit is contained in:
Auxilor
2022-03-02 12:22:37 +00:00
parent 5cad1d31e3
commit 92dfa32d07

View File

@@ -56,4 +56,11 @@ public interface CustomGoal<T extends Mob> extends EntityGoal<T>, TargetGoal<T>
default void stop() {
// Override when needed.
}
@Override
default T addToEntity(@NotNull T entity, int priority) {
throw new UnsupportedOperationException(
"Shorthand syntax is not supported for custom goals by default as they can be both entity and target goals."
);
}
}