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 boolean
checkNoActionTime
protected boolean
forceTrigger
protected int
interval
protected CreatureEntity
mob
protected double
speedModifier
protected double
wantedX
protected double
wantedY
protected double
wantedZ
-
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 boolean
canContinueToUse()
boolean
canUse()
protected Vector3d
getPosition()
void
setInterval(int p_179479_1_)
void
start()
void
stop()
void
trigger()
-
-
-
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:
canContinueToUse
in classGoal
-
trigger
public void trigger()
-
setInterval
public void setInterval(int p_179479_1_)
-
-