Class RandomFullClipboardPattern
java.lang.Object
com.sk89q.worldedit.function.pattern.AbstractPattern
com.fastasyncworldedit.core.function.pattern.RandomFullClipboardPattern
-
Constructor Summary
ConstructorDescriptionRandomFullClipboardPattern
(List<ClipboardHolder> clipboards, boolean randomRotate, boolean randomFlip) Create a newPattern
instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(Extent extent, BlockVector3 get, BlockVector3 set) applyBlock
(BlockVector3 position) Return aBaseBlock
for the given position.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
appliesChunk, appliesLayer, applyChunk, finishChunk, fork, join
Methods inherited from interface com.sk89q.worldedit.function.pattern.Pattern
apply, applyBlock
-
Constructor Details
-
RandomFullClipboardPattern
public RandomFullClipboardPattern(List<ClipboardHolder> clipboards, boolean randomRotate, boolean randomFlip) Create a newPattern
instance- Parameters:
clipboards
- list of clipboards to choose from. Does not paste airrandomRotate
- if the clipboard should be randomly rotated (through multiples of 90)randomFlip
- if the clipboard should be randomly flipped
-
-
Method Details
-
apply
- Throws:
WorldEditException
-
applyBlock
Description copied from interface:Pattern
Return aBaseBlock
for the given position.- Parameters:
position
- the position- Returns:
- a block
-