Take 3 at fixing generic issues

This commit is contained in:
Auxilor
2022-03-01 22:20:12 +00:00
parent 3c3e34eda3
commit 98b465f8f3
3 changed files with 6 additions and 8 deletions

View File

@@ -9,15 +9,9 @@ import org.jetbrains.annotations.NotNull;
*
* @param blacklist The entities not to attack when hurt by.
*/
@SuppressWarnings({"varargs", "unchecked"})
public record TargetGoalHurtBy(
@NotNull Class<? extends LivingEntity>... blacklist
) implements TargetGoal {
/**
* Hurt by entity.
*
* @param blacklist The entities not to attack when hurt by.
*/
@SafeVarargs
public TargetGoalHurtBy {
}
}