java.lang.Object
me.fami6xx.rpuniverse.core.misc.language.editor.LanguageField

public class LanguageField extends Object
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 Details

    • LanguageField

      public LanguageField(Field reflectionField, String fieldName, String currentValue, boolean multiLine)
  • Method Details

    • getReflectionField

      public Field getReflectionField()
    • getFieldName

      public String getFieldName()
    • getValue

      public String getValue()
    • isMultiLine

      public boolean isMultiLine()
    • setValue

      public void setValue(String newValue)
      Sets the current value (single or multi-line).
    • getSplitLines

      public List<String> getSplitLines()
      Returns either one line (if multiLine=false) or multiple lines (split by '~' if multiLine=true).
    • setLines

      public void setLines(List<String> lines)
      Sets the value from multiple lines, rejoined by '~' if multiLine = true.
    • getPlaceholders

      public List<String> getPlaceholders()