Module technology.sola.ecs
Package technology.sola.ecs.view
Class View3<C1 extends Component,C2 extends Component,C3 extends Component>
- Type Parameters:
C1
- the first component typeC2
- the second component typeC3
- the third component type
- All Implemented Interfaces:
View<View3Entry<C1,
C2, C3>>
@NullMarked
public class View3<C1 extends Component,C2 extends Component,C3 extends Component>
extends ViewImpl<View3Entry<C1,C2,C3>>
-
Field Summary
Fields inherited from class technology.sola.ecs.cache.ViewImpl
componentClasses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable View3Entry<C1,
C2, C3> createEntryFromEntity
(Entity entity) Methods inherited from class technology.sola.ecs.cache.ViewImpl
getEntries, isWatchingComponent
-
Constructor Details
-
View3
Creates an instance of View3.- Parameters:
c1Class
- the firstComponent
class this view watchesc2Class
- the second component class this view watchesc3Class
- the third class component class this view watches
-
-
Method Details
-
createEntryFromEntity
Description copied from class:ViewImpl
- Specified by:
createEntryFromEntity
in classViewImpl<View3Entry<C1 extends Component,
C2 extends Component, C3 extends Component>> - Parameters:
entity
- theEntity
to create aViewEntry
from- Returns:
- the
ViewEntry
-