Package net.minecraft.entity.ai.goal
Class FollowOwnerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FollowOwnerGoal
- Mappings:
Namespace Name official bmrintermediary net/minecraft/class_1350named net/minecraft/entity/ai/goal/FollowOwnerGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final booleanprivate final floatprivate final floatprivate final EntityNavigationprivate floatprivate LivingEntityprivate final doubleprivate final TameableEntitystatic final intprivate intprivate static final intprivate final WorldView -
Constructor Summary
ConstructorsConstructorDescriptionFollowOwnerGoal(TameableEntity tameable, double speed, float minDistance, float maxDistance, boolean leavesAllowed) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanbooleancanStart()private booleancanTeleportTo(BlockPos pos) private intgetRandomInt(int min, int max) booleanvoidstart()voidstop()voidtick()private voidprivate booleantryTeleportTo(int x, int y, int z) Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, toGoalTicks, toString
-
Field Details
-
TELEPORT_DISTANCE
public static final int TELEPORT_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector official aLbmr;a:Iintermediary field_30205Lnet/minecraft/class_1350;field_30205:Inamed TELEPORT_DISTANCELnet/minecraft/entity/ai/goal/FollowOwnerGoal;TELEPORT_DISTANCE:I
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official bLbmr;b:Iintermediary field_30206Lnet/minecraft/class_1350;field_30206:Inamed HORIZONTAL_RANGELnet/minecraft/entity/ai/goal/FollowOwnerGoal;HORIZONTAL_RANGE:I
-
HORIZONTAL_VARIATION
private static final int HORIZONTAL_VARIATION- See Also:
- Mappings:
Namespace Name Mixin selector official cLbmr;c:Iintermediary field_30207Lnet/minecraft/class_1350;field_30207:Inamed HORIZONTAL_VARIATIONLnet/minecraft/entity/ai/goal/FollowOwnerGoal;HORIZONTAL_VARIATION:I
-
VERTICAL_VARIATION
private static final int VERTICAL_VARIATION- See Also:
- Mappings:
Namespace Name Mixin selector official dLbmr;d:Iintermediary field_30208Lnet/minecraft/class_1350;field_30208:Inamed VERTICAL_VARIATIONLnet/minecraft/entity/ai/goal/FollowOwnerGoal;VERTICAL_VARIATION:I
-
tameable
- Mappings:
Namespace Name Mixin selector official eLbmr;e:Lbgt;intermediary field_6448Lnet/minecraft/class_1350;field_6448:Lnet/minecraft/class_1321;named tameableLnet/minecraft/entity/ai/goal/FollowOwnerGoal;tameable:Lnet/minecraft/entity/passive/TameableEntity;
-
owner
- Mappings:
Namespace Name Mixin selector official fLbmr;f:Lbfx;intermediary field_6444Lnet/minecraft/class_1350;field_6444:Lnet/minecraft/class_1309;named ownerLnet/minecraft/entity/ai/goal/FollowOwnerGoal;owner:Lnet/minecraft/entity/LivingEntity;
-
world
- Mappings:
Namespace Name Mixin selector official gLbmr;g:Lcmn;intermediary field_6445Lnet/minecraft/class_1350;field_6445:Lnet/minecraft/class_4538;named worldLnet/minecraft/entity/ai/goal/FollowOwnerGoal;world:Lnet/minecraft/world/WorldView;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector official hLbmr;h:Dintermediary field_6442Lnet/minecraft/class_1350;field_6442:Dnamed speedLnet/minecraft/entity/ai/goal/FollowOwnerGoal;speed:D
-
updateCountdownTicks
private int updateCountdownTicks- Mappings:
Namespace Name Mixin selector official jLbmr;j:Iintermediary field_6443Lnet/minecraft/class_1350;field_6443:Inamed updateCountdownTicksLnet/minecraft/entity/ai/goal/FollowOwnerGoal;updateCountdownTicks:I
-
maxDistance
private final float maxDistance- Mappings:
Namespace Name Mixin selector official kLbmr;k:Fintermediary field_6450Lnet/minecraft/class_1350;field_6450:Fnamed maxDistanceLnet/minecraft/entity/ai/goal/FollowOwnerGoal;maxDistance:F
-
minDistance
private final float minDistance- Mappings:
Namespace Name Mixin selector official lLbmr;l:Fintermediary field_6449Lnet/minecraft/class_1350;field_6449:Fnamed minDistanceLnet/minecraft/entity/ai/goal/FollowOwnerGoal;minDistance:F
-
oldWaterPathfindingPenalty
private float oldWaterPathfindingPenalty- Mappings:
Namespace Name Mixin selector official mLbmr;m:Fintermediary field_6447Lnet/minecraft/class_1350;field_6447:Fnamed oldWaterPathfindingPenaltyLnet/minecraft/entity/ai/goal/FollowOwnerGoal;oldWaterPathfindingPenalty:F
-
leavesAllowed
private final boolean leavesAllowed- Mappings:
Namespace Name Mixin selector official nLbmr;n:Zintermediary field_21078Lnet/minecraft/class_1350;field_21078:Znamed leavesAllowedLnet/minecraft/entity/ai/goal/FollowOwnerGoal;leavesAllowed:Z
-
-
Constructor Details
-
FollowOwnerGoal
public FollowOwnerGoal(TameableEntity tameable, double speed, float minDistance, float maxDistance, boolean leavesAllowed) - Mappings:
Namespace Name Mixin selector official <init>Lbmr;<init>(Lbgt;DFFZ)Vintermediary <init>Lnet/minecraft/class_1350;<init>(Lnet/minecraft/class_1321;DFFZ)Vnamed <init>Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;<init>(Lnet/minecraft/entity/passive/TameableEntity;DFFZ)V
-
-
Method Details
-
canStart
public boolean canStart() -
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
-
cannotFollow
private boolean cannotFollow()- Mappings:
Namespace Name Mixin selector official hLbmr;h()Zintermediary method_49121Lnet/minecraft/class_1350;method_49121()Znamed cannotFollowLnet/minecraft/entity/ai/goal/FollowOwnerGoal;cannotFollow()Z
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
tryTeleport
private void tryTeleport()- Mappings:
Namespace Name Mixin selector official iLbmr;i()Vintermediary method_23345Lnet/minecraft/class_1350;method_23345()Vnamed tryTeleportLnet/minecraft/entity/ai/goal/FollowOwnerGoal;tryTeleport()V
-
tryTeleportTo
private boolean tryTeleportTo(int x, int y, int z) - Mappings:
Namespace Name Mixin selector official aLbmr;a(III)Zintermediary method_23343Lnet/minecraft/class_1350;method_23343(III)Znamed tryTeleportToLnet/minecraft/entity/ai/goal/FollowOwnerGoal;tryTeleportTo(III)Z
-
canTeleportTo
- Mappings:
Namespace Name Mixin selector official aLbmr;a(Lgu;)Zintermediary method_23344Lnet/minecraft/class_1350;method_23344(Lnet/minecraft/class_2338;)Znamed canTeleportToLnet/minecraft/entity/ai/goal/FollowOwnerGoal;canTeleportTo(Lnet/minecraft/util/math/BlockPos;)Z
-
getRandomInt
private int getRandomInt(int min, int max) - Mappings:
Namespace Name Mixin selector official aLbmr;a(II)Iintermediary method_23342Lnet/minecraft/class_1350;method_23342(II)Inamed getRandomIntLnet/minecraft/entity/ai/goal/FollowOwnerGoal;getRandomInt(II)I
-