类 WanderAroundGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.WanderAroundGoal
-
- 直接已知子类:
IronGolemWanderAroundGoal,SilverfishEntity.WanderAndInfestGoal,SwimAroundGoal,TurtleEntity.WanderOnLandGoal,WanderAroundFarGoal,WanderAroundPointOfInterestGoal
public class WanderAroundGoal extends Goal
- Mappings:
Namespace Name official azmintermediary net/minecraft/class_1379named net/minecraft/entity/ai/goal/WanderAroundGoal
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.goal.Goal
Goal.Control
-
-
字段概要
字段 修饰符和类型 字段 说明 protected intchanceprivate booleanfield_24463static intfield_30226protected booleanignoringChanceprotected PathAwareEntitymobprotected doublespeedprotected doubletargetXprotected doubletargetYprotected doubletargetZ
-
构造器概要
构造器 构造器 说明 WanderAroundGoal(PathAwareEntity mob, double speed)WanderAroundGoal(PathAwareEntity mob, double speed, int chance)WanderAroundGoal(PathAwareEntity entity, double speed, int chance, boolean bool)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanStart()protected @Nullable Vec3dgetWanderTarget()voidignoreChanceOnce()voidsetChance(int chance)booleanshouldContinue()voidstart()voidstop()-
从类继承的方法 net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
-
-
-
字段详细资料
-
field_30226
public static final int field_30226
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLazm;a:Iintermediary field_30226Lnet/minecraft/class_1379;field_30226:Inamed field_30226Lnet/minecraft/entity/ai/goal/WanderAroundGoal;field_30226:I
-
mob
protected final PathAwareEntity mob
- Mappings:
Namespace Name Mixin selector official bLazm;b:Latg;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 cLazm;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 dLazm;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 eLazm;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 fLazm;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 gLazm;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 hLazm;h:Zintermediary field_6565Lnet/minecraft/class_1379;field_6565:Znamed ignoringChanceLnet/minecraft/entity/ai/goal/WanderAroundGoal;ignoringChance:Z
-
field_24463
private final boolean field_24463
- Mappings:
Namespace Name Mixin selector official iLazm;i:Zintermediary field_24463Lnet/minecraft/class_1379;field_24463:Znamed field_24463Lnet/minecraft/entity/ai/goal/WanderAroundGoal;field_24463:Z
-
-
构造器详细资料
-
WanderAroundGoal
public WanderAroundGoal(PathAwareEntity mob, double speed)
- Mappings:
Namespace Name Mixin selector official <init>Lazm;<init>(Latg;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
public WanderAroundGoal(PathAwareEntity mob, double speed, int chance)
- Mappings:
Namespace Name Mixin selector official <init>Lazm;<init>(Latg;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
public WanderAroundGoal(PathAwareEntity entity, double speed, int chance, boolean bool)
- Mappings:
Namespace Name Mixin selector official <init>Lazm;<init>(Latg;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
-
-
方法详细资料
-
canStart
public boolean canStart()
-
getWanderTarget
@Nullable protected @Nullable Vec3d getWanderTarget()
- Mappings:
Namespace Name Mixin selector official gLazm;g()Ldma;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()
- 覆盖:
shouldContinue在类中Goal- Mappings:
Namespace Name Mixin selector official bLayq;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 hLazm;h()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 aLazm;a(I)Vintermediary method_6303Lnet/minecraft/class_1379;method_6303(I)Vnamed setChanceLnet/minecraft/entity/ai/goal/WanderAroundGoal;setChance(I)V
-
-