Class NearestAttackableWitchTargetGoal<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.NearestAttackableWitchTargetGoal<T>
public class NearestAttackableWitchTargetGoal<T extends LivingEntity>
extends NearestAttackableTargetGoal<T>
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetType
Fields inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
Constructor Summary
ConstructorsConstructorDescriptionNearestAttackableWitchTargetGoal
(Raider pRaider, Class<T> pTargetType, int pInterval, boolean pMustSee, boolean pMustReach, TargetingConditions.Selector pSelector) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget, start
Methods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
canAttack
private boolean canAttack
-
-
Constructor Details
-
NearestAttackableWitchTargetGoal
public NearestAttackableWitchTargetGoal(Raider pRaider, Class<T> pTargetType, int pInterval, boolean pMustSee, boolean pMustReach, @Nullable TargetingConditions.Selector pSelector)
-
-
Method Details
-
setCanAttack
public void setCanAttack(boolean pCanAttack) -
canUse
public boolean canUse()- Overrides:
canUse
in classNearestAttackableTargetGoal<T extends LivingEntity>
-