Package net.minecraft.entity.passive
Class TurtleEntity.ApproachFoodHoldingPlayerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.passive.TurtleEntity.ApproachFoodHoldingPlayerGoal
- Enclosing class:
- TurtleEntity
static class TurtleEntity.ApproachFoodHoldingPlayerGoal extends Goal
-
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 Set<Item>attractiveItemsprivate static TargetPredicateCLOSE_ENTITY_PREDICATEprivate intcooldownprivate doublespeedprivate PlayerEntitytargetPlayerprivate TurtleEntityturtle -
Constructor Summary
Constructors Constructor Description ApproachFoodHoldingPlayerGoal(TurtleEntity turtle, double speed, Item attractiveItem) -
Method Summary
Modifier and Type Method Description booleancanStart()private booleanisAttractive(ItemStack stack)booleanshouldContinue()voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, start, toString
-
Field Details
-
CLOSE_ENTITY_PREDICATE
-
turtle
-
speed
private final double speed -
targetPlayer
-
cooldown
private int cooldown -
attractiveItems
-
-
Constructor Details
-
ApproachFoodHoldingPlayerGoal
ApproachFoodHoldingPlayerGoal(TurtleEntity turtle, double speed, Item attractiveItem)
-
-
Method Details