com.mojang.blaze3d.platform

public final class NativeImage

implements AutoCloseable

dpm
com.mojang.blaze3d.platform.NativeImage
net.minecraft.class_1011
net.minecraft.client.texture.NativeImage
net.minecraft.src.C_3148_

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
a
LOGGER
field_21684
LOGGER
f_84958_
private static final int
b
OFFSET_A
field_32031
ALPHA_OFFSET
f_166396_
private static final int
c
OFFSET_B
field_32032
BLUE_OFFSET
f_166397_
private static final int
d
OFFSET_G
field_32033
GREEN_OFFSET
f_166398_
private static final int
e
OFFSET_R
field_32034
RED_OFFSET
f_166399_
private static final Set<StandardOpenOption>
f
OPEN_OPTIONS
field_4992
WRITE_TO_FILE_OPEN_OPTIONS
f_84959_
private final NativeImage$Format
g
format
field_4986
format
f_84960_
private final int
h
width
field_4991
width
f_84961_
private final int
i
height
field_4989
height
f_84962_
private final boolean
j
useStbFree
field_4990
isStbImage
f_84963_
private long
k
pixels
field_4988
pointer
f_84964_
private final long
l
size
field_4987
sizeBytes
f_84965_

Constructor summary

ModifierConstructor
public (int width, int height, boolean useStb)
public (NativeImage$Format format, int width, int height, boolean useStb)
private (NativeImage$Format format, int width, int height, boolean useStb, long pointer)

Method summary

