Package net.minecraft.entity.passive
Class StriderEntity.GoBackToLavaGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.passive.StriderEntity.GoBackToLavaGoal
- Enclosing class:
- StriderEntity
static class StriderEntity.GoBackToLavaGoal extends MoveToTargetPosGoal
-
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 StriderEntity
strider
Fields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime
-
Constructor Summary
Constructors Modifier Constructor Description private
GoBackToLavaGoal(StriderEntity strider, double speed)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
BlockPos
getTargetPos()
protected boolean
isTargetPos(WorldView world, BlockPos pos)
boolean
shouldContinue()
boolean
shouldResetPath()
Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, hasReached, start, startMovingToTarget, tick
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, toString
-
Field Details
-
strider
-
-
Constructor Details
-
GoBackToLavaGoal
-
-
Method Details
-
getTargetPos
- Overrides:
getTargetPos
in classMoveToTargetPosGoal
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classMoveToTargetPosGoal
-
canStart
public boolean canStart()- Overrides:
canStart
in classMoveToTargetPosGoal
-
shouldResetPath
public boolean shouldResetPath()- Overrides:
shouldResetPath
in classMoveToTargetPosGoal
-
isTargetPos
- Specified by:
isTargetPos
in classMoveToTargetPosGoal
-