Package net.minecraft.entity.passive
Class StriderEntity.MoveToLavaGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MoveToBlockGoal
-
- net.minecraft.entity.passive.StriderEntity.MoveToLavaGoal
-
- Enclosing class:
- StriderEntity
static class StriderEntity.MoveToLavaGoal extends MoveToBlockGoal
-
-
Field Summary
Fields Modifier and Type Field Description private StriderEntity
strider
-
Fields inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MoveToLavaGoal(StriderEntity p_i241913_1_, double p_i241913_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
BlockPos
getMoveToTarget()
protected boolean
isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
boolean
shouldRecalculatePath()
-
Methods inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
acceptedDistance, findNearestBlock, isReachedTarget, moveMobToBlock, nextStartTick, start, tick
-
-
-
-
Field Detail
-
strider
private final StriderEntity strider
-
-
Constructor Detail
-
MoveToLavaGoal
private MoveToLavaGoal(StriderEntity p_i241913_1_, double p_i241913_2_)
-
-
Method Detail
-
getMoveToTarget
public BlockPos 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
protected boolean isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
- Specified by:
isValidTarget
in classMoveToBlockGoal
-
-