@FunctionalInterface
public interface EntityVisitor
Entity within an EntityContainer to be walked through one by
one recursively. These are walked through breadth-first and their walking can be filtered by
suppling different EntityVisitor.EntityVisitResult.EntityVisitor.EntityVisitResult.CONTINUE the walker will continue as normal. EntityVisitor.EntityVisitResult.IGNORE_CHILDREN the walker will not walk through any children of
this entity.EntityVisitor.EntityVisitResult.IGNORE_SIBLINGS the walker will ignore all new siblings (only
processing the current entity and it's children).EntityVisitor.EntityVisitResult.EXIT the walker will exit walking and reset.Entities.walkEntityTree(EntityContainer, int, EntityVisitor).Entities| Modifier and Type | Interface and Description |
|---|---|
static class |
EntityVisitor.EntityVisitResult
Result to be returned when visiting an
Entity. |
| Modifier and Type | Method and Description |
|---|---|
EntityVisitor.EntityVisitResult |
visit(Entity e)
The walker visiting this entity.
|
EntityVisitor.EntityVisitResult visit(Entity e)
e - Entity to visit.