public abstract class Pathfinder extends Object implements PathfinderAdapter
Modifier and Type | Class and Description |
---|---|
static class |
Pathfinder.GoalType |
Modifier and Type | Field and Description |
---|---|
protected ActiveMob |
activeMob |
protected String |
dataVar1 |
protected String |
dataVar2 |
protected AbstractEntity |
entity |
protected Pathfinder.GoalType |
goalType |
Constructor and Description |
---|
Pathfinder(AbstractEntity entity,
int index,
String line,
MythicLineConfig mlc) |
Pathfinder(AbstractEntity entity,
String line,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
protected static VolatileAIHandler |
ai() |
abstract void |
end()
Ends this
Pathfinder . |
protected static MythicMobs |
getPlugin() |
boolean |
isValid()
Whether or not the supplied entity is valid for this pathfinder
|
abstract boolean |
shouldEnd()
Whether or not this
Pathfinder should end. |
abstract boolean |
shouldStart()
Whether or not this
Pathfinder should start. |
abstract void |
start()
Starts this
Pathfinder . |
abstract void |
tick()
Called every tick when this
Pathfinder is running. |
protected ActiveMob activeMob
protected AbstractEntity entity
protected String dataVar1
protected String dataVar2
protected Pathfinder.GoalType goalType
public Pathfinder(AbstractEntity entity, String line, MythicLineConfig mlc)
public Pathfinder(AbstractEntity entity, int index, String line, MythicLineConfig mlc)
protected static MythicMobs getPlugin()
protected static VolatileAIHandler ai()
public boolean isValid()
isValid
in interface PathfinderAdapter
public abstract boolean shouldStart()
Pathfinder
should start.public abstract void start()
Pathfinder
.public abstract void tick()
Pathfinder
is running.public abstract boolean shouldEnd()
Pathfinder
should end.public abstract void end()
Pathfinder
.Copyright © 2020. All rights reserved.