SoftConfig
Toggle table of contents
4.8.3-SNAPSHOT+57c5193
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
SoftConfig
common
/
io.github.notenoughupdates.moulconfig.annotations
/
ConfigVisibleIf
Config
Visible
If
@
Retention
(
value
=
RetentionPolicy.RUNTIME
)
@
Target
(
value
=
ElementType.FIELD
)
annotation class
ConfigVisibleIf
(
source
)
Hides this option unless another boolean field in the same config object has the requested value.
Members
Functions
expected
Link copied to clipboard
abstract
fun
expected
(
)
:
Boolean
The controlling field value required for this option to be visible.
value
Link copied to clipboard
abstract
fun
value
(
)
:
String
Field name of the boolean option that controls this option's visibility.