Package net.minecraft.entity.passive
Class RabbitEntity.FleeGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FleeEntityGoal<T>
net.minecraft.entity.passive.RabbitEntity.FleeGoal<T>
- Enclosing class:
- RabbitEntity
static class RabbitEntity.FleeGoal<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 RabbitEntity
rabbit
Fields inherited from class net.minecraft.entity.ai.goal.FleeEntityGoal
classToFleeFrom, extraInclusionSelector, fleeDistance, fleeingEntityNavigation, fleePath, inclusionSelector, mob, targetEntity
-
Constructor Summary
Constructors Constructor Description FleeGoal(RabbitEntity rabbit, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
Methods inherited from class net.minecraft.entity.ai.goal.FleeEntityGoal
shouldContinue, start, stop, tick
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
rabbit
-
-
Constructor Details
-
FleeGoal
public FleeGoal(RabbitEntity rabbit, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classFleeEntityGoal<T extends LivingEntity>
-