public interface IComponentProvider
Block that can handle IBlockComponent.| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(IComponent component)
Adds the
IBlockComponent to this IComponentProvider. |
default <T> T |
getComponent(java.lang.Class<T> type)
Gets the
IBlockComponent of the specified type from this IComponentProvider. |
java.util.List<IComponent> |
getComponents()
Gets the
IBlockComponent for this IComponentProvider. |
java.util.List<IComponent> getComponents()
IBlockComponent for this IComponentProvider.void addComponent(IComponent component)
IBlockComponent to this IComponentProvider.component - the componentdefault <T> T getComponent(java.lang.Class<T> type)
IBlockComponent of the specified type from this IComponentProvider.T - the generic typetype - the type