java.lang.Object
studio.magemonkey.codex.mccore.config.parse.DataArray

public class DataArray extends Object
Represents a section of a config
  • Constructor Details

    • DataArray

      public DataArray()
  • Method Details

    • clear

      public void clear()
      Clears all data and comments from the data section
    • size

      public int size()
      Returns:
      number of key/value pairs
    • values

      public ArrayList<Object> values()
      Retrieves the values contained in the keys for this section
      Returns:
      values contained in the keys for this section
    • add

      public void add(Object value)
      Adds a value to the array
      Parameters:
      value - value to add
    • get

      public Object get(int index)
      Fetches a value using an index
      Parameters:
      index - index to use
      Returns:
      fetched value
    • asStringList

      public List<String> asStringList()
      Gets the array as a string list
      Returns:
      string list representation
    • asDataList

      public List<DataSection> asDataList()
      Gets the array as a data section list
      Returns:
      data list representation