Class LanguageField
java.lang.Object
me.fami6xx.rpuniverse.core.misc.language.editor.LanguageField
Represents one language field in LanguageHandler:
- fieldName is the actual Java field name
- value is the current text (possibly multi-line)
- multiLine = true if and only if the field's *default* value contained '~'
- placeholders is a list of placeholders found in the text, e.g. {player}, {jobName}, etc.
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageField(Field reflectionField, String fieldName, String currentValue, boolean multiLine) -
Method Summary
Modifier and TypeMethodDescriptionReturns either one line (if multiLine=false) or multiple lines (split by '~' if multiLine=true).getValue()booleanvoidSets the value from multiple lines, rejoined by '~' if multiLine = true.voidSets the current value (single or multi-line).
-
Constructor Details
-
LanguageField
-
-
Method Details
-
getReflectionField
-
getFieldName
-
getValue
-
isMultiLine
public boolean isMultiLine() -
setValue
Sets the current value (single or multi-line). -
getSplitLines
Returns either one line (if multiLine=false) or multiple lines (split by '~' if multiLine=true). -
setLines
Sets the value from multiple lines, rejoined by '~' if multiLine = true. -
getPlaceholders
-