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 ClassesModifier and TypeClassDescription(package private) static final recordNested 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 TypeMethodDescriptionvoidclose()voiddumpAllSheets(Path pPath) getTexture(ResourceLocation pPath) private static TextureContentsloadContents(ResourceManager pResourceManager, ResourceLocation pTextureId, ReloadableTexture pTexture) private TextureContentsloadContentsSafe(ResourceLocation pTextureId, ReloadableTexture pTexture) voidregister(ResourceLocation pPath, AbstractTexture pTexture) voidregisterAndLoad(ResourceLocation pTextureId, ReloadableTexture pTexture) voidregisterForNextReload(ResourceLocation pTextureId) voidrelease(ResourceLocation pPath) reload(PreparableReloadListener.PreparationBarrier pBarrier, ResourceManager pManager, Executor pBackgroundExecutor, Executor pGameExecutor) private voidsafeClose(ResourceLocation p_118509_, AbstractTexture p_118510_) private static TextureManager.PendingReloadscheduleLoad(ResourceManager pResourceManager, ResourceLocation pTextureId, ReloadableTexture pTexture, Executor pExecutor) 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
-
resourceManager
-
-
Constructor Details
-
TextureManager
-
-
Method Details
-
registerAndLoad
-
loadContentsSafe
-
registerForNextReload
-
register
-
safeClose
-
getTexture
-
tick
public void tick() -
release
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier pBarrier, ResourceManager pManager, Executor pBackgroundExecutor, Executor pGameExecutor) - Specified by:
reloadin interfacePreparableReloadListener
-
dumpAllSheets
-
loadContents
private static TextureContents loadContents(ResourceManager pResourceManager, ResourceLocation pTextureId, ReloadableTexture pTexture) throws IOException - Throws:
IOException
-
scheduleLoad
private static TextureManager.PendingReload scheduleLoad(ResourceManager pResourceManager, ResourceLocation pTextureId, ReloadableTexture pTexture, Executor pExecutor)
-