public abstract class TargetGoal extends Goal
Modifier and Type | Field and Description |
---|---|
protected MobEntity |
goalOwner |
protected boolean |
shouldCheckSight |
protected LivingEntity |
target |
protected int |
unseenMemoryTicks |
Constructor and Description |
---|
TargetGoal(MobEntity mobIn,
boolean checkSight) |
TargetGoal(MobEntity mobIn,
boolean checkSight,
boolean p_i50309_3_) |
Modifier and Type | Method and Description |
---|---|
protected double |
getTargetDistance() |
protected boolean |
isSuitableTarget(LivingEntity p_220777_1_,
EntityPredicate p_220777_2_) |
void |
resetTask() |
TargetGoal |
setUnseenMemoryTicks(int p_190882_1_) |
boolean |
shouldContinueExecuting() |
void |
startExecuting() |
getMutexFlags, isPreemptible, setMutexFlags, shouldExecute, tick
protected final MobEntity goalOwner
protected final boolean shouldCheckSight
protected LivingEntity target
protected int unseenMemoryTicks
public TargetGoal(MobEntity mobIn, boolean checkSight)
public TargetGoal(MobEntity mobIn, boolean checkSight, boolean p_i50309_3_)
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
protected double getTargetDistance()
public void startExecuting()
startExecuting
in class Goal
protected boolean isSuitableTarget(@Nullable LivingEntity p_220777_1_, EntityPredicate p_220777_2_)
public TargetGoal setUnseenMemoryTicks(int p_190882_1_)