T - type of stored valuepublic final class ContextComponent<T>
extends org.panda_lang.utilities.commons.collection.Component<T>
Context| Modifier and Type | Method and Description |
|---|---|
static <T> ContextComponent<T> |
of(String name,
Class<T> type)
Create component
|
static <T> ContextComponent<T> |
of(String name,
Class<T> type,
double priority)
Create component with a custom priority
|
public static <T> ContextComponent<T> of(String name, Class<T> type)
T - generic type of componentname - name of componenttype - type of componentpublic static <T> ContextComponent<T> of(String name, Class<T> type, double priority)
T - generic type of componentname - name of componenttype - type of componentpriority - the priorityCopyright © 2020. All rights reserved.