Package net.minecraft.entity.passive
Class DolphinEntity.SwimWithPlayerGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.passive.DolphinEntity.SwimWithPlayerGoal
-
- Enclosing class:
- DolphinEntity
static class DolphinEntity.SwimWithPlayerGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private DolphinEntity
dolphin
private PlayerEntity
player
private double
speedModifier
-
Constructor Summary
Constructors Constructor Description SwimWithPlayerGoal(DolphinEntity p_i48994_1_, double p_i48994_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
dolphin
private final DolphinEntity dolphin
-
speedModifier
private final double speedModifier
-
player
private PlayerEntity player
-
-
Constructor Detail
-
SwimWithPlayerGoal
SwimWithPlayerGoal(DolphinEntity p_i48994_1_, double p_i48994_2_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
-