Class RepeatingExtentPattern
java.lang.Object
com.sk89q.worldedit.function.pattern.AbstractPattern
com.sk89q.worldedit.function.pattern.AbstractExtentPattern
com.sk89q.worldedit.function.pattern.RepeatingExtentPattern
- All Implemented Interfaces:
ExtentPattern
,Pattern
- Direct Known Subclasses:
ClipboardPattern
Returns the blocks from
Extent
, repeating when out of bounds.-
Constructor Summary
ConstructorsConstructorDescriptionRepeatingExtentPattern(Extent extent, BlockVector3 origin, BlockVector3 offset)
Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionapplyBlock(BlockVector3 position)
Return aBaseBlock
for the given position.Get the offset.Get the origin.void
setOffset(BlockVector3 offset)
Set the offset.void
setOrigin(BlockVector3 origin)
Set the origin.Methods inherited from class com.sk89q.worldedit.function.pattern.AbstractExtentPattern
getExtent
-
Constructor Details
-
RepeatingExtentPattern
Create a new instance.- Parameters:
extent
- the extentoffset
- the offset
-
-
Method Details
-
getOffset
Get the offset.- Returns:
- the offset
-
setOffset
Set the offset.- Parameters:
offset
- the offset
-
getOrigin
Get the origin.- Returns:
- the origin
-
setOrigin
Set the origin.- Parameters:
origin
- the origin
-
applyBlock
Description copied from interface:Pattern
Return aBaseBlock
for the given position.- Parameters:
position
- the position- Returns:
- a block
-