Interface ChildrenComponent


public interface ChildrenComponent
Data component that can be attached to an Entity for entities that have children.
  • Method Details

    • getTotal

      int getTotal()
      Returns:
      the total number of children this entity has. Ideally this is implemented in a way that is more efficient than `getChildren().count()`.
    • getChildren

      Stream<Entity> getChildren()
      Returns:
      a stream of the children of this entity.