Package net.minecraft.entity.ai.goal
Class WanderAroundGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.WanderAroundGoal
- Direct Known Subclasses:
IronGolemWanderAroundGoal
,SilverfishEntity.WanderAndInfestGoal
,SwimAroundGoal
,TurtleEntity.WanderOnLandGoal
,WanderAroundFarGoal
,WanderAroundPointOfInterestGoal
public class WanderAroundGoal 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 protected int
chance
private boolean
field_24463
protected boolean
ignoringChance
protected PathAwareEntity
mob
protected double
speed
protected double
targetX
protected double
targetY
protected double
targetZ
-
Constructor Summary
Constructors Constructor Description WanderAroundGoal(PathAwareEntity mob, double speed)
WanderAroundGoal(PathAwareEntity mob, double speed, int chance)
WanderAroundGoal(PathAwareEntity pathAwareEntity, double double2, int int2, boolean bool)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
protected Vec3d
getWanderTarget()
void
ignoreChanceOnce()
void
setChance(int chance)
boolean
shouldContinue()
void
start()
void
stop()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
mob
-
targetX
protected double targetX -
targetY
protected double targetY -
targetZ
protected double targetZ -
speed
protected final double speed -
chance
protected int chance -
ignoringChance
protected boolean ignoringChance -
field_24463
private boolean field_24463
-
-
Constructor Details
-
WanderAroundGoal
-
WanderAroundGoal
-
WanderAroundGoal
-
-
Method Details
-
canStart
public boolean canStart() -
getWanderTarget
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
-
start
public void start() -
stop
public void stop() -
ignoreChanceOnce
public void ignoreChanceOnce() -
setChance
public void setChance(int chance)
-