public class HurtByTargetGoal extends TargetGoal
goalOwner, shouldCheckSight, target, unseenMemoryTicks
Constructor and Description |
---|
HurtByTargetGoal(CreatureEntity creatureIn,
java.lang.Class<?>... p_i50317_2_) |
Modifier and Type | Method and Description |
---|---|
protected void |
alertOthers() |
protected void |
setAttackTarget(MobEntity mobIn,
LivingEntity targetIn) |
HurtByTargetGoal |
setCallsForHelp(java.lang.Class<?>... p_220794_1_) |
boolean |
shouldExecute() |
void |
startExecuting() |
getTargetDistance, isSuitableTarget, resetTask, setUnseenMemoryTicks, shouldContinueExecuting
getMutexFlags, isPreemptible, setMutexFlags, tick
public HurtByTargetGoal(CreatureEntity creatureIn, java.lang.Class<?>... p_i50317_2_)
public boolean shouldExecute()
shouldExecute
in class Goal
public HurtByTargetGoal setCallsForHelp(java.lang.Class<?>... p_220794_1_)
public void startExecuting()
startExecuting
in class TargetGoal
protected void alertOthers()
protected void setAttackTarget(MobEntity mobIn, LivingEntity targetIn)