Package hiiragi283.core.api.data.texture
Object HTTextureUtil
-
- All Implemented Interfaces:
public class HTTextureUtil- Since:
0.7.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description public static List<Integer>templatePalettepublic final static HTTextureUtilINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitclearCache()final static List<Integer>getCachedColors(HTIdLike id)final static List<Integer>getCachedColors(ResourceLocation id)final static Result<List<Integer>>getOrCreateColors(ResourceLocation id, ResourceManager manager)final static Result<Palette>getOrCreatePalette(ResourceLocation id, ResourceManager manager)final static PalettewrapToPalette(List<Integer> colors)final static Result<TextureImage>getTexture(ResourceManager manager, Block block)final static Result<TextureImage>getTexture(ResourceManager manager, Item item)-
-
Method Detail
-
clearCache
final static Unit clearCache()
-
getCachedColors
final static List<Integer> getCachedColors(HTIdLike id)
-
getCachedColors
final static List<Integer> getCachedColors(ResourceLocation id)
-
getOrCreateColors
final static Result<List<Integer>> getOrCreateColors(ResourceLocation id, ResourceManager manager)
-
getOrCreatePalette
final static Result<Palette> getOrCreatePalette(ResourceLocation id, ResourceManager manager)
-
wrapToPalette
final static Palette wrapToPalette(List<Integer> colors)
-
getTexture
final static Result<TextureImage> getTexture(ResourceManager manager, Block block)
-
getTexture
final static Result<TextureImage> getTexture(ResourceManager manager, Item item)
-
-
-
-