Interface IPlayerConfigStringableOptionClientStorageAPI<T>
- All Superinterfaces:
IPlayerConfigOptionClientStorageAPI<T>
public interface IPlayerConfigStringableOptionClientStorageAPI<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 default comment text for the option.Gets the component output writer for this 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.booleanChecks whether this option is forced to its default player config value.booleanChecks whether the local client player can edit this option's value, taking permissions into account.Methods inherited from interface xaero.pac.client.player.config.api.v2.IPlayerConfigOptionClientStorageAPI
getCommentTranslation, getCommentTranslationArgs, getTranslationArgs, isAdminMutable, isPlayerMutable
-
Method Details
-
getOption
Description copied from interface:IPlayerConfigOptionClientStorageAPIGets the option spec that this storage holds the value for.- Specified by:
getOptionin interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- the option spec of this storage, not null
-
getId
Description copied from interface:IPlayerConfigOptionClientStorageAPIGets the option string ID.- Specified by:
getIdin interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- the option string ID, not null
-
getComment
Description copied from interface:IPlayerConfigOptionClientStorageAPIGets the default comment text for the option.- Specified by:
getCommentin interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- the default comment text, not null
-
getTranslation
Description copied from interface:IPlayerConfigOptionClientStorageAPIGets the translation key for the name of the option.- Specified by:
getTranslationin interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- translation key for the name of the option, not null
-
getType
Description copied from interface:IPlayerConfigOptionClientStorageAPIGets the type of the option value that this storage holds.- Specified by:
getTypein interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- the type of the option value, not null
-
getValue
Description copied from interface:IPlayerConfigOptionClientStorageAPIGets the stored option value.- Specified by:
getValuein interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- the stored value
-
getValidator
Description copied from interface:IPlayerConfigOptionClientStorageAPIGets the option value validator that checks whether a certain value is valid for the option.- Specified by:
getValidatorin interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- the option value validator, not null
-
getTooltipPrefix
Description copied from interface:IPlayerConfigOptionClientStorageAPIGets the text prefix for the option tooltip on the UI screens.- Specified by:
getTooltipPrefixin interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- the tooltip prefix, null if there is none
-
isDefaulted
boolean isDefaulted()Description copied from interface:IPlayerConfigOptionClientStorageAPIChecks whether this option is forced to its default player config value.- Specified by:
isDefaultedin interfaceIPlayerConfigOptionClientStorageAPI<T>- Returns:
- true if the option value is defaulted, otherwise false
-
isMutable
boolean isMutable()Description copied from interface:IPlayerConfigOptionClientStorageAPIChecks whether the local client player can edit this option's value, taking permissions into account.- Specified by:
isMutablein interfaceIPlayerConfigOptionClientStorageAPI<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
-
getComponentWriterCast
Gets the component 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 component output writer function, not null
-
getStringValidator
Gets the string value input validator for this option.- Returns:
- the string value input validator function, not null
-