public interface IFocus<V>
Create a focus with IRecipeRegistry#createFocus(Mode, Object).
| Modifier and Type | Interface and Description |
|---|---|
static class |
IFocus.Mode |
| Modifier and Type | Method and Description |
|---|---|
IFocus.Mode |
getMode()
The focus mode.
|
V |
getValue()
The object being focused on.
|
@Nullable V getValue()
IFocus.Mode.NONE there is no focused object, it is null.IFocus.Mode getMode()
IFocus.Mode.OUTPUT focus.
When a player looks up the uses for an item, that item is an IFocus.Mode.INPUT focus.
When the mode is IFocus.Mode.NONE there is no focus, the recipe is being browsed as part of a category.