Generic option
Generic options can be configured for any value type that has corresponding command argument type. In fact, all options listed in SimpleOptions class are wrappers around this one.
Configuration
Generic options have to be provided with a value type T
and ArgumentType<T>
.
See OptionBuilder.generic()
for implementation details.
Example
Generic option type being used to access an ItemStack
option.
Last updated