Modifier and Type | Method and Description |
---|---|
Aspect.Builder |
all(Class<? extends Component>... types)
Returns an aspect where an entity must possess all of the specified
component types.
|
Aspect.Builder |
all(Collection<Class<? extends Component>> types)
Returns an aspect where an entity must possess all of the specified
component types.
|
Aspect |
build(World world)
Bake an aspect.
|
Aspect.Builder |
copy() |
boolean |
equals(Object o) |
Aspect.Builder |
exclude(Class<? extends Component>... types)
Excludes all of the specified component types from the aspect.
|
Aspect.Builder |
exclude(Collection<Class<? extends Component>> types)
Excludes all of the specified component types from the aspect.
|
int |
hashCode() |
Aspect.Builder |
one(Class<? extends Component>... types)
Returns an aspect where an entity must possess one of the specified
component types.
|
Aspect.Builder |
one(Collection<Class<? extends Component>> types)
Returns an aspect where an entity must possess one of the specified
component types.
|
String |
toString() |
@SafeVarargs public final Aspect.Builder all(Class<? extends Component>... types)
types
- a required component typepublic Aspect.Builder copy()
public Aspect.Builder all(Collection<Class<? extends Component>> types)
types
- a required component type@SafeVarargs public final Aspect.Builder one(Class<? extends Component>... types)
types
- one of the types the entity must possesspublic Aspect.Builder one(Collection<Class<? extends Component>> types)
types
- one of the types the entity must possess@SafeVarargs public final Aspect.Builder exclude(Class<? extends Component>... types)
A system will not be interested in an entity that possesses one of the specified exclusion component types.
types
- component type to excludepublic Aspect.Builder exclude(Collection<Class<? extends Component>> types)
A system will not be interested in an entity that possesses one of the specified exclusion component types.
types
- component type to excludepublic Aspect build(World world)
world
- Copyright © 2019. All rights reserved.