Package net.minecraft.entity.passive
Class OcelotEntity.OcelotTemptGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TemptGoal
net.minecraft.entity.passive.OcelotEntity.OcelotTemptGoal
- Enclosing class:
- OcelotEntity
static class OcelotEntity.OcelotTemptGoal extends TemptGoal
-
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 OcelotEntity
ocelot
Fields inherited from class net.minecraft.entity.ai.goal.TemptGoal
closestPlayer, mob
-
Constructor Summary
Constructors Constructor Description OcelotTemptGoal(OcelotEntity ocelot, double speed, Ingredient food, boolean canBeScared)
-
Method Summary
Modifier and Type Method Description protected boolean
canBeScared()
Methods inherited from class net.minecraft.entity.ai.goal.TemptGoal
canStart, isActive, isTemptedBy, shouldContinue, start, stop, tick
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
ocelot
-
-
Constructor Details
-
OcelotTemptGoal
-
-
Method Details
-
canBeScared
protected boolean canBeScared()- Overrides:
canBeScared
in classTemptGoal
-