public class ProgWidgetType<P extends IProgWidgetBase> extends net.minecraftforge.registries.ForgeRegistryEntry<ProgWidgetType<?>>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Class<ProgWidgetType<?>> |
CLASS_GENERIC |
| Modifier and Type | Method and Description |
|---|---|
P |
cast(IProgWidgetBase widget) |
P |
create() |
static <P extends IProgWidgetBase> |
createType(java.util.function.Supplier<P> factory) |
java.lang.String |
getTranslationKey() |
public static final java.lang.Class<ProgWidgetType<?>> CLASS_GENERIC
public static <P extends IProgWidgetBase> ProgWidgetType<P> createType(java.util.function.Supplier<P> factory)
public P create()
public java.lang.String getTranslationKey()
public P cast(IProgWidgetBase widget)