Class TargetingConditions
java.lang.Object
net.minecraft.world.entity.ai.targeting.TargetingConditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
static final TargetingConditions
private final boolean
private static final double
private double
private Predicate
<LivingEntity> private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
static TargetingConditions
static TargetingConditions
range
(double p_26884_) selector
(Predicate<LivingEntity> p_26889_) boolean
test
(LivingEntity p_26886_, LivingEntity p_26887_)
-
Field Details
-
DEFAULT
-
MIN_VISIBILITY_DISTANCE_FOR_INVISIBLE_TARGET
private static final double MIN_VISIBILITY_DISTANCE_FOR_INVISIBLE_TARGET- See Also:
-
isCombat
private final boolean isCombat -
range
private double range -
checkLineOfSight
private boolean checkLineOfSight -
testInvisible
private boolean testInvisible -
selector
-
-
Constructor Details
-
TargetingConditions
private TargetingConditions(boolean p_148351_)
-
-
Method Details
-
forCombat
-
forNonCombat
-
copy
-
range
-
ignoreLineOfSight
-
ignoreInvisibilityTesting
-
selector
-
test
-