Package dev.latvian.mods.kubejs.client
Class LoadedTexture
java.lang.Object
dev.latvian.mods.kubejs.client.LoadedTexture
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLoadedTexture(int width, int height, int[] pixels, @org.jetbrains.annotations.Nullable byte[] mcmeta) LoadedTexture(BufferedImage img, @org.jetbrains.annotations.Nullable byte[] mcmeta) -
Method Summary
Modifier and TypeMethodDescriptioncopy()static LoadedTextureload(net.minecraft.resources.ResourceLocation id) resize(int newWidth, int newHeight) byte[]toBytes()
-
Field Details
-
EMPTY
-
width
public final int width -
height
public final int height -
pixels
public final int[] pixels -
mcmeta
public final byte[] mcmeta
-
-
Constructor Details
-
LoadedTexture
public LoadedTexture(int width, int height, int[] pixels, @Nullable @org.jetbrains.annotations.Nullable byte[] mcmeta) -
LoadedTexture
public LoadedTexture(BufferedImage img, @Nullable @org.jetbrains.annotations.Nullable byte[] mcmeta)
-
-
Method Details
-
load
-
toBytes
public byte[] toBytes() -
copy
-
remap
-
resize
-
tint
-