java.lang.Object
net.darkhax.pricklemc.common.api.config.property.array.ArraySettings

public class ArraySettings extends Object
Settings for an array property. These are modified using the Array annotation on the field of the value.
  • Field Details

    • DEFAULT

      public static final ArraySettings DEFAULT
      Default settings that are used when the Array annotation was not found.
  • Constructor Details

    • ArraySettings

      public ArraySettings(Array meta)
      Creates a settings object from the Array annotation.
      Parameters:
      meta - The metadata specified using the annotation.
  • Method Details

    • inlineCount

      public int inlineCount()
      Gets the inline threshold for the array. If the length of the array does not surpass this value it can be inlined to a single string.
      Returns:
      The inline threshold for the array.
    • inlineComplex

      public boolean inlineComplex()
      Checks if complex objects can be inlined.
      Returns:
      If complex values can be inlined.
    • allowEmpty

      public boolean allowEmpty()
      Checks if the array can be empty.
      Returns:
      If the array can be empty.