Package net.minecraft.entity.mob
Class DrownedEntity.TargetAboveWaterGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.mob.DrownedEntity.TargetAboveWaterGoal
- Enclosing class:
- DrownedEntity
static class DrownedEntity.TargetAboveWaterGoal 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 DrownedEntity
drowned
private boolean
foundTarget
private int
minY
private double
speed
-
Constructor Summary
Constructors Constructor Description TargetAboveWaterGoal(DrownedEntity drowned, double speed, int minY)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
drowned
-
speed
private final double speed -
minY
private final int minY -
foundTarget
private boolean foundTarget
-
-
Constructor Details
-
TargetAboveWaterGoal
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
-
tick
public void tick() -
start
public void start() -
stop
public void stop()
-