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, shouldContinueExecutinggetMutexFlags, isPreemptible, setMutexFlags, tickpublic HurtByTargetGoal(CreatureEntity creatureIn, java.lang.Class<?>... p_i50317_2_)
public boolean shouldExecute()
shouldExecute in class Goalpublic HurtByTargetGoal setCallsForHelp(java.lang.Class<?>... p_220794_1_)
public void startExecuting()
startExecuting in class TargetGoalprotected void alertOthers()
protected void setAttackTarget(MobEntity mobIn, LivingEntity targetIn)