public class EntityAITargetNonTamed<T extends EntityLivingBase> extends EntityAINearestAttackableTarget<T>
EntityAINearestAttackableTarget.Sorter
Modifier and Type | Field and Description |
---|---|
private EntityTameable |
tameable |
sorter, targetClass, targetEntity, targetEntitySelector
shouldCheckSight, target, taskOwner, unseenMemoryTicks
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() |
getTargetableArea, startExecuting
getTargetDistance, isSuitableTarget, isSuitableTarget, resetTask, setUnseenMemoryTicks, shouldContinueExecuting
getMutexBits, isInterruptible, setMutexBits, updateTask
private final EntityTameable tameable
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<T extends EntityLivingBase>