update generator
This commit is contained in:
parent
711dbd74ea
commit
af97400701
16 changed files with 245 additions and 163 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue