Package net.minecraft.entity.passive
Class WolfEntity.AvoidLlamaGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FleeEntityGoal<T>
net.minecraft.entity.passive.WolfEntity.AvoidLlamaGoal<T>
- Enclosing class:
- WolfEntity
class WolfEntity.AvoidLlamaGoal<T extends LivingEntity> extends FleeEntityGoal<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description private WolfEntitywolfFields inherited from class net.minecraft.entity.ai.goal.FleeEntityGoal
classToFleeFrom, extraInclusionSelector, fleeDistance, fleeingEntityNavigation, fleePath, inclusionSelector, mob, targetEntity -
Constructor Summary
Constructors Constructor Description AvoidLlamaGoal(WolfEntity wolf, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed) -
Method Summary
Modifier and Type Method Description booleancanStart()private booleanisScaredOf(LlamaEntity llama)voidstart()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.FleeEntityGoal
shouldContinue, stopMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
wolf
-
-
Constructor Details
-
AvoidLlamaGoal
public AvoidLlamaGoal(WolfEntity wolf, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStartin classFleeEntityGoal<T extends LivingEntity>
-
isScaredOf
-
start
public void start()- Overrides:
startin classFleeEntityGoal<T extends LivingEntity>
-
tick
public void tick()- Overrides:
tickin classFleeEntityGoal<T extends LivingEntity>
-