Package net.minecraft.entity.ai.goal
Class MoveThroughVillageGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveThroughVillageGoal
public class MoveThroughVillageGoal extends Goal
- Mappings:
Namespace Name official axk
intermediary net/minecraft/class_1368
named net/minecraft/entity/ai/goal/MoveThroughVillageGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private int
distance
private BooleanSupplier
doorPassingThroughGetter
protected PathAwareEntity
mob
private boolean
requiresNighttime
private double
speed
private BlockPos
target
private Path
targetPath
private List<BlockPos>
visitedTargets
-
Constructor Summary
Constructors Constructor Description MoveThroughVillageGoal(PathAwareEntity entity, double speed, boolean requiresNighttime, int distance, BooleanSupplier doorPassingThroughGetter)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
private void
forgetOldTarget()
boolean
shouldContinue()
private boolean
shouldVisit(BlockPos pos)
void
start()
void
stop()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official a
Laxk;a:Larq;
intermediary field_6525
Lnet/minecraft/class_1368;field_6525:Lnet/minecraft/class_1314;
named mob
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector official b
Laxk;b:D
intermediary field_6520
Lnet/minecraft/class_1368;field_6520:D
named speed
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;speed:D
-
targetPath
- Mappings:
Namespace Name Mixin selector official c
Laxk;c:Ldct;
intermediary field_6523
Lnet/minecraft/class_1368;field_6523:Lnet/minecraft/class_11;
named targetPath
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;targetPath:Lnet/minecraft/entity/ai/pathing/Path;
-
target
- Mappings:
Namespace Name Mixin selector official d
Laxk;d:Lfx;
intermediary field_18412
Lnet/minecraft/class_1368;field_18412:Lnet/minecraft/class_2338;
named target
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;target:Lnet/minecraft/util/math/BlockPos;
-
requiresNighttime
private final boolean requiresNighttime- Mappings:
Namespace Name Mixin selector official e
Laxk;e:Z
intermediary field_6524
Lnet/minecraft/class_1368;field_6524:Z
named requiresNighttime
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;requiresNighttime:Z
-
visitedTargets
- Mappings:
Namespace Name Mixin selector official f
Laxk;f:Ljava/util/List;
intermediary field_18413
Lnet/minecraft/class_1368;field_18413:Ljava/util/List;
named visitedTargets
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;visitedTargets:Ljava/util/List;
-
distance
private final int distance- Mappings:
Namespace Name Mixin selector official g
Laxk;g:I
intermediary field_18414
Lnet/minecraft/class_1368;field_18414:I
named distance
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;distance:I
-
doorPassingThroughGetter
- Mappings:
Namespace Name Mixin selector official h
Laxk;h:Ljava/util/function/BooleanSupplier;
intermediary field_18415
Lnet/minecraft/class_1368;field_18415:Ljava/util/function/BooleanSupplier;
named doorPassingThroughGetter
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;doorPassingThroughGetter:Ljava/util/function/BooleanSupplier;
-
-
Constructor Details
-
MoveThroughVillageGoal
public MoveThroughVillageGoal(PathAwareEntity entity, double speed, boolean requiresNighttime, int distance, BooleanSupplier doorPassingThroughGetter)- Mappings:
Namespace Name Mixin selector official <init>
Laxk;<init>(Larq;DZILjava/util/function/BooleanSupplier;)V
intermediary <init>
Lnet/minecraft/class_1368;<init>(Lnet/minecraft/class_1314;DZILjava/util/function/BooleanSupplier;)V
named <init>
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DZILjava/util/function/BooleanSupplier;)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start() -
stop
public void stop() -
shouldVisit
- Mappings:
Namespace Name Mixin selector official a
Laxk;a(Lfx;)Z
intermediary method_19052
Lnet/minecraft/class_1368;method_19052(Lnet/minecraft/class_2338;)Z
named shouldVisit
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;shouldVisit(Lnet/minecraft/util/math/BlockPos;)Z
-
forgetOldTarget
private void forgetOldTarget()- Mappings:
Namespace Name Mixin selector official g
Laxk;g()V
intermediary method_6297
Lnet/minecraft/class_1368;method_6297()V
named forgetOldTarget
Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;forgetOldTarget()V
-