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 private final List<Color>TEMPLATE_PALETTEpublic final static HTTextureUtilINSTANCE
-
Method Summary
Modifier and Type Method Description final static Result<List<Color>>getPalette(ResourceLocation id)final static IntegerargbToFromABGR(Integer argb)final static Result<NativeImage>getTexture(ResourceLocation id)指定したidから既存のテクスチャを取得します。 final static NativeImagecopyFrom(NativeImage other)指定したテクスチャをコピーします。 final List<Color>getTEMPLATE_PALETTE()-
-
Method Detail
-
getPalette
final static Result<List<Color>> getPalette(ResourceLocation id)
-
argbToFromABGR
final static Integer argbToFromABGR(Integer argb)
-
getTexture
final static Result<NativeImage> getTexture(ResourceLocation id)
指定したidから既存のテクスチャを取得します。
- Returns:
idからテクスチャを取得できない場合は
null
-
copyFrom
final static NativeImage copyFrom(NativeImage other)
指定したテクスチャをコピーします。
- Returns:
コピーされたテクスチャ
-
getTEMPLATE_PALETTE
final List<Color> getTEMPLATE_PALETTE()
-
-
-
-