Package com.fastasyncworldedit.core.util
Class RandomTextureUtil
java.lang.Object
com.fastasyncworldedit.core.util.TextureUtil
com.fastasyncworldedit.core.util.DelegateTextureUtil
com.fastasyncworldedit.core.util.CachedTextureUtil
com.fastasyncworldedit.core.util.RandomTextureUtil
- All Implemented Interfaces:
TextureHolder
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fastasyncworldedit.core.util.TextureUtil
TextureUtil.BiomeColor
-
Field Summary
Fields inherited from class com.fastasyncworldedit.core.util.TextureUtil
blockColors, blockDistance, distances, validBiomes, validBlockIds, validColors, validLayerBlocks, validLayerColors, validMixBiomeColors, validMixBiomeIds
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
addRandomColor
(int c1, int c2) boolean
getIsBlockCloserThanBiome
(char[] blockAndBiomeIdOutput, int color, int biomePriority) getNearestBiome
(int color) Get the biome most closely matching a color based on the block's average colorgetNearestBlock
(int color) Get the block most closely matching a color based on the block's average colorMethods inherited from class com.fastasyncworldedit.core.util.CachedTextureUtil
getNearestLayer
Methods inherited from class com.fastasyncworldedit.core.util.DelegateTextureUtil
calculateLayerArrays, getBiome, getBiomeMix, getColor, getColor, getDarkerBlock, getDarkerBlock, getFolder, getLighterBlock, getLighterBlock, getNearestBlock, getNearestBlock, getNextNearestBlock, hasAlpha, loadModTextures
Methods inherited from class com.fastasyncworldedit.core.util.TextureUtil
averageColor, averageColor, colorDistance, combineTransparency, fromBlocks, fromClipboard, fromMask, getTextureUtil, getValidBlockIds, hueDistance, multiplyColor
-
Constructor Details
-
RandomTextureUtil
- Throws:
FileNotFoundException
-
-
Method Details
-
addRandomColor
protected int addRandomColor(int c1, int c2) -
getIsBlockCloserThanBiome
public boolean getIsBlockCloserThanBiome(char[] blockAndBiomeIdOutput, int color, int biomePriority) - Overrides:
getIsBlockCloserThanBiome
in classDelegateTextureUtil
-
getNearestBiome
Description copied from class:TextureUtil
Get the biome most closely matching a color based on the block's average color- Overrides:
getNearestBiome
in classCachedTextureUtil
- Parameters:
color
- color to match- Returns:
- matching block
-
getNearestBlock
Description copied from class:TextureUtil
Get the block most closely matching a color based on the block's average color- Overrides:
getNearestBlock
in classCachedTextureUtil
- Parameters:
color
- color to match- Returns:
- matching block
-