Class Fox.DefendTrustedTargetGoal
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<LivingEntity>
net.minecraft.world.entity.animal.fox.Fox.DefendTrustedTargetGoal
- Enclosing class:
Fox
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate @Nullable LivingEntityprivate @Nullable LivingEntityFields inherited from class NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetTypeFields inherited from class TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
ConstructorsConstructorDescriptionDefendTrustedTargetGoal(Class<LivingEntity> targetType, boolean mustSee, boolean mustReach, @Nullable TargetingConditions.Selector subselector) -
Method Summary
Methods inherited from class NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTargetMethods inherited from class TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stopMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
trustedLastHurtBy
-
trustedLastHurt
-
timestamp
private int timestamp
-
-
Constructor Details
-
DefendTrustedTargetGoal
public DefendTrustedTargetGoal(Class<LivingEntity> targetType, boolean mustSee, boolean mustReach, @Nullable TargetingConditions.Selector subselector)
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUsein classNearestAttackableTargetGoal<LivingEntity>
-
start
public void start()- Overrides:
startin classNearestAttackableTargetGoal<LivingEntity>
-