Package net.minecraft.entity.ai.goal
Class UntamedActiveTargetGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.ActiveTargetGoal<T>
net.minecraft.entity.ai.goal.UntamedActiveTargetGoal<T>
An active target goal that only starts for untamed tameable animals.
In addition, the continue condition for maintaining the target uses the
target predicate than that of the standard track target goal.
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/UntamedActiveTargetGoal
intermediary net/minecraft/class_1404
official cez
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.ActiveTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicate
Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target
-
Constructor Summary
ConstructorDescriptionUntamedActiveTargetGoal
(TameableEntity tameable, Class<T> targetClass, boolean checkVisibility, TargetPredicate.EntityPredicate targetPredicate) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.ActiveTargetGoal
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, castToServerWorld, getControls, getServerWorld, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString
-
Field Details
-
tameable
- Mappings:
Namespace Name Mixin selector named tameable
Lnet/minecraft/entity/ai/goal/UntamedActiveTargetGoal;tameable:Lnet/minecraft/entity/passive/TameableEntity;
intermediary field_6656
Lnet/minecraft/class_1404;field_6656:Lnet/minecraft/class_1321;
official i
Lcez;i:Lbxc;
-
-
Constructor Details
-
UntamedActiveTargetGoal
public UntamedActiveTargetGoal(TameableEntity tameable, Class<T> targetClass, boolean checkVisibility, @Nullable TargetPredicate.EntityPredicate targetPredicate) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/UntamedActiveTargetGoal;<init>(Lnet/minecraft/entity/passive/TameableEntity;Ljava/lang/Class;ZLnet/minecraft/entity/ai/TargetPredicate$EntityPredicate;)V
intermediary <init>
Lnet/minecraft/class_1404;<init>(Lnet/minecraft/class_1321;Ljava/lang/Class;ZLnet/minecraft/class_4051$class_10254;)V
official <init>
Lcez;<init>(Lbxc;Ljava/lang/Class;ZLcgw$a;)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classActiveTargetGoal<T extends LivingEntity>
- Mappings:
Namespace Name Mixin selector named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
official b
Lcdd;b()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classTrackTargetGoal
- Mappings:
Namespace Name Mixin selector named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
official c
Lcdd;c()Z
-