Package net.minecraft.entity
Class EntityPredicate
- java.lang.Object
-
- net.minecraft.entity.EntityPredicate
-
public class EntityPredicate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowInvulnerable
private boolean
allowNonAttackable
private boolean
allowSameTeam
private boolean
allowUnseeable
static EntityPredicate
DEFAULT
private double
range
private java.util.function.Predicate<LivingEntity>
selector
private boolean
testInvisible
-
Constructor Summary
Constructors Constructor Description EntityPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityPredicate
allowInvulnerable()
EntityPredicate
allowNonAttackable()
EntityPredicate
allowSameTeam()
EntityPredicate
allowUnseeable()
EntityPredicate
ignoreInvisibilityTesting()
EntityPredicate
range(double p_221013_1_)
EntityPredicate
selector(java.util.function.Predicate<LivingEntity> p_221012_1_)
boolean
test(LivingEntity p_221015_1_, LivingEntity p_221015_2_)
-
-
-
Field Detail
-
DEFAULT
public static final EntityPredicate DEFAULT
-
range
private double range
-
allowInvulnerable
private boolean allowInvulnerable
-
allowSameTeam
private boolean allowSameTeam
-
allowUnseeable
private boolean allowUnseeable
-
allowNonAttackable
private boolean allowNonAttackable
-
testInvisible
private boolean testInvisible
-
selector
private java.util.function.Predicate<LivingEntity> selector
-
-
Method Detail
-
range
public EntityPredicate range(double p_221013_1_)
-
allowInvulnerable
public EntityPredicate allowInvulnerable()
-
allowSameTeam
public EntityPredicate allowSameTeam()
-
allowUnseeable
public EntityPredicate allowUnseeable()
-
allowNonAttackable
public EntityPredicate allowNonAttackable()
-
ignoreInvisibilityTesting
public EntityPredicate ignoreInvisibilityTesting()
-
selector
public EntityPredicate selector(@Nullable java.util.function.Predicate<LivingEntity> p_221012_1_)
-
test
public boolean test(@Nullable LivingEntity p_221015_1_, LivingEntity p_221015_2_)
-
-