Class TextureManager
java.lang.Object
net.minecraft.client.renderer.texture.TextureManager
- All Implemented Interfaces:
AutoCloseable, PreparableReloadListener
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface PreparableReloadListener
PreparableReloadListener.PreparationBarrier, PreparableReloadListener.SharedState, PreparableReloadListener.StateKey<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Identifier, AbstractTexture> static final Identifierprivate static final org.slf4j.Loggerprivate final ResourceManagerprivate final Set<TickableTexture> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddumpAllSheets(Path targetDir) getTexture(Identifier location) private static TextureContentsloadContents(ResourceManager manager, Identifier location, ReloadableTexture texture) private TextureContentsloadContentsSafe(Identifier textureId, ReloadableTexture texture) voidregister(Identifier location, AbstractTexture texture) voidregisterAndLoad(Identifier textureId, ReloadableTexture texture) voidregisterForNextReload(Identifier location) voidrelease(Identifier location) reload(PreparableReloadListener.SharedState currentReload, Executor taskExecutor, PreparableReloadListener.PreparationBarrier preparationBarrier, Executor reloadExecutor) private voidsafeClose(Identifier id, AbstractTexture texture) private static TextureManager.PendingReloadscheduleLoad(ResourceManager manager, Identifier location, ReloadableTexture texture, Executor executor) voidtick()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PreparableReloadListener
getName, prepareSharedState
-
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
-
dumpAllSheets
-
loadContents
private static TextureContents loadContents(ResourceManager manager, Identifier location, ReloadableTexture texture) throws IOException - Throws:
IOException
-
scheduleLoad
private static TextureManager.PendingReload scheduleLoad(ResourceManager manager, Identifier location, ReloadableTexture texture, Executor executor)
-