IFocus.Mode
Constructor and Description |
---|
Focus(IFocus.Mode mode,
V value) |
Focus(V value) |
Modifier and Type | Method and Description |
---|---|
IFocus.Mode |
getMode()
The focus mode.
|
V |
getValue()
The object being focused on.
|
public Focus(@Nullable V value)
public Focus(IFocus.Mode mode, @Nullable V value)
@Nullable public V getValue()
IFocus
IFocus.Mode.NONE
there is no focused object, it is null.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.
When the mode is IFocus.Mode.NONE
there is no focus, the recipe is being browsed as part of a category.