IFocus.Mode
Constructor and Description |
---|
Focus(IFocus.Mode mode,
V value) |
Modifier and Type | Method and Description |
---|---|
static <V> Focus<V> |
cast(Focus<?> focus,
IIngredientType<V> ingredientType) |
static <V> Focus<V> |
check(IFocus<V> focus)
Make sure any IFocus coming in through API calls is validated and turned into JEI's Focus.
|
static <V> Focus<V> |
checkNullable(IFocus<V> focus)
Make sure any IFocus coming in through API calls is validated and turned into JEI's Focus.
|
IFocus.Mode |
getMode()
The focus mode.
|
V |
getValue()
The object being focused on.
|
public Focus(IFocus.Mode mode, V value)
public IFocus.Mode getMode()
IFocus
IFocus.Mode.OUTPUT
focus.
When a player looks up the uses for an item, that item is an IFocus.Mode.INPUT
focus.public static <V> Focus<V> check(IFocus<V> focus)
@Nullable public static <V> Focus<V> checkNullable(@Nullable IFocus<V> focus)
@Nullable public static <V> Focus<V> cast(@Nullable Focus<?> focus, IIngredientType<V> ingredientType)