Interface View<E extends ViewEntry>

Type Parameters:
E - the ViewEntry implementation
All Known Implementing Classes:
View1, View2, View3, View4, ViewImpl, ViewN

@NullMarked public interface View<E extends ViewEntry>
The View class is a container of ViewEntry that are updated whenever a World updates an Entity's components that now satisfies or no longer satisfies the List of watched Components.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    isWatchingComponent(Class<? extends Component> componentClassToCheck)
    Checks if this view responds to an Entity adding or removing the component type or if an entity is deleted while having the component type.
  • Method Details

    • getEntries

      Collection<E> getEntries()
      Returns:
      the List of ViewEntry in this View
    • isWatchingComponent

      boolean isWatchingComponent(Class<? extends Component> componentClassToCheck)
      Checks if this view responds to an Entity adding or removing the component type or if an entity is deleted while having the component type.
      Parameters:
      componentClassToCheck - the Component class to check
      Returns:
      true if view will update