update generator

This commit is contained in:
Lulu13022002
2024-04-27 22:30:15 +02:00
parent 9f60650248
commit e0adb01ddc
15 changed files with 228 additions and 146 deletions

View File

@@ -1122,7 +1122,8 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
)
GoalKey<Mob> UNIVERSAL_ANGER_RESET = create("universal_anger_reset", Mob.class);
private static @NotNull GoalKey create(final @NotNull String key, final @NotNull Class clazz) {
return GoalKey.of(clazz, NamespacedKey.minecraft(key));
private static <T extends Mob> @NotNull GoalKey<T> create(final @NotNull String key,
final @NotNull Class<T> type) {
return GoalKey.of(type, NamespacedKey.minecraft(key));
}
}