Package net.minecraft.entity.monster
Class DrownedEntity.GoToBeachGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MoveToBlockGoal
-
- net.minecraft.entity.monster.DrownedEntity.GoToBeachGoal
-
- Enclosing class:
- DrownedEntity
static class DrownedEntity.GoToBeachGoal extends MoveToBlockGoal
-
-
Field Summary
Fields Modifier and Type Field Description private DrownedEntity
drowned
-
Fields inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
-
Constructor Summary
Constructors Constructor Description GoToBeachGoal(DrownedEntity p_i48911_1_, double p_i48911_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
protected boolean
isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
void
start()
void
stop()
-
Methods inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
acceptedDistance, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, shouldRecalculatePath, tick
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
drowned
private final DrownedEntity drowned
-
-
Constructor Detail
-
GoToBeachGoal
public GoToBeachGoal(DrownedEntity p_i48911_1_, double p_i48911_2_)
-
-
Method Detail
-
canUse
public boolean canUse()
- Overrides:
canUse
in classMoveToBlockGoal
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classMoveToBlockGoal
-
isValidTarget
protected boolean isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
- Specified by:
isValidTarget
in classMoveToBlockGoal
-
start
public void start()
- Overrides:
start
in classMoveToBlockGoal
-
-