Class AbstractFishEntity.SwimGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.RandomWalkingGoal
-
- net.minecraft.entity.ai.goal.RandomSwimmingGoal
-
- net.minecraft.entity.passive.fish.AbstractFishEntity.SwimGoal
-
- Enclosing class:
- AbstractFishEntity
static class AbstractFishEntity.SwimGoal extends RandomSwimmingGoal
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractFishEntity
fish
-
Fields inherited from class net.minecraft.entity.ai.goal.RandomWalkingGoal
forceTrigger, interval, mob, speedModifier, wantedX, wantedY, wantedZ
-
-
Constructor Summary
Constructors Constructor Description SwimGoal(AbstractFishEntity p_i48856_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
-
Methods inherited from class net.minecraft.entity.ai.goal.RandomSwimmingGoal
getPosition
-
Methods inherited from class net.minecraft.entity.ai.goal.RandomWalkingGoal
canContinueToUse, setInterval, start, stop, trigger
-
-
-
-
Field Detail
-
fish
private final AbstractFishEntity fish
-
-
Constructor Detail
-
SwimGoal
public SwimGoal(AbstractFishEntity p_i48856_1_)
-
-
Method Detail
-
canUse
public boolean canUse()
- Overrides:
canUse
in classRandomWalkingGoal
-
-