Package net.minecraft.entity.ai.goal
Class FollowTargetIfTamedGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.FollowTargetGoal<T>
net.minecraft.entity.ai.goal.FollowTargetIfTamedGoal<T>
public class FollowTargetIfTamedGoal<T extends LivingEntity> extends FollowTargetGoal<T>
- Mappings:
Namespace Name official ayv
intermediary net/minecraft/class_1404
named net/minecraft/entity/ai/goal/FollowTargetIfTamedGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private TameableEntity
tameable
Fields inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicate
Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target
-
Constructor Summary
Constructors Constructor Description FollowTargetIfTamedGoal(TameableEntity tameable, Class<T> targetClass, boolean checkVisibility, Predicate<LivingEntity> targetPredicate)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
Methods inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
findClosestTarget, getSearchBox, setTargetEntity, start
Methods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, setMaxTimeWithoutVisibility, stop
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
tameable
- Mappings:
Namespace Name Mixin selector official i
Layv;i:Lasb;
intermediary field_6656
Lnet/minecraft/class_1404;field_6656:Lnet/minecraft/class_1321;
named tameable
Lnet/minecraft/entity/ai/goal/FollowTargetIfTamedGoal;tameable:Lnet/minecraft/entity/passive/TameableEntity;
-
-
Constructor Details
-
FollowTargetIfTamedGoal
public FollowTargetIfTamedGoal(TameableEntity tameable, Class<T> targetClass, boolean checkVisibility, @Nullable Predicate<LivingEntity> targetPredicate)- Mappings:
Namespace Name Mixin selector official <init>
Layv;<init>(Lasb;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_1404;<init>(Lnet/minecraft/class_1321;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/ai/goal/FollowTargetIfTamedGoal;<init>(Lnet/minecraft/entity/passive/TameableEntity;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classFollowTargetGoal<T extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lawx;a()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classTrackTargetGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-