Modifier and TypeMethod
private boolean
f(int arg0, int arg1)
isOutsideBounds(int arg0, int arg1)
method_36559(int arg0, int arg1)
isOutOfBounds(int x, int y)
m_166422_(int p_166424_, int arg1)
public static NativeImage
a(InputStream arg0)
read(InputStream arg0)
method_4309(InputStream arg0)
read(InputStream stream)
m_85058_(InputStream p_85059_)
public static NativeImage
a(dpm$a arg0, InputStream arg1)
read(NativeImage$Format arg0, InputStream arg1)
method_4310(class_1011$class_1012 arg0, InputStream arg1)
read(NativeImage$Format format, InputStream stream)
m_85048_(C_3148_$C_3150_ p_85049_, InputStream p_85050_)
public static NativeImage
a(ByteBuffer arg0)
read(ByteBuffer arg0)
method_4324(ByteBuffer arg0)
read(ByteBuffer buffer)
m_85062_(ByteBuffer p_85063_)
public static NativeImage
a(dpm$a arg0, ByteBuffer arg1)
read(NativeImage$Format arg0, ByteBuffer arg1)
method_4303(class_1011$class_1012 arg0, ByteBuffer arg1)
read(NativeImage$Format format, ByteBuffer buffer)
m_85051_(C_3148_$C_3150_ p_85052_, ByteBuffer p_85053_)
private static void
a(boolean arg0, boolean arg1)
setFilter(boolean arg0, boolean arg1)
method_4308(boolean arg0, boolean arg1)
setTextureFilter(boolean blur, boolean mipmap)
m_85081_(boolean p_85082_, boolean p_85083_)
private void
i()
checkAllocated()
method_4320()
checkAllocated()
m_85124_()
public void
close()
close()
close()
public int
a()
getWidth()
method_4307()
getWidth()
m_84982_()
public int
b()
getHeight()
method_4323()
getHeight()
m_85084_()
public NativeImage$Format
c()
format()
method_4318()
getFormat()
m_85102_()
public int
a(int arg0, int arg1)
getPixelRGBA(int arg0, int arg1)
method_4315(int arg0, int arg1)
getColor(int x, int y)
m_84985_(int p_84987_, int arg1)
public void
a(int arg0, int arg1, int arg2)
setPixelRGBA(int arg0, int arg1, int arg2)
method_4305(int arg0, int arg1, int arg2)
setColor(int x, int y, int color)
m_84988_(int p_84990_, int p_84991_, int arg2)
public void
a(int arg0, int arg1, byte arg2)
setPixelLuminance(int arg0, int arg1, byte arg2)
method_35621(int arg0, int arg1, byte arg2)
setLuminance(int x, int y, byte luminance)
m_166402_(int p_166404_, int p_166405_, byte arg2)
public byte
b(int arg0, int arg1)
getRedOrLuminance(int arg0, int arg1)
method_35623(int arg0, int arg1)
getRed(int x, int y)
m_166408_(int p_166410_, int arg1)
public byte
c(int arg0, int arg1)
getGreenOrLuminance(int arg0, int arg1)
method_35625(int arg0, int arg1)
getGreen(int x, int y)
m_166415_(int p_166417_, int arg1)
public byte
d(int arg0, int arg1)
getBlueOrLuminance(int arg0, int arg1)
method_35626(int arg0, int arg1)
getBlue(int x, int y)
m_166418_(int p_166420_, int arg1)
public byte
e(int arg0, int arg1)
getLuminanceOrAlpha(int arg0, int arg1)
method_4311(int arg0, int arg1)
getOpacity(int x, int y)
m_85087_(int p_85089_, int arg1)
public void
b(int arg0, int arg1, int arg2)
blendPixel(int arg0, int arg1, int arg2)
method_35624(int arg0, int arg1, int arg2)
blend(int x, int y, int color)
m_166411_(int p_166413_, int p_166414_, int arg2)
public int[]
d()
makePixelArray()
method_4322()
makePixelArray()
m_85118_()
public void
a(int arg0, int arg1, int arg2, boolean arg3)
upload(int arg0, int arg1, int arg2, boolean arg3)
method_4301(int arg0, int arg1, int arg2, boolean arg3)
upload(int level, int offsetX, int offsetY, boolean close)
m_85040_(int p_85042_, int p_85043_, int p_85044_, boolean arg3)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
upload(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
method_4312(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
upload(int level, int offsetX, int offsetY, int unpackSkipPixels, int unpackSkipRows, int width, int height, boolean mipmap, boolean close)
m_85003_(int p_85005_, int p_85006_, int p_85007_, int p_85008_, int p_85009_, int p_85010_, int p_85011_, boolean p_85012_, boolean arg8)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
upload(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
method_22619(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
upload(int level, int offsetX, int offsetY, int unpackSkipPixels, int unpackSkipRows, int width, int height, boolean blur, boolean clamp, boolean mipmap, boolean close)
m_85013_(int p_85015_, int p_85016_, int p_85017_, int p_85018_, int p_85019_, int p_85020_, int p_85021_, boolean p_85022_, boolean p_85023_, boolean p_85024_, boolean arg10)
private void
b(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
_upload(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
method_4321(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
uploadInternal(int level, int offsetX, int offsetY, int unpackSkipPixels, int unpackSkipRows, int width, int height, boolean blur, boolean clamp, boolean mipmap, boolean close)
m_85090_(int p_85092_, int p_85093_, int p_85094_, int p_85095_, int p_85096_, int p_85097_, int p_85098_, boolean p_85099_, boolean p_85100_, boolean p_85101_, boolean arg10)
public void
a(int arg0, boolean arg1)
downloadTexture(int arg0, boolean arg1)
method_4327(int arg0, boolean arg1)
loadFromTextureImage(int level, boolean removeAlpha)
m_85045_(int p_85047_, boolean arg1)
public void
a(float arg0)
downloadDepthBuffer(float arg0)
method_35620(float arg0)
readDepthComponent(float unused)
m_166400_(float arg0)
public void
e()
drawPixels()
method_35627()
drawPixels()
m_166421_()
public void
a(String arg0)
writeToFile(String arg0)
method_35622(String arg0)
writeTo(String path)
m_166406_(String arg0)
public void
a(File arg0)
writeToFile(File arg0)
method_4325(File arg0)
writeTo(File path)
m_85056_(File arg0)
public void
a(org.lwjgl.stb.STBTTFontinfo arg0, int arg1, int arg2, int arg3, float arg4, float arg5, float arg6, float arg7, int arg8, int arg9)
copyFromFont(org.lwjgl.stb.STBTTFontinfo arg0, int arg1, int arg2, int arg3, float arg4, float arg5, float arg6, float arg7, int arg8, int arg9)
method_4316(org.lwjgl.stb.STBTTFontinfo arg0, int arg1, int arg2, int arg3, float arg4, float arg5, float arg6, float arg7, int arg8, int arg9)
makeGlyphBitmapSubpixel(org.lwjgl.stb.STBTTFontinfo fontInfo, int glyphIndex, int width, int height, float scaleX, float scaleY, float shiftX, float shiftY, int startX, int startY)
m_85068_(org.lwjgl.stb.STBTTFontinfo p_85070_, int p_85071_, int p_85072_, int p_85073_, float p_85074_, float p_85075_, float p_85076_, float p_85077_, int p_85078_, int arg9)
public void
a(Path arg0)
writeToFile(Path arg0)
method_4314(Path arg0)
writeTo(Path path)
m_85066_(Path arg0)
public byte[]
f()
asByteArray()
method_24036()
getBytes()
m_85121_()
private boolean
a(WritableByteChannel arg0)
writeToChannel(WritableByteChannel arg0)
method_24032(WritableByteChannel arg0)
write(WritableByteChannel channel)
m_85064_(WritableByteChannel arg0)
public void
a(dpm arg0)
copyFrom(NativeImage arg0)
method_4317(class_1011 arg0)
copyFrom(NativeImage image)
m_85054_(C_3148_ arg0)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4)
fillRect(int arg0, int arg1, int arg2, int arg3, int arg4)
method_4326(int arg0, int arg1, int arg2, int arg3, int arg4)
fillRect(int x, int y, int width, int height, int color)
m_84997_(int p_84999_, int p_85000_, int p_85001_, int p_85002_, int arg4)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, boolean arg6, boolean arg7)
copyRect(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, boolean arg6, boolean arg7)
method_4304(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, boolean arg6, boolean arg7)
copyRect(int x, int y, int translateX, int translateY, int width, int height, boolean flipX, boolean flipY)
m_85025_(int p_85027_, int p_85028_, int p_85029_, int p_85030_, int p_85031_, int p_85032_, boolean p_85033_, boolean arg7)
public void
g()
flipY()
method_4319()
mirrorVertically()
m_85122_()
public void
a(int arg0, int arg1, int arg2, int arg3, dpm arg4)
resizeSubRectTo(int arg0, int arg1, int arg2, int arg3, NativeImage arg4)
method_4300(int arg0, int arg1, int arg2, int arg3, class_1011 arg4)
resizeSubRectTo(int x, int y, int width, int height, NativeImage targetImage)
m_85034_(int p_85036_, int p_85037_, int p_85038_, int p_85039_, C_3148_ arg4)
public void
h()
untrack()
method_4302()
untrack()
m_85123_()
public static NativeImage
b(String arg0)
fromBase64(String arg0)
method_15990(String arg0)
read(String dataUri)
m_85060_(String p_85061_)
public static int
a(int arg0)
getA(int arg0)
method_24030(int arg0)
getAlpha(int color)
m_84983_(int p_84984_)
public static int
b(int arg0)
getR(int arg0)
method_24033(int arg0)
getRed(int color)
m_85085_(int p_85086_)
public static int
c(int arg0)
getG(int arg0)
method_24034(int arg0)
getGreen(int color)
m_85103_(int p_85104_)
public static int
d(int arg0)
getB(int arg0)
method_24035(int arg0)
getBlue(int color)
m_85119_(int p_85120_)
public static int
a(int arg0, int arg1, int arg2, int arg3)
combine(int arg0, int arg1, int arg2, int arg3)
method_24031(int arg0, int arg1, int arg2, int arg3)
packColor(int alpha, int blue, int green, int red)
m_84992_(int p_84993_, int p_84994_, int p_84995_, int p_84996_)