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>
byPath
static ResourceLocation
INTENTIONAL_MISSING_TEXTURE
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.Map<java.lang.String,java.lang.Integer>
prefixRegister
private IResourceManager
resourceManager
private 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_)
void
bind(ResourceLocation p_110577_1_)
void
close()
private static void
execute(java.lang.Runnable p_229262_0_)
Texture
getTexture(ResourceLocation p_229267_1_)
private Texture
loadTexture(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_)
ResourceLocation
register(java.lang.String p_110578_1_, DynamicTexture p_110578_2_)
void
register(ResourceLocation p_229263_1_, Texture p_229263_2_)
void
release(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 void
safeClose(ResourceLocation p_243505_1_, Texture p_243505_2_)
void
tick()
-
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:
close
in 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:
reload
in interfaceIFutureReloadListener
-
-