Class GlTexture

java.lang.Object
net.minecraft.client.texture.DrawableTexture
net.minecraft.client.texture.GlTexture
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class GlTexture extends DrawableTexture
Mappings:
Namespace Name
named net/minecraft/client/texture/GlTexture
intermediary net/minecraft/class_10868
official fje
  • Field Details

    • glId

      protected final int glId
      Mappings:
      Namespace Name Mixin selector
      named glId Lnet/minecraft/client/texture/GlTexture;glId:I
      intermediary field_57882 Lnet/minecraft/class_10868;field_57882:I
      official a Lfje;a:I
    • depthTexToFramebufferIdCache

      private final Int2IntMap depthTexToFramebufferIdCache
      Mappings:
      Namespace Name Mixin selector
      named depthTexToFramebufferIdCache Lnet/minecraft/client/texture/GlTexture;depthTexToFramebufferIdCache:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
      intermediary field_57885 Lnet/minecraft/class_10868;field_57885:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
      official i Lfje;i:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
    • closed

      protected boolean closed
      Mappings:
      Namespace Name Mixin selector
      named closed Lnet/minecraft/client/texture/GlTexture;closed:Z
      intermediary field_57883 Lnet/minecraft/class_10868;field_57883:Z
      official b Lfje;b:Z
    • needsReinit

      protected boolean needsReinit
      Mappings:
      Namespace Name Mixin selector
      named needsReinit Lnet/minecraft/client/texture/GlTexture;needsReinit:Z
      intermediary field_57884 Lnet/minecraft/class_10868;field_57884:Z
      official c Lfje;c:Z
  • Constructor Details

    • GlTexture

      protected GlTexture(String name, TextureType type, int width, int height, int mipLevels, int glId)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/GlTexture;<init>(Ljava/lang/String;Lnet/minecraft/client/texture/TextureType;IIII)V
      intermediary <init> Lnet/minecraft/class_10868;<init>(Ljava/lang/String;Lnet/minecraft/class_10793;IIII)V
      official <init> Lfje;<init>(Ljava/lang/String;Lflk;IIII)V
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in class DrawableTexture
    • getOrCreateFramebuffer

      public int getOrCreateFramebuffer(FramebufferManager fbManager, @Nullable @Nullable DrawableTexture depthTexture)
      Gets or creates a framebuffer, which has this texture as color attachment, and depthTexture as depth attachment (or texture '0' if null). The framebuffers created by this method are closed automatically when close() is called.
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateFramebuffer Lnet/minecraft/client/texture/GlTexture;getOrCreateFramebuffer(Lnet/minecraft/client/gl/FramebufferManager;Lnet/minecraft/client/texture/DrawableTexture;)I
      intermediary method_68426 Lnet/minecraft/class_10868;method_68426(Lnet/minecraft/class_10874;Lnet/minecraft/class_10792;)I
      official a Lfje;a(Lfji;Lflj;)I
    • checkDirty

      public void checkDirty()
      Mappings:
      Namespace Name Mixin selector
      named checkDirty Lnet/minecraft/client/texture/GlTexture;checkDirty()V
      intermediary method_68424 Lnet/minecraft/class_10868;method_68424()V
      official a Lfje;a()V
    • getGlId

      public int getGlId()
      Mappings:
      Namespace Name Mixin selector
      named getGlId Lnet/minecraft/client/texture/GlTexture;getGlId()I
      intermediary method_68427 Lnet/minecraft/class_10868;method_68427()I
      official b Lfje;b()I
    • setClamp

      public void setClamp(TextureClampMode u, TextureClampMode v)
      Overrides:
      setClamp in class DrawableTexture
      Mappings:
      Namespace Name Mixin selector
      named setClamp Lnet/minecraft/client/texture/DrawableTexture;setClamp(Lnet/minecraft/client/texture/TextureClampMode;Lnet/minecraft/client/texture/TextureClampMode;)V
      intermediary method_67782 Lnet/minecraft/class_10792;method_67782(Lnet/minecraft/class_10790;Lnet/minecraft/class_10790;)V
      official a Lflj;a(Lflh;Lflh;)V
    • setFilter

      public void setFilter(FilteredTexture near, FilteredTexture far, boolean hasMipMap)
      Overrides:
      setFilter in class DrawableTexture
      Mappings:
      Namespace Name Mixin selector
      named setFilter Lnet/minecraft/client/texture/DrawableTexture;setFilter(Lnet/minecraft/client/texture/FilteredTexture;Lnet/minecraft/client/texture/FilteredTexture;Z)V
      intermediary method_67783 Lnet/minecraft/class_10792;method_67783(Lnet/minecraft/class_10791;Lnet/minecraft/class_10791;Z)V
      official a Lflj;a(Lfli;Lfli;Z)V