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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
protected boolean
protected int
protected final CreatureEntity
protected final double
protected double
protected double
protected double
-
Constructor Summary
ConstructorDescriptionRandomWalkingGoal
(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
-
Field Details
-
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 Details
-
RandomWalkingGoal
-
RandomWalkingGoal
-
RandomWalkingGoal
public RandomWalkingGoal(CreatureEntity p_i231550_1_, double p_i231550_2_, int p_i231550_4_, boolean p_i231550_5_)
-
-
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_179479_1_)
-