Class NativeImageBackedTexture

java.lang.Object
net.minecraft.client.texture.AbstractTexture
net.minecraft.client.texture.NativeImageBackedTexture
All Implemented Interfaces:
AutoCloseable, DynamicTexture

@Environment(CLIENT) public class NativeImageBackedTexture extends AbstractTexture implements DynamicTexture
Mappings:
Namespace Name
named net/minecraft/client/texture/NativeImageBackedTexture
intermediary net/minecraft/class_1043
official hre
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/texture/NativeImageBackedTexture;LOGGER:Lorg/slf4j/Logger;
      intermediary field_25794 Lnet/minecraft/class_1043;field_25794:Lorg/slf4j/Logger;
      official c Lhre;c:Lorg/slf4j/Logger;
    • image

      Mappings:
      Namespace Name Mixin selector
      named image Lnet/minecraft/client/texture/NativeImageBackedTexture;image:Lnet/minecraft/client/texture/NativeImage;
      intermediary field_5200 Lnet/minecraft/class_1043;field_5200:Lnet/minecraft/class_1011;
      official d Lhre;d:Lfne;
  • Constructor Details

    • NativeImageBackedTexture

      public NativeImageBackedTexture(Supplier<String> nameSupplier, NativeImage image)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/NativeImageBackedTexture;<init>(Ljava/util/function/Supplier;Lnet/minecraft/client/texture/NativeImage;)V
      intermediary <init> Lnet/minecraft/class_1043;<init>(Ljava/util/function/Supplier;Lnet/minecraft/class_1011;)V
      official <init> Lhre;<init>(Ljava/util/function/Supplier;Lfne;)V
    • NativeImageBackedTexture

      public NativeImageBackedTexture(String name, int width, int height, boolean useStb)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/NativeImageBackedTexture;<init>(Ljava/lang/String;IIZ)V
      intermediary <init> Lnet/minecraft/class_1043;<init>(Ljava/lang/String;IIZ)V
      official <init> Lhre;<init>(Ljava/lang/String;IIZ)V
    • NativeImageBackedTexture

      public NativeImageBackedTexture(Supplier<String> nameSupplier, int width, int height, boolean useStb)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/NativeImageBackedTexture;<init>(Ljava/util/function/Supplier;IIZ)V
      intermediary <init> Lnet/minecraft/class_1043;<init>(Ljava/util/function/Supplier;IIZ)V
      official <init> Lhre;<init>(Ljava/util/function/Supplier;IIZ)V
  • Method Details

    • createTexture

      private void createTexture(Supplier<String> nameSupplier)
      Mappings:
      Namespace Name Mixin selector
      named createTexture Lnet/minecraft/client/texture/NativeImageBackedTexture;createTexture(Ljava/util/function/Supplier;)V
      intermediary method_71142 Lnet/minecraft/class_1043;method_71142(Ljava/util/function/Supplier;)V
      official a Lhre;a(Ljava/util/function/Supplier;)V
    • createTexture

      private void createTexture(String name)
      Mappings:
      Namespace Name Mixin selector
      named createTexture Lnet/minecraft/client/texture/NativeImageBackedTexture;createTexture(Ljava/lang/String;)V
      intermediary method_71141 Lnet/minecraft/class_1043;method_71141(Ljava/lang/String;)V
      official a Lhre;a(Ljava/lang/String;)V
    • upload

      public void upload()
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/texture/NativeImageBackedTexture;upload()V
      intermediary method_4524 Lnet/minecraft/class_1043;method_4524()V
      official c Lhre;c()V
    • getImage

      @Nullable public @Nullable NativeImage getImage()
      Mappings:
      Namespace Name Mixin selector
      named getImage Lnet/minecraft/client/texture/NativeImageBackedTexture;getImage()Lnet/minecraft/client/texture/NativeImage;
      intermediary method_4525 Lnet/minecraft/class_1043;method_4525()Lnet/minecraft/class_1011;
      official d Lhre;d()Lfne;
    • setImage

      public void setImage(NativeImage image)
      Mappings:
      Namespace Name Mixin selector
      named setImage Lnet/minecraft/client/texture/NativeImageBackedTexture;setImage(Lnet/minecraft/client/texture/NativeImage;)V
      intermediary method_4526 Lnet/minecraft/class_1043;method_4526(Lnet/minecraft/class_1011;)V
      official a Lhre;a(Lfne;)V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class AbstractTexture
    • save

      public void save(Identifier id, Path path) throws IOException
      Specified by:
      save in interface DynamicTexture
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named save Lnet/minecraft/client/texture/DynamicTexture;save(Lnet/minecraft/util/Identifier;Ljava/nio/file/Path;)V
      intermediary method_49712 Lnet/minecraft/class_8215;method_49712(Lnet/minecraft/class_2960;Ljava/nio/file/Path;)V
      official a Lhrd;a(Lame;Ljava/nio/file/Path;)V