public interface MobGoals
Modifier and Type | Interface and Description |
---|---|
static class |
MobGoals.EntityMobGoals<T extends Mob> |
Modifier and Type | Method and Description |
---|---|
<T extends Mob> |
addGoal(T mob,
int priority,
@NotNull Goal<T> goal)
Add a goal to the target mob
|
<T extends Mob> |
getAllGoals(T mob)
Get every goal instances from target mob
|
<T extends Mob> |
getAllGoals(T mob,
GoalType type)
Get every goal instances based on goal type from target mob
|
<T extends Mob> |
getAllGoalsWithout(T mob,
GoalType type)
Get every goal instances that aren't the specific type from target mob
|
<T extends Mob> |
getEntityGoals(T mob)
Wrap a instance of MobGoals for target mob
|
<T extends Mob> |
getGoal(T mob,
@NotNull GoalKey<T> key)
Get the goal instance based on key from target mob
|
<T extends Mob> |
getGoals(T mob,
@NotNull GoalKey<T> key)
Get the goal instances based on key from target mob
|
<T extends Mob> |
getRunningGoals(T mob)
Get every running goals from target mob
|
<T extends Mob> |
getRunningGoals(T mob,
GoalType type)
Get every running goals based on goal type from target mob
|
<T extends Mob> |
getRunningGoalsWithout(T mob,
GoalType type)
Get every running goal instances that aren't the specific type from target mob
|
<T extends Mob> |
hasGoal(T mob,
@NotNull GoalKey<T> key)
Check if the mob has a goal with the key
|
<T extends Mob> |
removeAllGoals(T mob)
Remove every goals from target mob
|
<T extends Mob> |
removeAllGoals(T mob,
GoalType type)
Remove every goals based on goal type from target mob
|
<T extends Mob> |
removeGoal(T mob,
@NotNull Goal<T> goal)
Remove a goal from the target mob
|
<T extends Mob> |
removeGoal(T mob,
@NotNull GoalKey<T> key)
Remove a goal based on key from target mob
|
<T extends Mob> void addGoal(@NotNull T mob, int priority, @NotNull @NotNull Goal<T> goal)
T
- the type of Mobmob
- the Mobpriority
- the Prioritygoal
- the Goal<T extends Mob> void removeGoal(@NotNull T mob, @NotNull @NotNull Goal<T> goal)
T
- the type of Mobmob
- the Mobgoal
- the Goal<T extends Mob> void removeAllGoals(@NotNull T mob)
T
- the type of Mobmob
- the Mob<T extends Mob> void removeAllGoals(@NotNull T mob, GoalType type)
T
- the type of Mobmob
- the Mobtype
- the type of Goal<T extends Mob> void removeGoal(@NotNull T mob, @NotNull @NotNull GoalKey<T> key)
T
- the type of Mobmob
- the Mobkey
- the Key of the Goal, If you are trying to remove a vanilla goal, See VanillaGoal
<T extends Mob> boolean hasGoal(@NotNull T mob, @NotNull @NotNull GoalKey<T> key)
T
- the type of Mobmob
- the Mobkey
- the Key of the Goal, If you are trying to check a vanilla goal, See VanillaGoal
@Nullable <T extends Mob> @Nullable Goal<T> getGoal(@NotNull T mob, @NotNull @NotNull GoalKey<T> key)
T
- the type of Mobmob
- the Mobkey
- the Key of the Goal, If you are trying to find a vanilla goal, See VanillaGoal
@NotNull <T extends Mob> @NotNull Collection<Goal<T>> getGoals(@NotNull T mob, @NotNull @NotNull GoalKey<T> key)
T
- the type of Mobmob
- the Mobkey
- the Key of the Goal, If you are trying to find vanilla goals, See VanillaGoal
@NotNull <T extends Mob> @NotNull Collection<Goal<T>> getAllGoals(@NotNull T mob)
T
- the type of Mobmob
- the Mob@NotNull <T extends Mob> @NotNull Collection<Goal<T>> getAllGoals(@NotNull T mob, GoalType type)
T
- the type of Mobmob
- the Mobtype
- the type of Goal@NotNull <T extends Mob> @NotNull Collection<Goal<T>> getAllGoalsWithout(@NotNull T mob, GoalType type)
T
- the type of Mobmob
- the Mobtype
- the type of Goal to filtered@NotNull <T extends Mob> @NotNull Collection<Goal<T>> getRunningGoals(@NotNull T mob)
T
- the type of Mobmob
- the Mob@NotNull <T extends Mob> @NotNull Collection<Goal<T>> getRunningGoals(@NotNull T mob, GoalType type)
T
- the type of Mobmob
- the Mobtype
- the type of Goal@NotNull <T extends Mob> @NotNull Collection<Goal<T>> getRunningGoalsWithout(@NotNull T mob, GoalType type)
T
- the type of Mobmob
- the Mobtype
- the type of Goal to filtered@NotNull <T extends Mob> @NotNull MobGoals.EntityMobGoals<T> getEntityGoals(@NotNull T mob)
T
- the type of Mobmob
- the MobCopyright © 2022. All rights reserved.