Class TextureManager
java.lang.Object
net.minecraft.client.renderer.texture.TextureManager
- All Implemented Interfaces:
AutoCloseable,Tickable,PreparableReloadListener
public class TextureManager
extends Object
implements PreparableReloadListener, Tickable, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation, AbstractTexture> static final ResourceLocationprivate static final org.slf4j.Loggerprivate final ResourceManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void_bind(ResourceLocation path) private void_dumpAllSheets(Path path) voidbindForSetup(ResourceLocation path) voidclose()voiddumpAllSheets(Path path) private static voidgetTexture(ResourceLocation path) getTexture(ResourceLocation path, AbstractTexture defaultTexture) private AbstractTextureloadTexture(ResourceLocation path, AbstractTexture texture) preload(ResourceLocation path, Executor backgroundExecutor) register(String name, DynamicTexture texture) voidregister(ResourceLocation path, AbstractTexture texture) voidrelease(ResourceLocation path) reload(PreparableReloadListener.PreparationBarrier stage, ResourceManager resourceManager, ProfilerFiller preparationsProfiler, ProfilerFiller reloadProfiler, Executor backgroundExecutor, Executor gameExecutor) private voidsafeClose(ResourceLocation path, AbstractTexture texture) voidtick()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
INTENTIONAL_MISSING_TEXTURE
-
byPath
-
tickableTextures
-
prefixRegister
-
resourceManager
-
-
Constructor Details
-
TextureManager
-
-
Method Details
-
bindForSetup
-
_bind
-
register
-
safeClose
-
loadTexture
-
getTexture
-
getTexture
-
register
-
preload
-
execute
-
tick
public void tick() -
release
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier stage, ResourceManager resourceManager, ProfilerFiller preparationsProfiler, ProfilerFiller reloadProfiler, Executor backgroundExecutor, Executor gameExecutor) - Specified by:
reloadin interfacePreparableReloadListener
-
dumpAllSheets
-
_dumpAllSheets
-