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 fmj
  • 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 Lfmj;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 Lfmj;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 Lfmj;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 Lfmj;c:Z
    • refCount

      private int refCount
      Mappings:
      Namespace Name Mixin selector
      named refCount Lnet/minecraft/client/texture/GlTexture;refCount:I
      intermediary field_60565 Lnet/minecraft/class_10868;field_60565:I
      official e Lfmj;e:I
  • Constructor Details

    • GlTexture

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

    • close

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

      private void free()
      Mappings:
      Namespace Name Mixin selector
      named free Lnet/minecraft/client/texture/GlTexture;free()V
      intermediary method_71637 Lnet/minecraft/class_10868;method_71637()V
      official d Lfmj;d()V
    • isClosed

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

      public int getOrCreateFramebuffer(BufferManager manager, @Nullable @Nullable GpuTexture depthTexture)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateFramebuffer Lnet/minecraft/client/texture/GlTexture;getOrCreateFramebuffer(Lnet/minecraft/client/gl/BufferManager;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 Lfmj;a(Lfly;Lcom/mojang/blaze3d/textures/GpuTexture;)I
    • checkDirty

      public void checkDirty(int target)
      Mappings:
      Namespace Name Mixin selector
      named checkDirty Lnet/minecraft/client/texture/GlTexture;checkDirty(I)V
      intermediary method_68424 Lnet/minecraft/class_10868;method_68424(I)V
      official a Lfmj;a(I)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 a Lfmj;a()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
    • setUseMipmaps

      public void setUseMipmaps(boolean useMipmaps)
      Overrides:
      setUseMipmaps in class GpuTexture
      Mappings:
      Namespace Name Mixin selector
      named setUseMipmaps Lcom/mojang/blaze3d/textures/GpuTexture;setUseMipmaps(Z)V
      intermediary setUseMipmaps Lcom/mojang/blaze3d/textures/GpuTexture;setUseMipmaps(Z)V
      official setUseMipmaps Lcom/mojang/blaze3d/textures/GpuTexture;setUseMipmaps(Z)V
    • incrementRefCount

      public void incrementRefCount()
      Mappings:
      Namespace Name Mixin selector
      named incrementRefCount Lnet/minecraft/client/texture/GlTexture;incrementRefCount()V
      intermediary method_71635 Lnet/minecraft/class_10868;method_71635()V
      official b Lfmj;b()V
    • decrementRefCount

      public void decrementRefCount()
      Mappings:
      Namespace Name Mixin selector
      named decrementRefCount Lnet/minecraft/client/texture/GlTexture;decrementRefCount()V
      intermediary method_71636 Lnet/minecraft/class_10868;method_71636()V
      official c Lfmj;c()V