Package net.minecraft.entity.ai.goal
Class GoToVillageGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.GoToVillageGoal
- Direct Known Subclasses:
FoxEntity.GoToVillageGoal
public class GoToVillageGoal extends Goal
- Mappings:
Namespace Name official aye
intermediary net/minecraft/class_4018
named net/minecraft/entity/ai/goal/GoToVillageGoal
-
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 PathAwareEntity
mob
private int
searchRange
private BlockPos
targetPosition
-
Constructor Summary
Constructors Constructor Description GoToVillageGoal(PathAwareEntity mob, int searchRange)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
private void
findOtherWaypoint()
boolean
shouldContinue()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, start, stop, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official a
Laye;a:Larq;
intermediary field_17944
Lnet/minecraft/class_4018;field_17944:Lnet/minecraft/class_1314;
named mob
Lnet/minecraft/entity/ai/goal/GoToVillageGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
searchRange
private final int searchRange- Mappings:
Namespace Name Mixin selector official b
Laye;b:I
intermediary field_17945
Lnet/minecraft/class_4018;field_17945:I
named searchRange
Lnet/minecraft/entity/ai/goal/GoToVillageGoal;searchRange:I
-
targetPosition
- Mappings:
Namespace Name Mixin selector official c
Laye;c:Lfx;
intermediary field_17947
Lnet/minecraft/class_4018;field_17947:Lnet/minecraft/class_2338;
named targetPosition
Lnet/minecraft/entity/ai/goal/GoToVillageGoal;targetPosition:Lnet/minecraft/util/math/BlockPos;
-
-
Constructor Details
-
GoToVillageGoal
- Mappings:
Namespace Name Mixin selector official <init>
Laye;<init>(Larq;I)V
intermediary <init>
Lnet/minecraft/class_4018;<init>(Lnet/minecraft/class_1314;I)V
named <init>
Lnet/minecraft/entity/ai/goal/GoToVillageGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;I)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
-
tick
public void tick() -
findOtherWaypoint
private void findOtherWaypoint()- Mappings:
Namespace Name Mixin selector official g
Laye;g()V
intermediary method_18252
Lnet/minecraft/class_4018;method_18252()V
named findOtherWaypoint
Lnet/minecraft/entity/ai/goal/GoToVillageGoal;findOtherWaypoint()V
-