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
official fyr
intermediary net/minecraft/class_1043
named net/minecraft/client/texture/NativeImageBackedTexture
  • Field Details

    • LOGGER

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

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

    • NativeImageBackedTexture

      public NativeImageBackedTexture(NativeImage image)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfyr;<init>(Lekq;)V
      intermediary <init> Lnet/minecraft/class_1043;<init>(Lnet/minecraft/class_1011;)V
      named <init> Lnet/minecraft/client/texture/NativeImageBackedTexture;<init>(Lnet/minecraft/client/texture/NativeImage;)V
    • NativeImageBackedTexture

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

    • load

      public void load(ResourceManager manager)
      Specified by:
      load in class AbstractTexture
      Mappings:
      Namespace Name Mixin selector
      official a Lfyp;a(Lant;)V
      intermediary method_4625 Lnet/minecraft/class_1044;method_4625(Lnet/minecraft/class_3300;)V
      named load Lnet/minecraft/client/texture/AbstractTexture;load(Lnet/minecraft/resource/ResourceManager;)V
    • upload

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

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

      public void setImage(NativeImage image)
      Mappings:
      Namespace Name Mixin selector
      official a Lfyr;a(Lekq;)V
      intermediary method_4526 Lnet/minecraft/class_1043;method_4526(Lnet/minecraft/class_1011;)V
      named setImage Lnet/minecraft/client/texture/NativeImageBackedTexture;setImage(Lnet/minecraft/client/texture/NativeImage;)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
      official a Lfyq;a(Laew;Ljava/nio/file/Path;)V
      intermediary method_49712 Lnet/minecraft/class_8215;method_49712(Lnet/minecraft/class_2960;Ljava/nio/file/Path;)V
      named save Lnet/minecraft/client/texture/DynamicTexture;save(Lnet/minecraft/util/Identifier;Ljava/nio/file/Path;)V