Package net.minecraft.client.texture
Class GlTexture
java.lang.Object
net.minecraft.client.texture.DrawableTexture
net.minecraft.client.texture.GlTexture
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/texture/GlTextureintermediary net/minecraft/class_10868official fje
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprivate final Int2IntMapprotected final intprotected booleanFields inherited from class net.minecraft.client.texture.DrawableTexture
clampedU, clampedV, farFilter, hasMipmap, nearFilter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlTexture(String name, TextureType type, int width, int height, int mipLevels, int glId) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()intgetGlId()intgetOrCreateFramebuffer(FramebufferManager fbManager, @Nullable DrawableTexture depthTexture) Gets or creates a framebuffer, which hasthistexture as color attachment, anddepthTextureas depth attachment (or texture '0' if null).voidvoidsetFilter(FilteredTexture near, FilteredTexture far, boolean hasMipMap) Methods inherited from class net.minecraft.client.texture.DrawableTexture
getMipLevels, getMippedHeight, getMippedWidth, getName, getType, setClamp, setFilter
-
Field Details
-
glId
protected final int glId- Mappings:
Namespace Name Mixin selector named glIdLnet/minecraft/client/texture/GlTexture;glId:Iintermediary field_57882Lnet/minecraft/class_10868;field_57882:Iofficial aLfje;a:I
-
depthTexToFramebufferIdCache
- Mappings:
Namespace Name Mixin selector named depthTexToFramebufferIdCacheLnet/minecraft/client/texture/GlTexture;depthTexToFramebufferIdCache:Lit/unimi/dsi/fastutil/ints/Int2IntMap;intermediary field_57885Lnet/minecraft/class_10868;field_57885:Lit/unimi/dsi/fastutil/ints/Int2IntMap;official iLfje;i:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
-
closed
protected boolean closed- Mappings:
Namespace Name Mixin selector named closedLnet/minecraft/client/texture/GlTexture;closed:Zintermediary field_57883Lnet/minecraft/class_10868;field_57883:Zofficial bLfje;b:Z
-
needsReinit
protected boolean needsReinit- Mappings:
Namespace Name Mixin selector named needsReinitLnet/minecraft/client/texture/GlTexture;needsReinit:Zintermediary field_57884Lnet/minecraft/class_10868;field_57884:Zofficial cLfje;c:Z
-
-
Constructor Details
-
GlTexture
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/texture/GlTexture;<init>(Ljava/lang/String;Lnet/minecraft/client/texture/TextureType;IIII)Vintermediary <init>Lnet/minecraft/class_10868;<init>(Ljava/lang/String;Lnet/minecraft/class_10793;IIII)Vofficial <init>Lfje;<init>(Ljava/lang/String;Lflk;IIII)V
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDrawableTexture
-
getOrCreateFramebuffer
public int getOrCreateFramebuffer(FramebufferManager fbManager, @Nullable @Nullable DrawableTexture depthTexture) Gets or creates a framebuffer, which hasthistexture as color attachment, anddepthTextureas depth attachment (or texture '0' if null). The framebuffers created by this method are closed automatically whenclose()is called.- Mappings:
Namespace Name Mixin selector named getOrCreateFramebufferLnet/minecraft/client/texture/GlTexture;getOrCreateFramebuffer(Lnet/minecraft/client/gl/FramebufferManager;Lnet/minecraft/client/texture/DrawableTexture;)Iintermediary method_68426Lnet/minecraft/class_10868;method_68426(Lnet/minecraft/class_10874;Lnet/minecraft/class_10792;)Iofficial aLfje;a(Lfji;Lflj;)I
-
checkDirty
public void checkDirty()- Mappings:
Namespace Name Mixin selector named checkDirtyLnet/minecraft/client/texture/GlTexture;checkDirty()Vintermediary method_68424Lnet/minecraft/class_10868;method_68424()Vofficial aLfje;a()V
-
getGlId
public int getGlId()- Mappings:
Namespace Name Mixin selector named getGlIdLnet/minecraft/client/texture/GlTexture;getGlId()Iintermediary method_68427Lnet/minecraft/class_10868;method_68427()Iofficial bLfje;b()I
-
setClamp
- Overrides:
setClampin classDrawableTexture- Mappings:
Namespace Name Mixin selector named setClampLnet/minecraft/client/texture/DrawableTexture;setClamp(Lnet/minecraft/client/texture/TextureClampMode;Lnet/minecraft/client/texture/TextureClampMode;)Vintermediary method_67782Lnet/minecraft/class_10792;method_67782(Lnet/minecraft/class_10790;Lnet/minecraft/class_10790;)Vofficial aLflj;a(Lflh;Lflh;)V
-
setFilter
- Overrides:
setFilterin classDrawableTexture- Mappings:
Namespace Name Mixin selector named setFilterLnet/minecraft/client/texture/DrawableTexture;setFilter(Lnet/minecraft/client/texture/FilteredTexture;Lnet/minecraft/client/texture/FilteredTexture;Z)Vintermediary method_67783Lnet/minecraft/class_10792;method_67783(Lnet/minecraft/class_10791;Lnet/minecraft/class_10791;Z)Vofficial aLflj;a(Lfli;Lfli;Z)V
-