Interface IEntityComponent<E>
- Type Parameters:
E- is the type of the entity aIEntityComponentcan belong to.
- All Known Subinterfaces:
IBackReference<E>, IBaseBackReference, IBaseReference, IBaseValueField<V>, IField, IMultiBackReference<E>, IMultiReference<E>, IMultiValueField<V>, IOptionalBackReference<E>, IOptionalReference<E>, IOptionalValueField<V>, IReference<E>, IValueField<V>
- All Known Implementing Classes:
AbstractBaseBackReference, AbstractBaseReference, AbstractBaseValueField, AbstractField, BackReference, MultiBackReference, MultiReference, MultiValueField, OptionalBackReference, OptionalReference, OptionalValueField, Reference, ValueField
public interface IEntityComponent<E>
A
IEntityComponent can belong to an entity.- Author:
- Silvan Wyss
-
Method Summary
-
Method Details
-
belongsToEntity
boolean belongsToEntity()- Returns:
- true if the current
IEntityComponentbelongs to an entity, false otherwise.
-
getStoredParentEntity
E getStoredParentEntity()- Returns:
- the entity of the current
IEntityComponent. - Throws:
RuntimeException- if the currentIEntityComponentdoes not belong to an entity.
-