Interface IPlayerConfigStringableOptionClientStorageAPI<T extends Comparable<T>>
- All Superinterfaces:
IPlayerConfigOptionClientStorageAPI<T>
public interface IPlayerConfigStringableOptionClientStorageAPI<T extends Comparable<T>>
extends IPlayerConfigOptionClientStorageAPI<T>
API for a stringable player config option value storage on the client side
-
Method Summary
Modifier and TypeMethodDescriptionGets the string input parser for this option.Gets the string output writer for this option.Gets the default comment text for the option.getId()
Gets the option string ID.Gets the option spec that this storage holds the value for.Gets the string value input validator for this option.Gets the text prefix for the option tooltip on the UI screens.Gets the translation key for the name of the option.getType()
Gets the type of the option value that this storage holds.Gets the option value validator that checks whether a certain value is valid for the option.getValue()
Gets the stored option value.boolean
Checks whether this option is forced to its default player config value.boolean
Checks whether the local client player can edit this option's value.Methods inherited from interface xaero.pac.client.player.config.api.IPlayerConfigOptionClientStorageAPI
getCommentTranslation, getCommentTranslationArgs, getTranslationArgs
-
Method Details
-
getOption
Description copied from interface:IPlayerConfigOptionClientStorageAPI
Gets the option spec that this storage holds the value for.- Specified by:
getOption
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- the option spec of this storage, not null
-
getId
Description copied from interface:IPlayerConfigOptionClientStorageAPI
Gets the option string ID.- Specified by:
getId
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- the option string ID, not null
-
getComment
Description copied from interface:IPlayerConfigOptionClientStorageAPI
Gets the default comment text for the option.- Specified by:
getComment
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- the default comment text, not null
-
getTranslation
Description copied from interface:IPlayerConfigOptionClientStorageAPI
Gets the translation key for the name of the option.- Specified by:
getTranslation
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- translation key for the name of the option, not null
-
getType
Description copied from interface:IPlayerConfigOptionClientStorageAPI
Gets the type of the option value that this storage holds.- Specified by:
getType
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- the type of the option value, not null
-
getValue
Description copied from interface:IPlayerConfigOptionClientStorageAPI
Gets the stored option value.- Specified by:
getValue
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- the stored value
-
getValidator
Description copied from interface:IPlayerConfigOptionClientStorageAPI
Gets the option value validator that checks whether a certain value is valid for the option.- Specified by:
getValidator
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- the option value validator, not null
-
getTooltipPrefix
Description copied from interface:IPlayerConfigOptionClientStorageAPI
Gets the text prefix for the option tooltip on the UI screens.- Specified by:
getTooltipPrefix
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- the tooltip prefix, null if there is none
-
isDefaulted
boolean isDefaulted()Description copied from interface:IPlayerConfigOptionClientStorageAPI
Checks whether this option is forced to its default player config value.- Specified by:
isDefaulted
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- true if the option value is defaulted, otherwise false
-
isMutable
boolean isMutable()Description copied from interface:IPlayerConfigOptionClientStorageAPI
Checks whether the local client player can edit this option's value.- Specified by:
isMutable
in interfaceIPlayerConfigOptionClientStorageAPI<T extends Comparable<T>>
- Returns:
- true if the option value is mutable, otherwise false
-
getCommandInputParser
Gets the string input parser for this option.It is the same one that is used for parsing command inputs.
- Returns:
- the string input parser function, not null
-
getCommandOutputWriterCast
Gets the string output writer for this option.It is the same one that is used for displaying option values in command outputs.
It accepts values of any type but will only work with the right one.
- Returns:
- the string output writer function, not null
-
getStringValidator
Gets the string value input validator for this option.- Returns:
- the string value input validator function, not null
-