public class ToggleableNearestAttackableTargetGoal<T extends LivingEntity> extends NearestAttackableTargetGoal<T>
Modifier and Type | Field and Description |
---|---|
private boolean |
field_220784_i |
nearestTarget, targetChance, targetClass, targetEntitySelector
goalOwner, shouldCheckSight, target, unseenMemoryTicks
Constructor and Description |
---|
ToggleableNearestAttackableTargetGoal(AbstractRaiderEntity p_i50312_1_,
java.lang.Class<T> p_i50312_2_,
int p_i50312_3_,
boolean p_i50312_4_,
boolean p_i50312_5_,
java.util.function.Predicate<LivingEntity> p_i50312_6_) |
Modifier and Type | Method and Description |
---|---|
void |
func_220783_a(boolean p_220783_1_) |
boolean |
shouldExecute() |
findNearestTarget, getTargetableArea, startExecuting
getTargetDistance, isSuitableTarget, resetTask, setUnseenMemoryTicks, shouldContinueExecuting
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
public ToggleableNearestAttackableTargetGoal(AbstractRaiderEntity p_i50312_1_, java.lang.Class<T> p_i50312_2_, int p_i50312_3_, boolean p_i50312_4_, boolean p_i50312_5_, @Nullable java.util.function.Predicate<LivingEntity> p_i50312_6_)
public void func_220783_a(boolean p_220783_1_)
public boolean shouldExecute()
shouldExecute
in class NearestAttackableTargetGoal<T extends LivingEntity>