Class SaturatePattern
java.lang.Object
com.sk89q.worldedit.function.pattern.AbstractPattern
com.fastasyncworldedit.core.function.pattern.SaturatePattern
-
Constructor Summary
ConstructorDescriptionSaturatePattern
(Extent extent, TextureHolder holder, int r, int g, int b, int a) 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
-
SaturatePattern
Create a newPattern
instance- Parameters:
extent
- extent to set toholder
-TextureHolder
to use to get texturesr
- red channel, clamped 0 -> 255g
- green channel, clamped 0 -> 255b
- blue channel, clamped 0 -> 255a
- alpha channel, clamped 0 -> 255
-
-
Method Details
-
applyBlock
Description copied from interface:Pattern
Return aBaseBlock
for the given position.- Parameters:
position
- the position- Returns:
- a block
-
apply
- Throws:
WorldEditException
-