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 intchanceprivate booleanfield_24463protected booleanignoringChanceprotected PathAwareEntitymobprotected doublespeedprotected doubletargetXprotected doubletargetYprotected doubletargetZ -
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 booleancanStart()protected Vec3dgetWanderTarget()voidignoreChanceOnce()voidsetChance(int chance)booleanshouldContinue()voidstart()voidstop()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 final boolean field_24463
-
-
Constructor Details
-
WanderAroundGoal
-
WanderAroundGoal
-
WanderAroundGoal
-
-
Method Details
-
canStart
public boolean canStart() -
getWanderTarget
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal
-
start
public void start() -
stop
public void stop() -
ignoreChanceOnce
public void ignoreChanceOnce() -
setChance
public void setChance(int chance)
-