class WolfEntity.AvoidLlamaGoal<T extends LivingEntity> extends FleeEntityGoal<T>
Goal.Control
Modifier and Type | Field and Description |
---|---|
private WolfEntity |
wolf |
classToFleeFrom, extraInclusionSelector, fleeDistance, fleeingEntityNavigation, fleePath, inclusionSelector, mob, targetEntity
Constructor and Description |
---|
AvoidLlamaGoal(WolfEntity wolf,
Class<T> fleeFromType,
float distance,
double slowSpeed,
double fastSpeed) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
private boolean |
isScaredOf(LlamaEntity llama) |
void |
start() |
void |
tick() |
shouldContinue, stop
canStop, getControls, setControls, toString
private final WolfEntity wolf
public AvoidLlamaGoal(WolfEntity wolf, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)
public boolean canStart()
canStart
in class FleeEntityGoal<T extends LivingEntity>
private boolean isScaredOf(LlamaEntity llama)
public void start()
start
in class FleeEntityGoal<T extends LivingEntity>
public void tick()
tick
in class FleeEntityGoal<T extends LivingEntity>