public class HurtByTargetGoal extends TargetGoal
Modifier and Type | Field and Description |
---|---|
private boolean |
entityCallsForHelp |
private java.lang.Class<?>[] |
excludedReinforcementTypes |
private static EntityPredicate |
field_220795_a |
private java.lang.Class<?>[] |
field_220797_i |
private int |
revengeTimerOld |
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, toString
private static final EntityPredicate field_220795_a
private boolean entityCallsForHelp
private int revengeTimerOld
private final java.lang.Class<?>[] excludedReinforcementTypes
private java.lang.Class<?>[] field_220797_i
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)