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 bkwintermediary 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 TypeMethodDescriptionbooleancanStart()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 aLbkw;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 bLbkw;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 cLbkw;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 dLbkw;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 eLbkw;e:Lbfb;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 fLbkw;f:Lbeg;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 gLbkw;g:Lcjz;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 hLbkw;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 jLbkw;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 kLbkw;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 lLbkw;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 mLbkw;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 nLbkw;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>Lbkw;<init>(Lbfb;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 bLbky;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() -
tick
public void tick() -
tryTeleport
private void tryTeleport()- Mappings:
Namespace Name Mixin selector official hLbkw;h()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 aLbkw;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 aLbkw;a(Lgp;)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 aLbkw;a(II)Iintermediary method_23342Lnet/minecraft/class_1350;method_23342(II)Inamed getRandomIntLnet/minecraft/entity/ai/goal/FollowOwnerGoal;getRandomInt(II)I
-