Package net.minecraft.entity.ai.goal
Class RandomWalkingGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.RandomWalkingGoal
-
- Direct Known Subclasses:
PatrolVillageGoal,RandomSwimmingGoal,ReturnToVillageGoal,SilverfishEntity.HideInStoneGoal,TurtleEntity.WanderGoal,WaterAvoidingRandomWalkingGoal
public class RandomWalkingGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private booleancheckNoActionTimeprotected booleanforceTriggerprotected intintervalprotected CreatureEntitymobprotected doublespeedModifierprotected doublewantedXprotected doublewantedYprotected doublewantedZ
-
Constructor Summary
Constructors Constructor Description RandomWalkingGoal(CreatureEntity p_i1648_1_, double p_i1648_2_)RandomWalkingGoal(CreatureEntity p_i45887_1_, double p_i45887_2_, int p_i45887_4_)RandomWalkingGoal(CreatureEntity p_i231550_1_, double p_i231550_2_, int p_i231550_4_, boolean p_i231550_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanContinueToUse()booleancanUse()protected Vector3dgetPosition()voidsetInterval(int p_179479_1_)voidstart()voidstop()voidtrigger()
-
-
-
Field Detail
-
mob
protected final CreatureEntity 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 boolean checkNoActionTime
-
-
Constructor Detail
-
RandomWalkingGoal
public RandomWalkingGoal(CreatureEntity p_i1648_1_, double p_i1648_2_)
-
RandomWalkingGoal
public RandomWalkingGoal(CreatureEntity p_i45887_1_, double p_i45887_2_, int p_i45887_4_)
-
RandomWalkingGoal
public RandomWalkingGoal(CreatureEntity p_i231550_1_, double p_i231550_2_, int p_i231550_4_, boolean p_i231550_5_)
-
-
Method Detail
-
getPosition
@Nullable protected Vector3d getPosition()
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUsein classGoal
-
trigger
public void trigger()
-
setInterval
public void setInterval(int p_179479_1_)
-
-