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