| Modifier and Type | Interface and Description |
|---|---|
static interface |
WatchClosestAITask.Builder |
| Modifier and Type | Method and Description |
|---|---|
static WatchClosestAITask.Builder |
builder()
Creates a new
WatchClosestAITask.Builder to build a new
WatchClosestAITask. |
float |
getChance()
|
float |
getMaxDistance()
Gets the maximum distance to "watch" a targeted
Entity. |
Class<? extends Entity> |
getWatchedClass()
|
WatchClosestAITask |
setChance(float chance)
SEts the chance to "watch" a targeted
Entity. |
WatchClosestAITask |
setMaxDistance(float maxDistance)
Sets the maximum distance to "watch" a targeted
Entity. |
WatchClosestAITask |
setWatchedClass(Class<? extends Entity> watchedClass)
|
canBeInterrupted, canRunConcurrentWith, getGoal, getOwner, getTypestatic WatchClosestAITask.Builder builder()
WatchClosestAITask.Builder to build a new
WatchClosestAITask.WatchClosestAITask setWatchedClass(Class<? extends Entity> watchedClass)
watchedClass - The class of entity to "watch"float getMaxDistance()
Entity.WatchClosestAITask setMaxDistance(float maxDistance)
Entity.maxDistance - The maximum distance to watch an entityfloat getChance()
WatchClosestAITask setChance(float chance)
Entity.chance - The chance to "watch"