public class DroneAINearestAttackableTarget
extends net.minecraft.entity.ai.goal.TargetGoal
| Modifier and Type | Class and Description |
|---|---|
static class |
DroneAINearestAttackableTarget.DistanceSorter |
| Constructor and Description |
|---|
DroneAINearestAttackableTarget(EntityDrone drone,
boolean mustSee,
boolean easyTargetsOnly,
ProgWidget widget) |
DroneAINearestAttackableTarget(EntityDrone drone,
boolean checkSight,
ProgWidget widget) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUse()
Returns whether the EntityAIBase should begin execution.
|
void |
start()
Execute a one shot task or start executing a continuous task
|
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stoppublic DroneAINearestAttackableTarget(EntityDrone drone, boolean checkSight, ProgWidget widget)
public DroneAINearestAttackableTarget(EntityDrone drone, boolean mustSee, boolean easyTargetsOnly, ProgWidget widget)
public boolean canUse()
canUse in class net.minecraft.entity.ai.goal.Goalpublic void start()
start in class net.minecraft.entity.ai.goal.TargetGoal