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 SummaryNested classes/interfaces inherited from class com.fastasyncworldedit.core.util.TextureUtilTextureUtil.BiomeColor
- 
Field SummaryFields inherited from class com.fastasyncworldedit.core.util.CachedTextureUtilcolorBiomeMap, colorBlockMap, colorLayerMap, parentFields inherited from class com.fastasyncworldedit.core.util.TextureUtilblockColors, blockDistance, distances, validBiomes, validBlockIds, validColors, validLayerBlocks, validLayerColors, validMixBiomeColors, validMixBiomeIds
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected intaddRandomColor(int c1, int c2) fork()Create a copy of thisTextureUtilinstance if required for thread safety.booleangetIsBlockCloserThanBiome(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.CachedTextureUtilgetNearestLayerMethods inherited from class com.fastasyncworldedit.core.util.DelegateTextureUtilcalculateLayerArrays, getBiome, getBiomeMix, getColor, getColor, getDarkerBlock, getDarkerBlock, getFolder, getLighterBlock, getLighterBlock, getNearestBlock, getNearestBlock, getNextNearestBlock, hasAlpha, loadModTexturesMethods inherited from class com.fastasyncworldedit.core.util.TextureUtilaverageColor, averageColor, colorDistance, combineTransparency, fromBlocks, fromClipboard, fromMask, getTextureUtil, getValidBlockIds, hueDistance, multiplyColor
- 
Constructor Details- 
RandomTextureUtil- Throws:
- FileNotFoundException
 
 
- 
- 
Method Details- 
forkDescription copied from class:TextureUtilCreate a copy of thisTextureUtilinstance if required for thread safety.- Overrides:
- forkin class- CachedTextureUtil
- Returns:
- either this TextureUtilinstance if thread safe or a new copied instance.
 
- 
addRandomColorprotected int addRandomColor(int c1, int c2) 
- 
getIsBlockCloserThanBiomepublic boolean getIsBlockCloserThanBiome(char[] blockAndBiomeIdOutput, int color, int biomePriority) - Overrides:
- getIsBlockCloserThanBiomein class- DelegateTextureUtil
 
- 
getNearestBiomeDescription copied from class:TextureUtilGet the biome most closely matching a color based on the block's average color- Overrides:
- getNearestBiomein class- CachedTextureUtil
- Parameters:
- color- color to match
- Returns:
- matching block
 
- 
getNearestBlockDescription copied from class:TextureUtilGet the block most closely matching a color based on the block's average color- Overrides:
- getNearestBlockin class- CachedTextureUtil
- Parameters:
- color- color to match
- Returns:
- matching block
 
 
-