Class MaskProperty
java.lang.Object
com.ryandw11.structure.structure.properties.MaskProperty
A mask configuration property.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Contains the two options for masks. -
Constructor Summary
ConstructorDescriptionMaskProperty(String name, org.bukkit.configuration.file.FileConfiguration configuration)
Create the MaskProperty from a configuration file.MaskProperty(List<com.sk89q.worldedit.function.mask.Mask> masks, MaskProperty.MaskUnion unionType)
Construct MaskProperty -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMask(com.sk89q.worldedit.function.mask.Mask mask)
Add a mask.List<com.sk89q.worldedit.function.mask.Mask>
getMasks()
Get the list of masksList<com.sk89q.worldedit.function.mask.Mask>
getMasks(com.sk89q.worldedit.extent.Extent extent)
Get the list of masks with a certain extent.Get the union type.void
Set the union type.
-
Constructor Details
-
MaskProperty
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
Get the union type.- Returns:
- The union type.
-
setUnionType
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
Get the list of masksNote: 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.
-