Class StringEntryBuilder
java.lang.Object
net.ixdarklord.coolcatcore.api.config.AbstractEntryBuilder<String,StringEntryBuilder>
net.ixdarklord.coolcatcore.api.config.StringEntryBuilder
A text entry: optionally limited in length, required, or matched against a pattern.
-
Method Summary
Modifier and TypeMethodDescriptionmaxLength(int maxLength) notEmpty()Rejects blank text.The whole text must match this regular expression.protected ConfigType<String>type()The type the entry is built with, once every option is set.Methods inherited from class net.ixdarklord.coolcatcore.api.config.AbstractEntryBuilder
aliases, build, comment, enabledWhen, enabledWhen, hidden, listener, localOnly, requiresGameRestart, requiresRestart, requiresWorldRestart, self, serverOnly, translation, useServerValue, validator, validator
-
Method Details
-
maxLength
-
notEmpty
Rejects blank text. -
pattern
The whole text must match this regular expression. -
type
Description copied from class:AbstractEntryBuilderThe type the entry is built with, once every option is set.- Specified by:
typein classAbstractEntryBuilder<String,StringEntryBuilder>
-