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 named net/minecraft/entity/ai/goal/FollowOwnerGoalintermediary net/minecraft/class_1350official bzu
-
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 named TELEPORT_DISTANCELnet/minecraft/entity/ai/goal/FollowOwnerGoal;TELEPORT_DISTANCE:Iintermediary field_30205Lnet/minecraft/class_1350;field_30205:Iofficial aLbzu;a:I
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named HORIZONTAL_RANGELnet/minecraft/entity/ai/goal/FollowOwnerGoal;HORIZONTAL_RANGE:Iintermediary field_30206Lnet/minecraft/class_1350;field_30206:Iofficial bLbzu;b:I
-
HORIZONTAL_VARIATION
private static final int HORIZONTAL_VARIATION- See Also:
- Mappings:
Namespace Name Mixin selector named HORIZONTAL_VARIATIONLnet/minecraft/entity/ai/goal/FollowOwnerGoal;HORIZONTAL_VARIATION:Iintermediary field_30207Lnet/minecraft/class_1350;field_30207:Iofficial cLbzu;c:I
-
VERTICAL_VARIATION
private static final int VERTICAL_VARIATION- See Also:
- Mappings:
Namespace Name Mixin selector named VERTICAL_VARIATIONLnet/minecraft/entity/ai/goal/FollowOwnerGoal;VERTICAL_VARIATION:Iintermediary field_30208Lnet/minecraft/class_1350;field_30208:Iofficial dLbzu;d:I
-
tameable
- Mappings:
Namespace Name Mixin selector named tameableLnet/minecraft/entity/ai/goal/FollowOwnerGoal;tameable:Lnet/minecraft/entity/passive/TameableEntity;intermediary field_6448Lnet/minecraft/class_1350;field_6448:Lnet/minecraft/class_1321;official eLbzu;e:Lbtv;
-
owner
- Mappings:
Namespace Name Mixin selector named ownerLnet/minecraft/entity/ai/goal/FollowOwnerGoal;owner:Lnet/minecraft/entity/LivingEntity;intermediary field_6444Lnet/minecraft/class_1350;field_6444:Lnet/minecraft/class_1309;official fLbzu;f:Lbsy;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/entity/ai/goal/FollowOwnerGoal;world:Lnet/minecraft/world/WorldView;intermediary field_6445Lnet/minecraft/class_1350;field_6445:Lnet/minecraft/class_4538;official gLbzu;g:Ldcg;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector named speedLnet/minecraft/entity/ai/goal/FollowOwnerGoal;speed:Dintermediary field_6442Lnet/minecraft/class_1350;field_6442:Dofficial hLbzu;h:D
-
updateCountdownTicks
private int updateCountdownTicks- Mappings:
Namespace Name Mixin selector named updateCountdownTicksLnet/minecraft/entity/ai/goal/FollowOwnerGoal;updateCountdownTicks:Iintermediary field_6443Lnet/minecraft/class_1350;field_6443:Iofficial jLbzu;j:I
-
maxDistance
private final float maxDistance- Mappings:
Namespace Name Mixin selector named maxDistanceLnet/minecraft/entity/ai/goal/FollowOwnerGoal;maxDistance:Fintermediary field_6450Lnet/minecraft/class_1350;field_6450:Fofficial kLbzu;k:F
-
minDistance
private final float minDistance- Mappings:
Namespace Name Mixin selector named minDistanceLnet/minecraft/entity/ai/goal/FollowOwnerGoal;minDistance:Fintermediary field_6449Lnet/minecraft/class_1350;field_6449:Fofficial lLbzu;l:F
-
oldWaterPathfindingPenalty
private float oldWaterPathfindingPenalty- Mappings:
Namespace Name Mixin selector named oldWaterPathfindingPenaltyLnet/minecraft/entity/ai/goal/FollowOwnerGoal;oldWaterPathfindingPenalty:Fintermediary field_6447Lnet/minecraft/class_1350;field_6447:Fofficial mLbzu;m:F
-
leavesAllowed
private final boolean leavesAllowed- Mappings:
Namespace Name Mixin selector named leavesAllowedLnet/minecraft/entity/ai/goal/FollowOwnerGoal;leavesAllowed:Zintermediary field_21078Lnet/minecraft/class_1350;field_21078:Zofficial nLbzu;n:Z
-
-
Constructor Details
-
FollowOwnerGoal
public FollowOwnerGoal(TameableEntity tameable, double speed, float minDistance, float maxDistance, boolean leavesAllowed) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;<init>(Lnet/minecraft/entity/passive/TameableEntity;DFFZ)Vintermediary <init>Lnet/minecraft/class_1350;<init>(Lnet/minecraft/class_1321;DFFZ)Vofficial <init>Lbzu;<init>(Lbtv;DFFZ)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector named shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial bLbzw;b()Z
-
cannotFollow
private boolean cannotFollow()- Mappings:
Namespace Name Mixin selector named cannotFollowLnet/minecraft/entity/ai/goal/FollowOwnerGoal;cannotFollow()Zintermediary method_49121Lnet/minecraft/class_1350;method_49121()Zofficial hLbzu;h()Z
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
tryTeleport
private void tryTeleport()- Mappings:
Namespace Name Mixin selector named tryTeleportLnet/minecraft/entity/ai/goal/FollowOwnerGoal;tryTeleport()Vintermediary method_23345Lnet/minecraft/class_1350;method_23345()Vofficial iLbzu;i()V
-
tryTeleportTo
private boolean tryTeleportTo(int x, int y, int z) - Mappings:
Namespace Name Mixin selector named tryTeleportToLnet/minecraft/entity/ai/goal/FollowOwnerGoal;tryTeleportTo(III)Zintermediary method_23343Lnet/minecraft/class_1350;method_23343(III)Zofficial aLbzu;a(III)Z
-
canTeleportTo
- Mappings:
Namespace Name Mixin selector named canTeleportToLnet/minecraft/entity/ai/goal/FollowOwnerGoal;canTeleportTo(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_23344Lnet/minecraft/class_1350;method_23344(Lnet/minecraft/class_2338;)Zofficial aLbzu;a(Lja;)Z
-
getRandomInt
private int getRandomInt(int min, int max) - Mappings:
Namespace Name Mixin selector named getRandomIntLnet/minecraft/entity/ai/goal/FollowOwnerGoal;getRandomInt(II)Iintermediary method_23342Lnet/minecraft/class_1350;method_23342(II)Iofficial aLbzu;a(II)I
-