public class RevengeGoal extends TrackTargetGoal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private boolean |
groupRevenge |
private int |
lastAttackedTime |
private Class<?>[] |
noHelpTypes |
private Class<?>[] |
noRevengeTypes |
private static TargetPredicate |
VALID_AVOIDABLES_PREDICATE |
checkVisibility, maxTimeWithoutVisibility, mob, target
Constructor and Description |
---|
RevengeGoal(PathAwareEntity mob,
Class<?>[] noRevengeTypes) |
Modifier and Type | Method and Description |
---|---|
protected void |
callSameTypeForRevenge() |
boolean |
canStart() |
RevengeGoal |
setGroupRevenge(Class<?>[] noHelpTypes) |
protected void |
setMobEntityTarget(MobEntity mob,
LivingEntity target) |
void |
start() |
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stop
canStop, getControls, setControls, tick, toString
private static final TargetPredicate VALID_AVOIDABLES_PREDICATE
private boolean groupRevenge
private int lastAttackedTime
private final Class<?>[] noRevengeTypes
private Class<?>[] noHelpTypes
public RevengeGoal(PathAwareEntity mob, Class<?>[] noRevengeTypes)
public RevengeGoal setGroupRevenge(Class<?>[] noHelpTypes)
public void start()
start
in class TrackTargetGoal
protected void callSameTypeForRevenge()
protected void setMobEntityTarget(MobEntity mob, LivingEntity target)