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>
-
public class NonTamedTargetGoal<T extends LivingEntity> extends NearestAttackableTargetGoal<T>
-
-
Field Summary
Fields Modifier and Type Field Description private TameableEntity
tamableMob
-
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
Constructors Constructor Description NonTamedTargetGoal(TameableEntity p_i48571_1_, java.lang.Class<T> p_i48571_2_, boolean p_i48571_3_, java.util.function.Predicate<LivingEntity> p_i48571_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
-
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 Detail
-
tamableMob
private final TameableEntity tamableMob
-
-
Constructor Detail
-
NonTamedTargetGoal
public NonTamedTargetGoal(TameableEntity p_i48571_1_, java.lang.Class<T> p_i48571_2_, boolean p_i48571_3_, @Nullable java.util.function.Predicate<LivingEntity> p_i48571_4_)
-
-
Method Detail
-
canUse
public boolean canUse()
- Overrides:
canUse
in classNearestAttackableTargetGoal<T extends LivingEntity>
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classTargetGoal
-
-