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
ConstructorsConstructorDescriptionRepeatingExtentPattern(Extent extent, BlockVector3 origin, BlockVector3 offset) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionapplyBlock(BlockVector3 position) Return aBaseBlockfor the given position.Get the offset.Get the origin.voidsetOffset(BlockVector3 offset) Set the offset.voidsetOrigin(BlockVector3 origin) Set the origin.Methods inherited from class com.sk89q.worldedit.function.pattern.AbstractExtentPattern
getExtentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finish, 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:PatternReturn aBaseBlockfor the given position.- Parameters:
position- the position- Returns:
- a block
-