public class TargetPredicate extends Object
Modifier and Type | Field and Description |
---|---|
private double |
baseMaxDistance |
static TargetPredicate |
DEFAULT |
private boolean |
ignoreEntityTargetRules |
private boolean |
includeHidden |
private boolean |
includeInvulnerable |
private boolean |
includeTeammates |
private Predicate<LivingEntity> |
predicate |
private boolean |
useDistanceScalingFactor |
Constructor and Description |
---|
TargetPredicate() |
Modifier and Type | Method and Description |
---|---|
TargetPredicate |
ignoreDistanceScalingFactor() |
TargetPredicate |
ignoreEntityTargetRules() |
TargetPredicate |
includeHidden() |
TargetPredicate |
includeInvulnerable() |
TargetPredicate |
includeTeammates() |
TargetPredicate |
setBaseMaxDistance(double baseMaxDistance) |
TargetPredicate |
setPredicate(Predicate<LivingEntity> predicate) |
boolean |
test(LivingEntity baseEntity,
LivingEntity targetEntity) |
public static final TargetPredicate DEFAULT
private double baseMaxDistance
private boolean includeInvulnerable
private boolean includeTeammates
private boolean includeHidden
private boolean ignoreEntityTargetRules
private boolean useDistanceScalingFactor
private Predicate<LivingEntity> predicate
public TargetPredicate setBaseMaxDistance(double baseMaxDistance)
public TargetPredicate includeInvulnerable()
public TargetPredicate includeTeammates()
public TargetPredicate includeHidden()
public TargetPredicate ignoreEntityTargetRules()
public TargetPredicate ignoreDistanceScalingFactor()
public TargetPredicate setPredicate(@Nullable Predicate<LivingEntity> predicate)
public boolean test(@Nullable LivingEntity baseEntity, LivingEntity targetEntity)