Package net.minestom.server.entity.ai
Class EntityAIGroupBuilder
java.lang.Object
net.minestom.server.entity.ai.EntityAIGroupBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGoalSelector(GoalSelector goalSelector) AddsGoalSelectorto the list of goal selectors of the buildingEntityAIGroup.addTargetSelector(TargetSelector targetSelector) AddsTargetSelectorto the list of target selectors of the buildingEntityAIGroup.build()Creates newEntityAIGroup.
-
Constructor Details
-
EntityAIGroupBuilder
public EntityAIGroupBuilder()
-
-
Method Details
-
addGoalSelector
AddsGoalSelectorto the list of goal selectors of the buildingEntityAIGroup. Addition order is also a priority: priority the higher the earlier selector was added.- Parameters:
goalSelector- goal selector to be added.- Returns:
- this builder.
-
addTargetSelector
AddsTargetSelectorto the list of target selectors of the buildingEntityAIGroup. Addition order is also a priority: priority the higher the earlier selector was added.- Parameters:
targetSelector- target selector to be added.- Returns:
- this builder.
-
build
Creates newEntityAIGroup.- Returns:
- new
EntityAIGroup.
-