public class RaidGoal<T extends LivingEntity> extends FollowTargetGoal<T>
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private int |
cooldown |
reciprocalChance, targetClass, targetEntity, targetPredicatecheckVisibility, 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, setTargetEntitycanTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stopcanStop, getControls, setControls, tick, toStringpublic 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>