类 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>
-
嵌套类概要
-
字段概要
字段从类继承的字段 net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetType
从类继承的字段 net.minecraft.world.entity.ai.goal.target.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
构造器概要
构造器构造器说明NearestAttackableWitchTargetGoal
(Raider pMob, Class<T> pTargetType, int pRandomInterval, boolean pMustSee, boolean pMustReach, Predicate<LivingEntity> pTargetPredicate) -
方法概要
从类继承的方法 net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget, start
从类继承的方法 net.minecraft.world.entity.ai.goal.target.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
从类继承的方法 net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
字段详细资料
-
canAttack
private boolean canAttack
-
-
构造器详细资料
-
NearestAttackableWitchTargetGoal
public NearestAttackableWitchTargetGoal(Raider pMob, Class<T> pTargetType, int pRandomInterval, boolean pMustSee, boolean pMustReach, @Nullable Predicate<LivingEntity> pTargetPredicate)
-
-
方法详细资料
-
setCanAttack
public void setCanAttack(boolean pActive) -
canUse
public boolean canUse()- 覆盖:
canUse
在类中NearestAttackableTargetGoal<T extends LivingEntity>
-