net.minecraft.client.texture

public class TextureManager

implements ResourceReloader, GpuResource

net.minecraft.client.renderer.texture.TextureManager
net.minecraft.class_1060
net.minecraft.client.texture.TextureManager

Field summary

Modifier and TypeField
private static final DefaultTextureProvider
DEFAULT_PROVIDER
field_1_11490
DEFAULT_PROVIDER
private static final org.slf4j.Logger
LOGGER
field_5288
LOGGER
private final Map<Identifier, Texture>
byPath
field_5286
textures
private final Map<Identifier, TextureProvider<? extends GpuResource>>
providers
field_1_11491
providers
private final ResourceManager
resourceManager
field_5287
resourceContainer

Constructor summary

ModifierConstructor
public (ResourceManager resourceManager)

Method summary

Modifier and TypeMethod
public <T extends GpuResource> TextureWithSampler
registerAndLoad(Identifier textureId, TextureProvider<T> textureProvider)
method_65876(class_2960 arg0, class_1_1772<T> arg1)
registerTexture(Identifier id, TextureProvider<T> provider)
private <T extends GpuResource> T
loadContentsSafe(Identifier textureId, TextureProvider<T> provider)
method_65925(class_2960 arg0, class_1_1772<T> arg1)
loadTexture(Identifier id, TextureProvider<T> provider)
public void
registerForNextReload(Identifier location)
method_65875(class_2960 arg0)
registerDefaultTextureProvider(Identifier id)
public void
register(Identifier location, TextureResources texture)
method_4616(class_2960 arg0, class_1_1777 arg1)
registerTexture(Identifier id, Texture texture)
public <T extends GpuResource> void
registerProvider(Identifier location, TextureProvider<T> provider)
method_1_11172(class_2960 arg0, class_1_1772<T> arg1)
registerTextureProvider(Identifier id, TextureProvider<T> provider)
private void
safeClose(Identifier id, TextureResources texture)
method_30299(class_2960 arg0, class_1_1777 arg1)
closeTexture(Identifier id, Texture texture)
public TextureWithSampler
getTexture(Identifier location)
method_4619(class_2960 arg0)
getTexture(Identifier id)
public void
release(Identifier location)
method_4615(class_2960 arg0)
destroyTexture(Identifier id)
public void
close()
public CompletableFuture<Void>
reload(PreparableReloadListener$SharedState currentReload, Executor taskExecutor, PreparableReloadListener$PreparationBarrier preparationBarrier, Executor reloadExecutor)
method_25931(class_3302$class_11558 arg0, Executor arg1, class_3302$class_4045 arg2, Executor arg3)
reload(ResourceReloader$Store arg0, Executor arg1, ResourceReloader$Synchronizer arg2, Executor arg3)
public void
dumpAllSheets(Path targetDir)
method_49715(Path arg0)
dumpDynamicTextures(Path path)
private static <T extends GpuResource> T
loadContents(ResourceManager manager, TextureProvider<T> provider, Identifier identifier)
method_65877(class_3300 arg0, class_1_1772<T> arg1, class_2960 arg2)
loadTexture(ResourceManager resourceManager, TextureProvider<T> provider, Identifier id)
private static <T extends GpuResource> TextureManager$ReloadedTexture<T>
scheduleLoad(ResourceManager manager, TextureProvider<T> provider, Executor executor, Identifier identifier)
method_65878(class_3300 arg0, class_1_1772<T> arg1, Executor arg2, class_2960 arg3)
reloadTexture(ResourceManager resourceManager, TextureProvider<T> provider, Executor prepareExecutor, Identifier id)
private static GpuResource
lambda$scheduleLoad$0(ResourceManager arg0, TextureProvider arg1, Identifier arg2)
method_1_11171(class_3300 arg0, class_1_1772 arg1, class_2960 arg2)
method_1_11171(ResourceManager arg0, TextureProvider arg1, Identifier arg2)
private static void
lambda$dumpAllSheets$0(Path arg0, Identifier arg1, TextureResources arg2)
method_49718(Path arg0, class_2960 arg1, class_1_1777 arg2)
method_49718(Path arg0, Identifier id, Texture texture)
private void
lambda$reload$2(List arg0, Void arg1)
method_65880(List arg0, Void arg1)
method_65880(List arg0, Void arg1)
private static CompletableFuture[]
lambda$reload$1(int arg0)
method_65874(int arg0)
method_65874(int arg0)
private static void
lambda$reload$0(List arg0, ResourceManager arg1, Executor arg2, Identifier arg3, TextureProvider arg4)
method_65879(List arg0, class_3300 arg1, Executor arg2, class_2960 arg3, class_1_1772 arg4)
method_65879(List arg0, ResourceManager arg1, Executor arg2, Identifier id, TextureProvider provider)
private static String
lambda$new$0()
method_68006()
method_68006()