Class HurtByTargetWithPredicateGoal

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.HurtByTargetGoal
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.HurtByTargetWithPredicateGoal

public class HurtByTargetWithPredicateGoal extends net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal

    net.minecraft.world.entity.ai.goal.Goal.Flag
  • Field Summary

    Fields inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal

    mob, mustSee, targetMob, unseenMemoryTicks
  • Constructor Summary

    Constructors
    Constructor
    Description
    HurtByTargetWithPredicateGoal(net.minecraft.world.entity.PathfinderMob pMob, Predicate<net.minecraft.world.entity.LivingEntity> initialPredicate, Class<?>... pToIgnoreDamage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    canAttack(net.minecraft.world.entity.LivingEntity pPotentialTarget, net.minecraft.world.entity.ai.targeting.TargetingConditions pTargetPredicate)
     

    Methods inherited from class net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal

    alertOther, alertOthers, canUse, setAlertOthers, start

    Methods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal

    canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop

    Methods inherited from class net.minecraft.world.entity.ai.goal.Goal

    adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HurtByTargetWithPredicateGoal

      public HurtByTargetWithPredicateGoal(net.minecraft.world.entity.PathfinderMob pMob, Predicate<net.minecraft.world.entity.LivingEntity> initialPredicate, Class<?>... pToIgnoreDamage)
  • Method Details

    • canAttack

      protected boolean canAttack(@Nullable net.minecraft.world.entity.LivingEntity pPotentialTarget, net.minecraft.world.entity.ai.targeting.TargetingConditions pTargetPredicate)
      Overrides:
      canAttack in class net.minecraft.world.entity.ai.goal.target.TargetGoal