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 NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetTypeFields inherited from class TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
ConstructorsConstructorDescriptionNearestAttackableWitchTargetGoal(Raider raider, Class<T> targetType, int randomInterval, boolean mustSee, boolean mustReach, @Nullable TargetingConditions.Selector subselector) -
Method Summary
Methods inherited from class NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget, startMethods 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
-
canAttack
private boolean canAttack
-
-
Constructor Details
-
NearestAttackableWitchTargetGoal
public NearestAttackableWitchTargetGoal(Raider raider, Class<T> targetType, int randomInterval, boolean mustSee, boolean mustReach, @Nullable TargetingConditions.Selector subselector)
-
-
Method Details
-
setCanAttack
public void setCanAttack(boolean canAttack) -
canUse
public boolean canUse()- Overrides:
canUsein classNearestAttackableTargetGoal<T extends LivingEntity>
-