public class RaidGoal<T extends LivingEntity> extends FollowTargetGoal<T>
Goal.Control
Modifier and Type | Field and Description |
---|---|
private int |
cooldown |
reciprocalChance, targetClass, targetEntity, targetPredicate
checkVisibility, maxTimeWithoutVisibility, mob, target
Constructor and Description |
---|
RaidGoal(RaiderEntity raider,
Class<T> targetEntityClass,
boolean checkVisibility,
Predicate<LivingEntity> targetPredicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
void |
decreaseCooldown() |
int |
getCooldown() |
void |
start() |
findClosestTarget, getSearchBox, setTargetEntity
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stop
canStop, getControls, setControls, tick, toString
public RaidGoal(RaiderEntity raider, Class<T> targetEntityClass, boolean checkVisibility, @Nullable Predicate<LivingEntity> targetPredicate)
public int getCooldown()
public void decreaseCooldown()
public boolean canStart()
canStart
in class FollowTargetGoal<T extends LivingEntity>
public void start()
start
in class FollowTargetGoal<T extends LivingEntity>