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 official bnqintermediary net/minecraft/class_1379named net/minecraft/entity/ai/goal/WanderAroundGoal
-
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 official aLbnq;a:Iintermediary field_30226Lnet/minecraft/class_1379;field_30226:Inamed DEFAULT_CHANCELnet/minecraft/entity/ai/goal/WanderAroundGoal;DEFAULT_CHANCE:I
-
mob
- Mappings:
Namespace Name Mixin selector official bLbnq;b:Lbgg;intermediary field_6566Lnet/minecraft/class_1379;field_6566:Lnet/minecraft/class_1314;named mobLnet/minecraft/entity/ai/goal/WanderAroundGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
targetX
protected double targetX- Mappings:
Namespace Name Mixin selector official cLbnq;c:Dintermediary field_6563Lnet/minecraft/class_1379;field_6563:Dnamed targetXLnet/minecraft/entity/ai/goal/WanderAroundGoal;targetX:D
-
targetY
protected double targetY- Mappings:
Namespace Name Mixin selector official dLbnq;d:Dintermediary field_6562Lnet/minecraft/class_1379;field_6562:Dnamed targetYLnet/minecraft/entity/ai/goal/WanderAroundGoal;targetY:D
-
targetZ
protected double targetZ- Mappings:
Namespace Name Mixin selector official eLbnq;e:Dintermediary field_6561Lnet/minecraft/class_1379;field_6561:Dnamed targetZLnet/minecraft/entity/ai/goal/WanderAroundGoal;targetZ:D
-
speed
protected final double speed- Mappings:
Namespace Name Mixin selector official fLbnq;f:Dintermediary field_6567Lnet/minecraft/class_1379;field_6567:Dnamed speedLnet/minecraft/entity/ai/goal/WanderAroundGoal;speed:D
-
chance
protected int chance- Mappings:
Namespace Name Mixin selector official gLbnq;g:Iintermediary field_6564Lnet/minecraft/class_1379;field_6564:Inamed chanceLnet/minecraft/entity/ai/goal/WanderAroundGoal;chance:I
-
ignoringChance
protected boolean ignoringChance- Mappings:
Namespace Name Mixin selector official hLbnq;h:Zintermediary field_6565Lnet/minecraft/class_1379;field_6565:Znamed ignoringChanceLnet/minecraft/entity/ai/goal/WanderAroundGoal;ignoringChance:Z
-
canDespawn
private final boolean canDespawn- Mappings:
Namespace Name Mixin selector official iLbnq;i:Zintermediary field_24463Lnet/minecraft/class_1379;field_24463:Znamed canDespawnLnet/minecraft/entity/ai/goal/WanderAroundGoal;canDespawn:Z
-
-
Constructor Details
-
WanderAroundGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbnq;<init>(Lbgg;D)Vintermediary <init>Lnet/minecraft/class_1379;<init>(Lnet/minecraft/class_1314;D)Vnamed <init>Lnet/minecraft/entity/ai/goal/WanderAroundGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;D)V
-
WanderAroundGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbnq;<init>(Lbgg;DI)Vintermediary <init>Lnet/minecraft/class_1379;<init>(Lnet/minecraft/class_1314;DI)Vnamed <init>Lnet/minecraft/entity/ai/goal/WanderAroundGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DI)V
-
WanderAroundGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbnq;<init>(Lbgg;DIZ)Vintermediary <init>Lnet/minecraft/class_1379;<init>(Lnet/minecraft/class_1314;DIZ)Vnamed <init>Lnet/minecraft/entity/ai/goal/WanderAroundGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DIZ)V
-
-
Method Details
-
canStart
public boolean canStart() -
getWanderTarget
- Mappings:
Namespace Name Mixin selector official hLbnq;h()Leea;intermediary method_6302Lnet/minecraft/class_1379;method_6302()Lnet/minecraft/class_243;named getWanderTargetLnet/minecraft/entity/ai/goal/WanderAroundGoal;getWanderTarget()Lnet/minecraft/util/math/Vec3d;
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector official bLbmt;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start() -
stop
public void stop() -
ignoreChanceOnce
public void ignoreChanceOnce()- Mappings:
Namespace Name Mixin selector official iLbnq;i()Vintermediary method_6304Lnet/minecraft/class_1379;method_6304()Vnamed ignoreChanceOnceLnet/minecraft/entity/ai/goal/WanderAroundGoal;ignoreChanceOnce()V
-
setChance
public void setChance(int chance) - Mappings:
Namespace Name Mixin selector official cLbnq;c(I)Vintermediary method_6303Lnet/minecraft/class_1379;method_6303(I)Vnamed setChanceLnet/minecraft/entity/ai/goal/WanderAroundGoal;setChance(I)V
-