Cycle Player Setting Button
A button which cycles through a fixed set of values for a player setting. (Think enums for example.)
key The namespaced key for this setting. Used for translation keys and persistent data.
sortedValues The possible setting values to cycle through, in order.
identifier A function which returns a string identifier for each setting value. Used for translation keys.
The identifier must be unique for each value in sortedValues and must be constant for each value.
For example, if the setting is an enum, you could use
Enum::name.The name and lore of the button will be based on this identifier with the following format:
pylon.<key.namespace>.guide.button.<key.key>.<identifier>.(name|lore)
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)