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
ConstructorsConstructorDescriptionHurtByTargetWithPredicateGoal(net.minecraft.world.entity.PathfinderMob pMob, Predicate<net.minecraft.world.entity.LivingEntity> initialPredicate, Class<?>... pToIgnoreDamage) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanAttack(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, startMethods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stopMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Constructor Details
-
HurtByTargetWithPredicateGoal
-
-
Method Details
-
canAttack
protected boolean canAttack(@Nullable net.minecraft.world.entity.LivingEntity pPotentialTarget, net.minecraft.world.entity.ai.targeting.TargetingConditions pTargetPredicate) - Overrides:
canAttackin classnet.minecraft.world.entity.ai.goal.target.TargetGoal
-