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
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/WanderAroundGoalintermediary net/minecraft/class_1379official cbj
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprotected intstatic final intprotected booleanprotected final PathAwareEntityprotected final doubleprotected doubleprotected doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionWanderAroundGoal(PathAwareEntity mob, double speed) WanderAroundGoal(PathAwareEntity mob, double speed, int chance) WanderAroundGoal(PathAwareEntity entity, double speed, int chance, boolean canDespawn) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString
-
Field Details
-
DEFAULT_CHANCE
public static final int DEFAULT_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_CHANCELnet/minecraft/entity/ai/goal/WanderAroundGoal;DEFAULT_CHANCE:Iintermediary field_30226Lnet/minecraft/class_1379;field_30226:Iofficial aLcbj;a:I
-
mob
- Mappings:
Namespace Name Mixin selector named mobLnet/minecraft/entity/ai/goal/WanderAroundGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;intermediary field_6566Lnet/minecraft/class_1379;field_6566:Lnet/minecraft/class_1314;official bLcbj;b:Lbtw;
-
targetX
protected double targetX- Mappings:
Namespace Name Mixin selector named targetXLnet/minecraft/entity/ai/goal/WanderAroundGoal;targetX:Dintermediary field_6563Lnet/minecraft/class_1379;field_6563:Dofficial cLcbj;c:D
-
targetY
protected double targetY- Mappings:
Namespace Name Mixin selector named targetYLnet/minecraft/entity/ai/goal/WanderAroundGoal;targetY:Dintermediary field_6562Lnet/minecraft/class_1379;field_6562:Dofficial dLcbj;d:D
-
targetZ
protected double targetZ- Mappings:
Namespace Name Mixin selector named targetZLnet/minecraft/entity/ai/goal/WanderAroundGoal;targetZ:Dintermediary field_6561Lnet/minecraft/class_1379;field_6561:Dofficial eLcbj;e:D
-
speed
protected final double speed- Mappings:
Namespace Name Mixin selector named speedLnet/minecraft/entity/ai/goal/WanderAroundGoal;speed:Dintermediary field_6567Lnet/minecraft/class_1379;field_6567:Dofficial fLcbj;f:D
-
chance
protected int chance- Mappings:
Namespace Name Mixin selector named chanceLnet/minecraft/entity/ai/goal/WanderAroundGoal;chance:Iintermediary field_6564Lnet/minecraft/class_1379;field_6564:Iofficial gLcbj;g:I
-
ignoringChance
protected boolean ignoringChance- Mappings:
Namespace Name Mixin selector named ignoringChanceLnet/minecraft/entity/ai/goal/WanderAroundGoal;ignoringChance:Zintermediary field_6565Lnet/minecraft/class_1379;field_6565:Zofficial hLcbj;h:Z
-
canDespawn
private final boolean canDespawn- Mappings:
Namespace Name Mixin selector named canDespawnLnet/minecraft/entity/ai/goal/WanderAroundGoal;canDespawn:Zintermediary field_24463Lnet/minecraft/class_1379;field_24463:Zofficial iLcbj;i:Z
-
-
Constructor Details
-
WanderAroundGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/WanderAroundGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;D)Vintermediary <init>Lnet/minecraft/class_1379;<init>(Lnet/minecraft/class_1314;D)Vofficial <init>Lcbj;<init>(Lbtw;D)V
-
WanderAroundGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/WanderAroundGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DI)Vintermediary <init>Lnet/minecraft/class_1379;<init>(Lnet/minecraft/class_1314;DI)Vofficial <init>Lcbj;<init>(Lbtw;DI)V
-
WanderAroundGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/WanderAroundGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DIZ)Vintermediary <init>Lnet/minecraft/class_1379;<init>(Lnet/minecraft/class_1314;DIZ)Vofficial <init>Lcbj;<init>(Lbtw;DIZ)V
-
-
Method Details
-
canStart
public boolean canStart() -
getWanderTarget
- Mappings:
Namespace Name Mixin selector named getWanderTargetLnet/minecraft/entity/ai/goal/WanderAroundGoal;getWanderTarget()Lnet/minecraft/util/math/Vec3d;intermediary method_6302Lnet/minecraft/class_1379;method_6302()Lnet/minecraft/class_243;official hLcbj;h()Lexc;
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector named shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial cLcam;c()Z
-
start
public void start() -
stop
public void stop() -
ignoreChanceOnce
public void ignoreChanceOnce()- Mappings:
Namespace Name Mixin selector named ignoreChanceOnceLnet/minecraft/entity/ai/goal/WanderAroundGoal;ignoreChanceOnce()Vintermediary method_6304Lnet/minecraft/class_1379;method_6304()Vofficial iLcbj;i()V
-
setChance
public void setChance(int chance) - Mappings:
Namespace Name Mixin selector named setChanceLnet/minecraft/entity/ai/goal/WanderAroundGoal;setChance(I)Vintermediary method_6303Lnet/minecraft/class_1379;method_6303(I)Vofficial cLcbj;c(I)V
-