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 ResourceLocation
private static final org.slf4j.Logger
private final ResourceManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
_bind
(ResourceLocation pPath) private void
_dumpAllSheets
(Path pPath) void
bindForSetup
(ResourceLocation pPath) void
close()
void
dumpAllSheets
(Path pPath) private static void
getTexture
(ResourceLocation pPath) getTexture
(ResourceLocation pPath, AbstractTexture pDefaultTexture) private AbstractTexture
loadTexture
(ResourceLocation pPath, AbstractTexture pTexture) preload
(ResourceLocation pPath, Executor pBackgroundExecutor) register
(String pName, DynamicTexture pTexture) void
register
(ResourceLocation pPath, AbstractTexture pTexture) void
release
(ResourceLocation pPath) reload
(PreparableReloadListener.PreparationBarrier pStage, ResourceManager pResourceManager, ProfilerFiller pPreparationsProfiler, ProfilerFiller pReloadProfiler, Executor pBackgroundExecutor, Executor pGameExecutor) private void
safeClose
(ResourceLocation p_118509_, AbstractTexture p_118510_) 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.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:
close
in interfaceAutoCloseable
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier pStage, ResourceManager pResourceManager, ProfilerFiller pPreparationsProfiler, ProfilerFiller pReloadProfiler, Executor pBackgroundExecutor, Executor pGameExecutor) - Specified by:
reload
in interfacePreparableReloadListener
-
dumpAllSheets
-
_dumpAllSheets
-