public class EntityAITargetNonTamed<T extends EntityLivingBase> extends EntityAINearestAttackableTarget
EntityAINearestAttackableTarget.Sorter| Modifier and Type | Field and Description |
|---|---|
private EntityTameable |
theTameable |
targetClass, targetEntity, targetEntitySelector, theNearestAttackableTargetSortershouldCheckSight, taskOwner| Constructor and Description |
|---|
EntityAITargetNonTamed(EntityTameable entityIn,
java.lang.Class<T> classTarget,
boolean checkSight,
com.google.common.base.Predicate<? super T> targetSelector) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
startExecutingcontinueExecuting, getTargetDistance, isSuitableTarget, isSuitableTarget, resetTaskgetMutexBits, isInterruptible, setMutexBits, updateTaskprivate EntityTameable theTameable
public EntityAITargetNonTamed(EntityTameable entityIn, java.lang.Class<T> classTarget, boolean checkSight, com.google.common.base.Predicate<? super T> targetSelector)
public boolean shouldExecute()
shouldExecute in class EntityAINearestAttackableTarget