update generator

This commit is contained in:
Lulu13022002 2024-04-27 22:30:15 +02:00
parent 711dbd74ea
commit af97400701
No known key found for this signature in database
GPG key ID: 491C8F0B8ACDEB01
16 changed files with 245 additions and 163 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));
}
}