Numeric Player Setting Button
A button for changing a numeric setting for a player. (e.g. volume, brightness, etc.)
key The namespaced key for this setting. Used for translation keys and persistent data.
min The minimum value for the setting.
max The maximum value for the setting.
step The amount to increase or decrease the setting by on a normal click.
shiftStep The amount to increase or decrease the setting by on a shift click.
type Converts a Number to the specific setting type N. (e.g. Number.toInt, Number.toDouble, etc.)
getter Gets the current setting value for a player.
setter Sets the current setting value for a player.
decorator Determines what the base ItemStack of the button looks like for a player their current setting value.
This is useful for adding visual indicators of the current setting value, such as changing the material or custom model data.
The name and lore of the button will be applied on top of this ItemStack.
placeholderProvider Provides additional placeholders for the translation. (See TranslatableComponent.arguments and PylonArgument)
By default there is a placeholder "value" which contains the current setting value.