public class RepeatingExtentPattern extends AbstractExtentPattern
Extent
, repeating when out of bounds.Constructor and Description |
---|
RepeatingExtentPattern(Extent extent,
BlockVector3 origin,
BlockVector3 offset)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
BaseBlock |
applyBlock(BlockVector3 position)
Return a
BaseBlock for the given position. |
BlockVector3 |
getOffset()
Get the offset.
|
BlockVector3 |
getOrigin()
Get the origin.
|
void |
setOffset(BlockVector3 offset)
Set the offset.
|
void |
setOrigin(BlockVector3 origin)
Set the origin.
|
getExtent
public RepeatingExtentPattern(Extent extent, BlockVector3 origin, BlockVector3 offset)
extent
- the extentoffset
- the offsetpublic BlockVector3 getOffset()
public void setOffset(BlockVector3 offset)
offset
- the offsetpublic BlockVector3 getOrigin()
public void setOrigin(BlockVector3 origin)
origin
- the originpublic BaseBlock applyBlock(BlockVector3 position)
Pattern
BaseBlock
for the given position.position
- the position