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 bfeintermediary 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 final intprivate static final intprivate static final intprivate final booleanprivate final floatprivate final floatprivate final EntityNavigationprivate floatprivate LivingEntityprivate final doubleprivate final TameableEntityprivate 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
-
field_30205
public static final int field_30205- See Also:
- Mappings:
Namespace Name Mixin selector official aLbfe;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:
- Mappings:
Namespace Name Mixin selector official bLbfe;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 cLbfe;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 dLbfe;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 eLbfe;e:Lazu;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 fLbfe;f:Laza;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 gLbfe;g:Lcdl;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 hLbfe;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 jLbfe;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 kLbfe;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 lLbfe;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 mLbfe;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 nLbfe;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>Lbfe;<init>(Lazu;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 bLbfg;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 hLbfe;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 aLbfe;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 aLbfe;a(Lgk;)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 aLbfe;a(II)Iintermediary method_23342Lnet/minecraft/class_1350;method_23342(II)Inamed getRandomIntLnet/minecraft/entity/ai/goal/FollowOwnerGoal;getRandomInt(II)I
-