Class MaskProperty

java.lang.Object
com.ryandw11.structure.structure.properties.MaskProperty

public class MaskProperty extends Object
A mask configuration property.
  • Constructor Details

    • MaskProperty

      public MaskProperty(String name, org.bukkit.configuration.file.FileConfiguration configuration)
      Create the MaskProperty from a configuration file.
      Parameters:
      name - The name of the mask configuration section.
      configuration - The configuration file.
    • MaskProperty

      public MaskProperty(List<com.sk89q.worldedit.function.mask.Mask> masks, MaskProperty.MaskUnion unionType)
      Construct MaskProperty
      Parameters:
      masks - The list of masks.
      unionType - The mask union type.
  • Method Details

    • getUnionType

      public MaskProperty.MaskUnion getUnionType()
      Get the union type.
      Returns:
      The union type.
    • setUnionType

      public void setUnionType(MaskProperty.MaskUnion type)
      Set the union type.
      Parameters:
      type - The union type.
    • addMask

      public void addMask(com.sk89q.worldedit.function.mask.Mask mask)
      Add a mask.

      These masks are from the WorldEdit API.

      Parameters:
      mask - The mask to add.
    • getMasks

      public List<com.sk89q.worldedit.function.mask.Mask> getMasks()
      Get the list of masks

      Note: The extents of the masks are mutated by the plugin.

      Returns:
      The list of masks.
    • getMasks

      public List<com.sk89q.worldedit.function.mask.Mask> getMasks(com.sk89q.worldedit.extent.Extent extent)
      Get the list of masks with a certain extent.

      Normal the Clipboard extent is used.

      Parameters:
      extent - The extent to use.
      Returns:
      The list of masks.