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 bcs
intermediary net/minecraft/class_1350
named 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
Modifier and TypeFieldDescriptionstatic final int
private static final int
private static final int
private final boolean
private final float
private final float
private final EntityNavigation
private float
private LivingEntity
private final double
private final TameableEntity
private int
private static final int
private final WorldView
-
Constructor Summary
ConstructorDescriptionFollowOwnerGoal
(TameableEntity tameable, double speed, float minDistance, float maxDistance, boolean leavesAllowed) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
private boolean
canTeleportTo
(BlockPos pos) private int
getRandomInt
(int min, int max) boolean
void
start()
void
stop()
void
tick()
private void
private boolean
tryTeleportTo
(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 a
Lbcs;a:I
intermediary field_30205
Lnet/minecraft/class_1350;field_30205:I
named field_30205
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;field_30205:I
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbcs;b:I
intermediary field_30206
Lnet/minecraft/class_1350;field_30206:I
named HORIZONTAL_RANGE
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;HORIZONTAL_RANGE:I
-
HORIZONTAL_VARIATION
private static final int HORIZONTAL_VARIATION- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lbcs;c:I
intermediary field_30207
Lnet/minecraft/class_1350;field_30207:I
named HORIZONTAL_VARIATION
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;HORIZONTAL_VARIATION:I
-
VERTICAL_VARIATION
private static final int VERTICAL_VARIATION- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lbcs;d:I
intermediary field_30208
Lnet/minecraft/class_1350;field_30208:I
named VERTICAL_VARIATION
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;VERTICAL_VARIATION:I
-
tameable
- Mappings:
Namespace Name Mixin selector official e
Lbcs;e:Laxu;
intermediary field_6448
Lnet/minecraft/class_1350;field_6448:Lnet/minecraft/class_1321;
named tameable
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;tameable:Lnet/minecraft/entity/passive/TameableEntity;
-
owner
- Mappings:
Namespace Name Mixin selector official f
Lbcs;f:Laxa;
intermediary field_6444
Lnet/minecraft/class_1350;field_6444:Lnet/minecraft/class_1309;
named owner
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;owner:Lnet/minecraft/entity/LivingEntity;
-
world
- Mappings:
Namespace Name Mixin selector official g
Lbcs;g:Lbzz;
intermediary field_6445
Lnet/minecraft/class_1350;field_6445:Lnet/minecraft/class_4538;
named world
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;world:Lnet/minecraft/world/WorldView;
-
speed
private final double speed- Mappings:
Namespace Name Mixin selector official h
Lbcs;h:D
intermediary field_6442
Lnet/minecraft/class_1350;field_6442:D
named speed
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;speed:D
-
updateCountdownTicks
private int updateCountdownTicks- Mappings:
Namespace Name Mixin selector official j
Lbcs;j:I
intermediary field_6443
Lnet/minecraft/class_1350;field_6443:I
named updateCountdownTicks
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;updateCountdownTicks:I
-
maxDistance
private final float maxDistance- Mappings:
Namespace Name Mixin selector official k
Lbcs;k:F
intermediary field_6450
Lnet/minecraft/class_1350;field_6450:F
named maxDistance
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;maxDistance:F
-
minDistance
private final float minDistance- Mappings:
Namespace Name Mixin selector official l
Lbcs;l:F
intermediary field_6449
Lnet/minecraft/class_1350;field_6449:F
named minDistance
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;minDistance:F
-
oldWaterPathfindingPenalty
private float oldWaterPathfindingPenalty- Mappings:
Namespace Name Mixin selector official m
Lbcs;m:F
intermediary field_6447
Lnet/minecraft/class_1350;field_6447:F
named oldWaterPathfindingPenalty
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;oldWaterPathfindingPenalty:F
-
leavesAllowed
private final boolean leavesAllowed- Mappings:
Namespace Name Mixin selector official n
Lbcs;n:Z
intermediary field_21078
Lnet/minecraft/class_1350;field_21078:Z
named leavesAllowed
Lnet/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>
Lbcs;<init>(Laxu;DFFZ)V
intermediary <init>
Lnet/minecraft/class_1350;<init>(Lnet/minecraft/class_1321;DFFZ)V
named <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:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lbcu;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/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 g
Lbcs;g()V
intermediary method_23345
Lnet/minecraft/class_1350;method_23345()V
named tryTeleport
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;tryTeleport()V
-
tryTeleportTo
private boolean tryTeleportTo(int x, int y, int z) - Mappings:
Namespace Name Mixin selector official a
Lbcs;a(III)Z
intermediary method_23343
Lnet/minecraft/class_1350;method_23343(III)Z
named tryTeleportTo
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;tryTeleportTo(III)Z
-
canTeleportTo
- Mappings:
Namespace Name Mixin selector official a
Lbcs;a(Lgh;)Z
intermediary method_23344
Lnet/minecraft/class_1350;method_23344(Lnet/minecraft/class_2338;)Z
named canTeleportTo
Lnet/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 a
Lbcs;a(II)I
intermediary method_23342
Lnet/minecraft/class_1350;method_23342(II)I
named getRandomInt
Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;getRandomInt(II)I
-