Class TextureManager
- java.lang.Object
-
- net.minecraft.client.renderer.texture.TextureManager
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ITickable,IFutureReloadListener
public class TextureManager extends java.lang.Object implements IFutureReloadListener, ITickable, java.lang.AutoCloseable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ResourceLocation,Texture>byPathstatic ResourceLocationINTENTIONAL_MISSING_TEXTUREprivate static org.apache.logging.log4j.LoggerLOGGERprivate java.util.Map<java.lang.String,java.lang.Integer>prefixRegisterprivate IResourceManagerresourceManagerprivate java.util.Set<ITickable>tickableTextures
-
Constructor Summary
Constructors Constructor Description TextureManager(IResourceManager p_i1284_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void_bind(ResourceLocation p_229269_1_)voidbind(ResourceLocation p_110577_1_)voidclose()private static voidexecute(java.lang.Runnable p_229262_0_)TexturegetTexture(ResourceLocation p_229267_1_)private TextureloadTexture(ResourceLocation p_230183_1_, Texture p_230183_2_)java.util.concurrent.CompletableFuture<java.lang.Void>preload(ResourceLocation p_215268_1_, java.util.concurrent.Executor p_215268_2_)ResourceLocationregister(java.lang.String p_110578_1_, DynamicTexture p_110578_2_)voidregister(ResourceLocation p_229263_1_, Texture p_229263_2_)voidrelease(ResourceLocation p_147645_1_)java.util.concurrent.CompletableFuture<java.lang.Void>reload(IFutureReloadListener.IStage p_215226_1_, IResourceManager p_215226_2_, IProfiler p_215226_3_, IProfiler p_215226_4_, java.util.concurrent.Executor p_215226_5_, java.util.concurrent.Executor p_215226_6_)private voidsafeClose(ResourceLocation p_243505_1_, Texture p_243505_2_)voidtick()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
INTENTIONAL_MISSING_TEXTURE
public static final ResourceLocation INTENTIONAL_MISSING_TEXTURE
-
byPath
private final java.util.Map<ResourceLocation,Texture> byPath
-
tickableTextures
private final java.util.Set<ITickable> tickableTextures
-
prefixRegister
private final java.util.Map<java.lang.String,java.lang.Integer> prefixRegister
-
resourceManager
private final IResourceManager resourceManager
-
-
Constructor Detail
-
TextureManager
public TextureManager(IResourceManager p_i1284_1_)
-
-
Method Detail
-
bind
public void bind(ResourceLocation p_110577_1_)
-
_bind
private void _bind(ResourceLocation p_229269_1_)
-
register
public void register(ResourceLocation p_229263_1_, Texture p_229263_2_)
-
safeClose
private void safeClose(ResourceLocation p_243505_1_, Texture p_243505_2_)
-
loadTexture
private Texture loadTexture(ResourceLocation p_230183_1_, Texture p_230183_2_)
-
getTexture
@Nullable public Texture getTexture(ResourceLocation p_229267_1_)
-
register
public ResourceLocation register(java.lang.String p_110578_1_, DynamicTexture p_110578_2_)
-
preload
public java.util.concurrent.CompletableFuture<java.lang.Void> preload(ResourceLocation p_215268_1_, java.util.concurrent.Executor p_215268_2_)
-
execute
private static void execute(java.lang.Runnable p_229262_0_)
-
release
public void release(ResourceLocation p_147645_1_)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
reload
public java.util.concurrent.CompletableFuture<java.lang.Void> reload(IFutureReloadListener.IStage p_215226_1_, IResourceManager p_215226_2_, IProfiler p_215226_3_, IProfiler p_215226_4_, java.util.concurrent.Executor p_215226_5_, java.util.concurrent.Executor p_215226_6_)
- Specified by:
reloadin interfaceIFutureReloadListener
-
-