Package net.minecraft.entity.ai.goal
Class NonTamedTargetGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TargetGoal
net.minecraft.entity.ai.goal.NearestAttackableTargetGoal<T>
net.minecraft.entity.ai.goal.NonTamedTargetGoal<T>
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetType
Fields inherited from class net.minecraft.entity.ai.goal.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
Constructor Summary
ConstructorDescriptionNonTamedTargetGoal
(TameableEntity p_i48571_1_, Class<T> p_i48571_2_, boolean p_i48571_3_, Predicate<LivingEntity> p_i48571_4_) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget, start
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, getFollowDistance, setUnseenMemoryTicks, stop
-
Field Details
-
tamableMob
-
-
Constructor Details
-
NonTamedTargetGoal
public NonTamedTargetGoal(TameableEntity p_i48571_1_, Class<T> p_i48571_2_, boolean p_i48571_3_, @Nullable Predicate<LivingEntity> p_i48571_4_)
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUse
in classNearestAttackableTargetGoal<T extends LivingEntity>
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classTargetGoal
-