Class Strider.StriderGoToLavaGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.world.entity.monster.Strider.StriderGoToLavaGoal
- Enclosing class:
Strider
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected boolean
isValidTarget
(LevelReader pLevel, BlockPos pPos) Returntrue
to set given position as destinationboolean
Methods inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoal
acceptedDistance, findNearestBlock, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTick, start, tick
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, stop, toString
-
Field Details
-
strider
-
-
Constructor Details
-
StriderGoToLavaGoal
StriderGoToLavaGoal(Strider pStrider, double pSpeedModifier)
-
-
Method Details
-
getMoveToTarget
- Overrides:
getMoveToTarget
in classMoveToBlockGoal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classMoveToBlockGoal
-
canUse
public boolean canUse()- Overrides:
canUse
in classMoveToBlockGoal
-
shouldRecalculatePath
public boolean shouldRecalculatePath()- Overrides:
shouldRecalculatePath
in classMoveToBlockGoal
-
isValidTarget
Returntrue
to set given position as destination- Specified by:
isValidTarget
in classMoveToBlockGoal
-