Uses of Class
com.mojang.blaze3d.platform.NativeImage
Packages that use NativeImage
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of NativeImage in com.mojang.blaze3d.opengl
Methods in com.mojang.blaze3d.opengl with parameters of type NativeImageModifier and TypeMethodDescriptionvoidGlCommandEncoder.writeToTexture(GpuTexture destination, NativeImage source, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height, int sourceX, int sourceY) -
Uses of NativeImage in com.mojang.blaze3d.platform
Methods in com.mojang.blaze3d.platform that return NativeImageModifier and TypeMethodDescriptionNativeImage.mappedCopy(IntUnaryOperator function) private static NativeImageNativeImage.putAndRead(ByteBuffer nativeBuffer, byte[] bytes) static NativeImageNativeImage.read(byte[] bytes) static NativeImageNativeImage.read(@Nullable NativeImage.Format format, InputStream inputStream) static NativeImageNativeImage.read(@Nullable NativeImage.Format format, ByteBuffer bytes) static NativeImageNativeImage.read(InputStream inputStream) static NativeImageNativeImage.read(ByteBuffer bytes) Methods in com.mojang.blaze3d.platform with parameters of type NativeImageModifier and TypeMethodDescriptionvoidNativeImage.copyFrom(NativeImage from) voidNativeImage.copyRect(NativeImage target, int sourceX, int sourceY, int targetX, int targetY, int sizeX, int sizeY, boolean swapX, boolean swapY) static voidTextureUtil.fillEmptyAreasWithDarkColor(NativeImage image) voidNativeImage.resizeSubRectTo(int sourceX, int sourceY, int sizeX, int sizeY, NativeImage to) static voidTextureUtil.solidify(NativeImage image) -
Uses of NativeImage in com.mojang.blaze3d.systems
Methods in com.mojang.blaze3d.systems with parameters of type NativeImageModifier and TypeMethodDescriptionvoidCommandEncoder.writeToTexture(GpuTexture destination, NativeImage source) voidCommandEncoder.writeToTexture(GpuTexture destination, NativeImage source, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height, int sourceX, int sourceY) voidCommandEncoderBackend.writeToTexture(GpuTexture destination, NativeImage source, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height, int sourceX, int sourceY) -
Uses of NativeImage in com.mojang.realmsclient.util
Methods in com.mojang.realmsclient.util that return NativeImage -
Uses of NativeImage in net.minecraft.client
Method parameters in net.minecraft.client with type arguments of type NativeImageModifier and TypeMethodDescriptionstatic voidScreenshot.takeScreenshot(RenderTarget target, int downscaleFactor, Consumer<NativeImage> callback) static voidScreenshot.takeScreenshot(RenderTarget target, Consumer<NativeImage> callback) -
Uses of NativeImage in net.minecraft.client.gui.font.glyphs
Fields in net.minecraft.client.gui.font.glyphs declared as NativeImageMethods in net.minecraft.client.gui.font.glyphs that return NativeImageModifier and TypeMethodDescriptionprivate static NativeImageSpecialGlyphs.generate(int width, int height, SpecialGlyphs.PixelProvider pixelProvider) Constructor parameters in net.minecraft.client.gui.font.glyphs with type arguments of type NativeImage -
Uses of NativeImage in net.minecraft.client.gui.font.providers
Fields in net.minecraft.client.gui.font.providers declared as NativeImageModifier and TypeFieldDescriptionprivate final NativeImageBitmapProvider.Glyph.imageThe field for theimagerecord component.private final NativeImageBitmapProvider.imageMethods in net.minecraft.client.gui.font.providers that return NativeImageModifier and TypeMethodDescriptionBitmapProvider.Glyph.image()Returns the value of theimagerecord component.Methods in net.minecraft.client.gui.font.providers with parameters of type NativeImageModifier and TypeMethodDescriptionprivate intBitmapProvider.Definition.getActualGlyphWidth(NativeImage image, int glyphWidth, int glyphHeight, int xGlyph, int yGlyph) Constructors in net.minecraft.client.gui.font.providers with parameters of type NativeImageModifierConstructorDescriptionprivateBitmapProvider(NativeImage image, CodepointMap<BitmapProvider.Glyph> glyphs) privateGlyph(float scale, NativeImage image, int offsetX, int offsetY, int width, int height, int advance, int ascent) Creates an instance of aGlyphrecord class. -
Uses of NativeImage in net.minecraft.client.gui.screens
Methods in net.minecraft.client.gui.screens with parameters of type NativeImage -
Uses of NativeImage in net.minecraft.client.renderer.texture
Fields in net.minecraft.client.renderer.texture declared as NativeImageModifier and TypeFieldDescriptionSpriteContents.byMipLevelprivate final NativeImageTextureContents.imageThe field for theimagerecord component.private final NativeImageSpriteContents.originalImageprivate NativeImageDynamicTexture.pixelsMethods in net.minecraft.client.renderer.texture that return NativeImageModifier and TypeMethodDescriptionprivate NativeImageSkinTextureDownloader.downloadSkin(Path localCopy, String url) static NativeImage[]MipmapGenerator.generateMipLevels(Identifier name, NativeImage[] currentMips, int newMipLevel, MipmapStrategy mipmapStrategy, float alphaCutoffBias, Transparency transparency) static NativeImageMissingTextureAtlasSprite.generateMissingImage()static NativeImageMissingTextureAtlasSprite.generateMissingImage(int width, int height) SpriteContents.getOriginalImage()DynamicTexture.getPixels()TextureContents.image()Returns the value of theimagerecord component.private static NativeImageSkinTextureDownloader.processLegacySkin(NativeImage image, String url) Methods in net.minecraft.client.renderer.texture with parameters of type NativeImageModifier and TypeMethodDescriptionprivate static floatMipmapGenerator.alphaTestCoverage(NativeImage image, float alphaRef, float alphaScale) protected voidCubeMapTexture.doLoad(NativeImage image) protected voidReloadableTexture.doLoad(NativeImage image) private static voidSkinTextureDownloader.doNotchTransparencyHack(NativeImage image, int x0, int y0, int x1, int y1) static NativeImage[]MipmapGenerator.generateMipLevels(Identifier name, NativeImage[] currentMips, int newMipLevel, MipmapStrategy mipmapStrategy, float alphaCutoffBias, Transparency transparency) private static NativeImageSkinTextureDownloader.processLegacySkin(NativeImage image, String url) private CompletableFuture<ClientAsset.Texture> SkinTextureDownloader.registerTextureInManager(ClientAsset.Texture textureId, NativeImage contents) private static voidMipmapGenerator.scaleAlphaToCoverage(NativeImage image, float desiredCoverage, float alphaRef, float alphaCutoffBias) private static voidSkinTextureDownloader.setNoAlpha(NativeImage image, int x0, int y0, int x1, int y1) voidDynamicTexture.setPixels(NativeImage pixels) Constructors in net.minecraft.client.renderer.texture with parameters of type NativeImageModifierConstructorDescriptionDynamicTexture(Supplier<String> label, NativeImage image) SpriteContents(Identifier name, FrameSize frameSize, NativeImage image) SpriteContents(Identifier name, FrameSize frameSize, NativeImage image, Optional<AnimationMetadataSection> animationInfo, List<MetadataSectionType.WithValue<?>> additionalMetadata, Optional<TextureMetadataSection> textureInfo) TextureContents(NativeImage image, @Nullable TextureMetadataSection metadata) Creates an instance of aTextureContentsrecord class. -
Uses of NativeImage in net.minecraft.client.renderer.texture.atlas.sources
Fields in net.minecraft.client.renderer.texture.atlas.sources with type parameters of type NativeImageModifier and TypeFieldDescriptionprivate final AtomicReference<@Nullable NativeImage> LazyLoadedImage.imageMethods in net.minecraft.client.renderer.texture.atlas.sources that return NativeImage -
Uses of NativeImage in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type NativeImageModifier and TypeMethodDescriptionstatic ScreenshotEventClientHooks.onScreenshot(NativeImage image, File screenshotFile) -
Uses of NativeImage in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as NativeImageMethods in net.neoforged.neoforge.client.event that return NativeImageModifier and TypeMethodDescriptionScreenshotEvent.getImage()Returns the in-memory image of the screenshot.Constructors in net.neoforged.neoforge.client.event with parameters of type NativeImage -
Uses of NativeImage in net.neoforged.neoforge.client.textures
Methods in net.neoforged.neoforge.client.textures with parameters of type NativeImageModifier and TypeMethodDescription@Nullable SpriteContentsSpriteContentsConstructor.create(Identifier id, FrameSize frameSize, NativeImage nativeImage, Optional<AnimationMetadataSection> animationMetadata, List<MetadataSectionType.WithValue<?>> additionalMetadata, Optional<TextureMetadataSection> textureMetadata) Construct an instance of SpriteContents or return null to not load the sprite.