Package net.minestom.server.entity.ai
Class EntityAIGroupBuilder
java.lang.Object
net.minestom.server.entity.ai.EntityAIGroupBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddGoalSelector
(GoalSelector goalSelector) AddsGoalSelector
to the list of goal selectors of the buildingEntityAIGroup
.addTargetSelector
(TargetSelector targetSelector) AddsTargetSelector
to the list of target selectors of the buildingEntityAIGroup
.build()
Creates newEntityAIGroup
.
-
Constructor Details
-
EntityAIGroupBuilder
public EntityAIGroupBuilder()
-
-
Method Details
-
addGoalSelector
AddsGoalSelector
to 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
AddsTargetSelector
to 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
.
-