Class FlatRegionOffset
java.lang.Object
com.sk89q.worldedit.function.util.FlatRegionOffset
- All Implemented Interfaces:
- FlatRegionFunction
Offsets the position parameter by adding a given offset vector.
- 
Constructor SummaryConstructorsConstructorDescriptionFlatRegionOffset(BlockVector2 offset, FlatRegionFunction function) Create a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanapply(BlockVector2 position) Apply the function to the given position.Get the offset that is added to the position.voidsetOffset(BlockVector2 offset) Set the offset that is added to the position.
- 
Constructor Details- 
FlatRegionOffsetCreate a new instance.- Parameters:
- offset- the offset
- function- the function that is called with the offset position
 
 
- 
- 
Method Details- 
getOffsetGet the offset that is added to the position.- Returns:
- the offset
 
- 
setOffsetSet the offset that is added to the position.- Parameters:
- offset- the offset
 
- 
applyDescription copied from interface:FlatRegionFunctionApply the function to the given position.- Specified by:
- applyin interface- FlatRegionFunction
- Parameters:
- position- the position
- Returns:
- true if something was changed
- Throws:
- WorldEditException- thrown on an error
 
 
-