com.mojang.blaze3d.platform

public final class NativeImage

implements AutoCloseable

ekq
com.mojang.blaze3d.platform.NativeImage
net.minecraft.class_1011
net.minecraft.unmapped.C_ayikuhxa
net.minecraft.client.texture.NativeImage
com.mojang.blaze3d.texture.NativeImage
net.minecraft.src.C_3148_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_21684
f_qujwkxcf
LOGGER
LOGGER
f_84958_
private static final Set<StandardOpenOption>
b
OPEN_OPTIONS
field_4992
f_dppjrltv
WRITE_TO_FILE_OPEN_OPTIONS
WRITE_TO_FILE_OPEN_OPTIONS
f_84959_
private final NativeImage$Format
c
format
field_4986
f_lgjuiwho
format
format
f_84960_
private final int
d
width
field_4991
f_bjmzebre
width
width
f_84961_
private final int
e
height
field_4989
f_pkisvsec
height
height
f_84962_
private final boolean
f
useStbFree
field_4990
f_efhfycrj
isStbImage
isStbImage
f_84963_
private long
g
pixels
field_4988
f_fquwrzbn
pointer
pointer
f_84964_
private final long
h
size
field_4987
f_heggcezm
sizeBytes
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)
m_lwuuexce(int arg0, int arg1)
isOutOfBounds(int x, int y)
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)
m_mtdfbkkq(InputStream arg0)
read(InputStream stream)
read(InputStream input)
m_85058_(InputStream p_85059_)
public static NativeImage
a(ekq$a arg0, InputStream arg1)
read(NativeImage$Format arg0, InputStream arg1)
method_4310(class_1011$class_1012 arg0, InputStream arg1)
m_pmafqlsa(C_ayikuhxa$C_pfzicqtf arg0, InputStream arg1)
read(NativeImage$Format format, InputStream stream)
read(NativeImage$Format format, InputStream input)
m_85048_(C_3148_$C_3150_ p_85049_, InputStream p_85050_)
public static NativeImage
a(ByteBuffer arg0)
read(ByteBuffer arg0)
method_4324(ByteBuffer arg0)
m_meplyfkd(ByteBuffer arg0)
read(ByteBuffer buffer)
read(ByteBuffer input)
m_85062_(ByteBuffer p_85063_)
public static NativeImage
a(byte[] arg0)
read(byte[] arg0)
method_49277(byte[] arg0)
m_yellsqcy(byte[] arg0)
read(byte[] bytes)
read(byte[] input)
m_271751_(byte[] p_273041_)
public static NativeImage
a(ekq$a arg0, ByteBuffer arg1)
read(NativeImage$Format arg0, ByteBuffer arg1)
method_4303(class_1011$class_1012 arg0, ByteBuffer arg1)
m_pmrtzukt(C_ayikuhxa$C_pfzicqtf arg0, ByteBuffer arg1)
read(NativeImage$Format format, ByteBuffer buffer)
read(NativeImage$Format format, ByteBuffer input)
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)
m_ayyycohu(boolean arg0, boolean arg1)
setTextureFilter(boolean blur, boolean mipmap)
setTextureFilter(boolean blur, boolean mipmap)
m_85081_(boolean p_85082_, boolean p_85083_)
private void
j()
checkAllocated()
method_4320()
m_obmuolrt()
checkAllocated()
checkAllocated()
m_85124_()
public void
close()
close()
close()
public int
a()
getWidth()
method_4307()
m_fctnexbk()
getWidth()
getWidth()
m_84982_()
public int
b()
getHeight()
method_4323()
m_xqjgvqoz()
getHeight()
getHeight()
m_85084_()
public NativeImage$Format
c()
format()
method_4318()
m_rbxodptg()
getFormat()
getFormat()
m_85102_()
public int
a(int arg0, int arg1)
getPixelRGBA(int arg0, int arg1)
method_4315(int arg0, int arg1)
m_gnawjfwf(int arg0, int arg1)
getColor(int x, int y)
getPixelColor(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)
m_bhuofelc(int arg0, int arg1, int arg2)
setColor(int x, int y, int color)
setPixelColor(int x, int y, int color)
m_84988_(int p_84990_, int p_84991_, int arg2)
public NativeImage
a(IntUnaryOperator arg0)
mappedCopy(IntUnaryOperator arg0)
method_48462(IntUnaryOperator arg0)
m_tgbwsswh(IntUnaryOperator arg0)
applyToCopy(IntUnaryOperator operator)
applyFunctionPerPixel(IntUnaryOperator function)
m_266528_(IntUnaryOperator arg0)
public void
b(IntUnaryOperator arg0)
applyToAllPixels(IntUnaryOperator arg0)
method_51596(IntUnaryOperator arg0)
m_jwryptwt(IntUnaryOperator arg0)
apply(IntUnaryOperator operator)
applyFunction(IntUnaryOperator function)
m_284481_(IntUnaryOperator arg0)
public int[]
d()
getPixelsRGBA()
method_48463()
m_xhrvgcqw()
copyPixelsRgba()
getPixelsRGBA()
m_266370_()
public void
a(int arg0, int arg1, byte arg2)
setPixelLuminance(int arg0, int arg1, byte arg2)
method_35621(int arg0, int arg1, byte arg2)
m_fjcmmtnc(int arg0, int arg1, byte arg2)
setLuminance(int x, int y, byte luminance)
setPixelLuminance(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)
m_guvwjisj(int arg0, int arg1)
getRed(int x, int y)
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)
m_xgqxkptb(int arg0, int arg1)
getGreen(int x, int y)
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)
m_fsgxhjcv(int arg0, int arg1)
getBlue(int x, int y)
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)
m_albcwptm(int arg0, int arg1)
getOpacity(int x, int y)
getPixelOpacity(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)
m_grhlefuk(int arg0, int arg1, int arg2)
blend(int x, int y, int color)
blendPixel(int x, int y, int color)
m_166411_(int p_166413_, int p_166414_, int arg2)
public int[]
e()
makePixelArray()
method_4322()
m_jamgysmq()
makePixelArray()
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)
m_tqikshlo(int arg0, int arg1, int arg2, boolean arg3)
upload(int level, int offsetX, int offsetY, boolean close)
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)
m_iwimness(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)
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)
m_llctgsaf(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)
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)
m_hqirglgj(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)
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)
m_nseursry(int arg0, boolean arg1)
loadFromTextureImage(int level, boolean removeAlpha)
loadFromTextureImage(int level, boolean removeAlpha)
m_85045_(int p_85047_, boolean arg1)
public void
a(float arg0)
downloadDepthBuffer(float arg0)
method_35620(float arg0)
m_ducdocgr(float arg0)
readDepthComponent(float unused)
writeDepthBuffer(float f)
m_166400_(float arg0)
public void
f()
drawPixels()
method_35627()
m_nucpyhdh()
drawPixels()
drawPixels()
m_166421_()
public void
a(File arg0)
writeToFile(File arg0)
method_4325(File arg0)
m_zrxcvcju(File arg0)
writeTo(File path)
writeFile(File output)
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)
m_njvgksno(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)
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)
m_jxaheiam(Path arg0)
writeTo(Path path)
writeFile(Path path)
m_85066_(Path arg0)
public byte[]
g()
asByteArray()
method_24036()
m_glzwbqla()
getBytes()
getBytes()
m_85121_()
private boolean
a(WritableByteChannel arg0)
writeToChannel(WritableByteChannel arg0)
method_24032(WritableByteChannel arg0)
m_topytdjr(WritableByteChannel arg0)
write(WritableByteChannel channel)
write(WritableByteChannel output)
m_85064_(WritableByteChannel arg0)
public void
a(ekq arg0)
copyFrom(NativeImage arg0)
method_4317(class_1011 arg0)
m_urfoahpt(C_ayikuhxa arg0)
copyFrom(NativeImage image)
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)
m_csziyqyg(int arg0, int arg1, int arg2, int arg3, int arg4)
fillRect(int x, int y, int width, int height, int color)
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)
m_hmadgtdg(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)
copyRectangle(int srcX, int srcY, int offsetX, int offsetY, int height, int width, boolean flipHorizontal, boolean flipVertical)
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
a(ekq arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
copyRect(NativeImage arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
method_47594(class_1011 arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
m_vmneozhc(C_ayikuhxa arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
copyRect(NativeImage image, int x, int y, int destX, int destY, int width, int height, boolean flipX, boolean flipY)
copyRectangle(NativeImage image, int srcX, int srcY, int destX, int destY, int height, int width, boolean flipHorizontal, boolean flipVertical)
m_260930_(C_3148_ p_262056_, int p_261490_, int p_261959_, int p_262110_, int p_261522_, int p_261505_, int p_261480_, boolean p_261622_, boolean arg8)
public void
h()
flipY()
method_4319()
m_thoegqhs()
mirrorVertically()
mirrorVertically()
m_85122_()
public void
a(int arg0, int arg1, int arg2, int arg3, ekq 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)
m_bzftrusx(int arg0, int arg1, int arg2, int arg3, C_ayikuhxa arg4)
resizeSubRectTo(int x, int y, int width, int height, NativeImage targetImage)
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
i()
untrack()
method_4302()
m_oyjcjnbx()
untrack()
untrack()
m_85123_()