com.mojang.blaze3d.platform

public final class NativeImage

implements AutoCloseable

faj
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.slf4j.Logger
a
LOGGER
field_21684
LOGGER
f_84958_
private static final Set<StandardOpenOption>
b
OPEN_OPTIONS
field_4992
WRITE_TO_FILE_OPEN_OPTIONS
f_84959_
private final NativeImage$Format
c
format
field_4986
format
f_84960_
private final int
d
width
field_4991
width
f_84961_
private final int
e
height
field_4989
height
f_84962_
private final boolean
f
useStbFree
field_4990
isStbImage
f_84963_
private long
g
pixels
field_4988
pointer
f_84964_
private final long
h
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(faj$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(byte[] arg0)
read(byte[] arg0)
method_49277(byte[] arg0)
read(byte[] bytes)
m_271751_(byte[] p_273041_)
public static NativeImage
a(faj$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
j()
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 NativeImage
a(IntUnaryOperator arg0)
mappedCopy(IntUnaryOperator arg0)
method_48462(IntUnaryOperator arg0)
applyToCopy(IntUnaryOperator operator)
m_266528_(IntUnaryOperator arg0)
public void
b(IntUnaryOperator arg0)
applyToAllPixels(IntUnaryOperator arg0)
method_51596(IntUnaryOperator arg0)
apply(IntUnaryOperator operator)
m_284481_(IntUnaryOperator arg0)
public int[]
d()
getPixelsRGBA()
method_48463()
copyPixelsRgba()
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)
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[]
e()
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
f()
drawPixels()
method_35627()
drawPixels()
m_166421_()
public void
a(File arg0)
writeToFile(File arg0)
method_4325(File arg0)
writeTo(File path)
m_85056_(File arg0)
public boolean
a(org.lwjgl.util.freetype.FT_Face arg0, int arg1)
copyFromFont(org.lwjgl.util.freetype.FT_Face arg0, int arg1)
method_4316(org.lwjgl.util.freetype.FT_Face arg0, int arg1)
makeGlyphBitmapSubpixel(org.lwjgl.util.freetype.FT_Face face, int glyphIndex)
m_85068_(org.lwjgl.util.freetype.FT_Face p_85070_, int arg1)
public void
a(Path arg0)
writeToFile(Path arg0)
method_4314(Path arg0)
writeTo(Path path)
m_85066_(Path arg0)
public byte[]
g()
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(faj 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
a(faj 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)
copyRect(NativeImage image, int x, int y, int destX, int destY, int width, int height, boolean flipX, boolean flipY)
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()
mirrorVertically()
m_85122_()
public void
a(int arg0, int arg1, int arg2, int arg3, faj 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
i()
untrack()
method_4302()
untrack()
m_85123_()