public abstract class DroneEntityBase<W extends IEntityProvider,E extends net.minecraft.entity.Entity>
extends net.minecraft.entity.ai.goal.Goal
| Modifier and Type | Field and Description |
|---|---|
protected IDroneBase |
drone |
protected W |
progWidget |
protected E |
targetedEntity |
| Modifier | Constructor and Description |
|---|---|
protected |
DroneEntityBase(IDroneBase drone,
W progWidget) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContinueToUse()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
canUse()
Returns whether the EntityAIBase should begin execution.
|
protected abstract boolean |
doAction() |
protected abstract boolean |
isEntityValid(net.minecraft.entity.Entity entity) |
protected final IDroneBase drone
protected final W extends IEntityProvider progWidget
protected E extends net.minecraft.entity.Entity targetedEntity
protected DroneEntityBase(IDroneBase drone, W progWidget)
public boolean canUse()
canUse in class net.minecraft.entity.ai.goal.Goalprotected abstract boolean isEntityValid(net.minecraft.entity.Entity entity)
public boolean canContinueToUse()
canContinueToUse in class net.minecraft.entity.ai.goal.Goalprotected abstract boolean doAction()