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:
Filter
,ExtentPattern
,Pattern
- Direct Known Subclasses:
ClipboardPattern
Returns the blocks from
Extent
, repeating when out of bounds.-
Constructor Summary
ConstructorDescriptionRepeatingExtentPattern
(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finishChunk, join
-
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
-