Class GlTexture

java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
net.minecraft.client.texture.GlTexture
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class GlTexture extends GpuTexture
Mappings:
Namespace Name
named net/minecraft/client/texture/GlTexture
intermediary net/minecraft/class_10868
official fjl
  • 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 Lfjl;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 d Lfjl;d: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 Lfjl;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 Lfjl;c:Z
  • Constructor Details

    • GlTexture

      protected GlTexture(String label, TextureFormat format, int width, int height, int mipLevels, int glId)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/GlTexture;<init>(Ljava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)V
      intermediary <init> Lnet/minecraft/class_10868;<init>(Ljava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)V
      official <init> Lfjl;<init>(Ljava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)V
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in class GpuTexture
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in class GpuTexture
    • getOrCreateFramebuffer

      public int getOrCreateFramebuffer(FramebufferManager manager, @Nullable @Nullable GpuTexture depthTexture)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateFramebuffer Lnet/minecraft/client/texture/GlTexture;getOrCreateFramebuffer(Lnet/minecraft/client/gl/FramebufferManager;Lcom/mojang/blaze3d/textures/GpuTexture;)I
      intermediary method_68426 Lnet/minecraft/class_10868;method_68426(Lnet/minecraft/class_10874;Lcom/mojang/blaze3d/textures/GpuTexture;)I
      official a Lfjl;a(Lfjb;Lcom/mojang/blaze3d/textures/GpuTexture;)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 Lfjl;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 Lfjl;b()I
    • setAddressMode

      public void setAddressMode(AddressMode addressModeU, AddressMode addressModeV)
      Overrides:
      setAddressMode in class GpuTexture
      Mappings:
      Namespace Name Mixin selector
      named setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)V
      intermediary setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)V
      official setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)V
    • setTextureFilter

      public void setTextureFilter(FilterMode minFilter, FilterMode magFilter, boolean useMipmaps)
      Overrides:
      setTextureFilter in class GpuTexture
      Mappings:
      Namespace Name Mixin selector
      named setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)V
      intermediary setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)V
      official setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)V