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 azmintermediary 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 TypeFieldDescriptionstatic intprivate static intprivate static intprivate booleanprivate floatprivate floatprivate EntityNavigationprivate floatprivate LivingEntityprivate doubleprivate TameableEntityprivate intprivate static intprivate 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, setControls, toString
-
Field Details
-
field_30205
public static final int field_30205- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLazm;a:Iintermediary field_30205Lnet/minecraft/class_1350;field_30205:Inamed field_30205Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;field_30205:I
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bLazm;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:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cLazm;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:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official dLazm;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 eLazm;e:Laun;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 fLazm;f:Latt;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 gLazm;g:Lbws;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 hLazm;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 jLazm;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 kLazm;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 lLazm;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 mLazm;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 nLazm;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>Lazm;<init>(Laun;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 bLazo;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 gLazm;g()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 aLazm;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 aLazm;a(Lgg;)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 aLazm;a(II)Iintermediary method_23342Lnet/minecraft/class_1350;method_23342(II)Inamed getRandomIntLnet/minecraft/entity/ai/goal/FollowOwnerGoal;getRandomInt(II)I
-