Package com.fastasyncworldedit.core.util
Class CachedTextureUtil
java.lang.Object
com.fastasyncworldedit.core.util.TextureUtil
com.fastasyncworldedit.core.util.DelegateTextureUtil
com.fastasyncworldedit.core.util.CachedTextureUtil
- All Implemented Interfaces:
TextureHolder
- Direct Known Subclasses:
RandomTextureUtil
-
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 TypeMethodDescriptiongetNearestBiome
(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 colorgetNearestLayer
(int color) Returns the block combined ids as an array.Methods inherited from class com.fastasyncworldedit.core.util.DelegateTextureUtil
calculateLayerArrays, getBiome, getBiomeMix, getColor, getColor, getDarkerBlock, getDarkerBlock, getFolder, getIsBlockCloserThanBiome, 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
-
CachedTextureUtil
- Throws:
FileNotFoundException
-
-
Method Details
-
getNearestLayer
Description copied from class:TextureUtil
Returns the block combined ids as an array.- Overrides:
getNearestLayer
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 classDelegateTextureUtil
- 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 classDelegateTextureUtil
- Parameters:
color
- color to match- Returns:
- matching block
-