Class NonTameRandomTargetGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T>
net.minecraft.world.entity.ai.goal.target.NonTameRandomTargetGoal<T>
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetTypeFields inherited from class TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
ConstructorsConstructorDescriptionNonTameRandomTargetGoal(TamableAnimal mob, Class<T> targetType, boolean mustSee, @Nullable TargetingConditions.Selector subselector) -
Method Summary
Methods inherited from class NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget, startMethods inherited from class TargetGoal
canAttack, getFollowDistance, setUnseenMemoryTicks, stopMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
tamableMob
-
-
Constructor Details
-
NonTameRandomTargetGoal
public NonTameRandomTargetGoal(TamableAnimal mob, Class<T> targetType, boolean mustSee, @Nullable TargetingConditions.Selector subselector)
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUsein classNearestAttackableTargetGoal<T extends LivingEntity>
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classTargetGoal
-