Class RandomStrollGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RandomStrollGoal
- Direct Known Subclasses:
GolemRandomStrollInVillageGoal
,MoveBackToVillageGoal
,RandomSwimmingGoal
,Silverfish.SilverfishMergeWithStoneGoal
,Turtle.TurtleRandomStrollGoal
,WaterAvoidingRandomStrollGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
static int
protected boolean
protected int
protected PathfinderMob
protected double
protected double
protected double
protected double
-
Constructor Summary
ConstructorDescriptionRandomStrollGoal(PathfinderMob p_25734_, double p_25735_)
RandomStrollGoal(PathfinderMob p_25737_, double p_25738_, int p_25739_)
RandomStrollGoal(PathfinderMob p_25741_, double p_25742_, int p_25743_, boolean p_25744_)
-
Method Summary
-
Field Details
-
DEFAULT_INTERVAL
public static final int DEFAULT_INTERVAL- See Also:
- Constant Field Values
-
mob
-
wantedX
protected double wantedX -
wantedY
protected double wantedY -
wantedZ
protected double wantedZ -
speedModifier
protected final double speedModifier -
interval
protected int interval -
forceTrigger
protected boolean forceTrigger -
checkNoActionTime
private final boolean checkNoActionTime
-
-
Constructor Details
-
RandomStrollGoal
-
RandomStrollGoal
-
RandomStrollGoal
-
-
Method Details
-
canUse
public boolean canUse() -
getPosition
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
start
public void start() -
stop
public void stop() -
trigger
public void trigger() -
setInterval
public void setInterval(int p_25747_)
-