Constructor and Description |
---|
EntityMobGoals() |
Modifier and Type | Method and Description |
---|---|
void |
addGoal(int priority,
@NotNull Goal<T> goal) |
@NotNull Collection<Goal<T>> |
getAllGoals() |
@NotNull Collection<Goal<T>> |
getAllGoals(GoalType type) |
@NotNull Collection<Goal<T>> |
getAllGoalsWithout(GoalType type) |
@Nullable Goal<T> |
getGoal(@NotNull GoalKey<T> key) |
@NotNull Collection<Goal<T>> |
getGoals(@NotNull GoalKey<T> key) |
@NotNull Collection<Goal<T>> |
getRunningGoals() |
@NotNull Collection<Goal<T>> |
getRunningGoals(GoalType type) |
@NotNull Collection<Goal<T>> |
getRunningGoalsWithout(GoalType type) |
boolean |
hasGoal(@NotNull GoalKey<T> key) |
void |
removeAllGoals() |
void |
removeAllGoals(GoalType type) |
void |
removeGoal(@NotNull Goal<T> goal) |
void |
removeGoal(@NotNull GoalKey<T> key) |
public void removeAllGoals()
public void removeAllGoals(GoalType type)
@NotNull public @NotNull Collection<Goal<T>> getGoals(@NotNull @NotNull GoalKey<T> key)
@NotNull public @NotNull Collection<Goal<T>> getAllGoals()
@NotNull public @NotNull Collection<Goal<T>> getAllGoals(GoalType type)
@NotNull public @NotNull Collection<Goal<T>> getAllGoalsWithout(GoalType type)
@NotNull public @NotNull Collection<Goal<T>> getRunningGoals()
@NotNull public @NotNull Collection<Goal<T>> getRunningGoals(GoalType type)
@NotNull public @NotNull Collection<Goal<T>> getRunningGoalsWithout(GoalType type)
Copyright © 2022. All rights reserved.