Package codechicken.lib.texture
Class TextureUtils
java.lang.Object
codechicken.lib.texture.TextureUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopySubImg(int[] fromTex, int fromWidth, int fromX, int fromY, int width, int height, int[] toTex, int toWidth, int toX, int toY) static BufferedImagestatic @Nullable BufferedImageloadBufferedImage(net.minecraft.resources.Identifier textureFile) static Colour[]loadTextureColours(net.minecraft.resources.Identifier resource) static int[]loadTextureData(net.minecraft.resources.Identifier resource)
-
Constructor Details
-
TextureUtils
public TextureUtils()
-
-
Method Details
-
loadTextureData
public static int[] loadTextureData(net.minecraft.resources.Identifier resource) - Returns:
- an array of ARGB pixel data
-
loadTextureColours
-
loadBufferedImage
@Nullable public static @Nullable BufferedImage loadBufferedImage(net.minecraft.resources.Identifier textureFile) -
loadBufferedImage
- Throws:
IOException
-
copySubImg
public static void copySubImg(int[] fromTex, int fromWidth, int fromX, int fromY, int width, int height, int[] toTex, int toWidth, int toX, int toY)
-