SimpleTexture .java

net.minecraft.client.renderer.texture.SimpleTexture (class, 20 lines): members: loadContents. imports: ResourceManager, Identifier, EnvType.

net.minecraft.client.renderer.textureclass20 linesclientextends ReloadableTexture589 B

API Surface (1)

TextureContents loadContents(final ResourceManager resourceManager)

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

SimpleTexture.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.texture;
2
3
import java.io.IOException;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.resources.Identifier;
7
import net.minecraft.server.packs.resources.ResourceManager;
8
9
@Environment(EnvType.CLIENT)
10
public class SimpleTexture extends ReloadableTexture {
11
	public SimpleTexture(final Identifier location) {
12
		super(location);
13
	}
14
15
	@Override
16
	public TextureContents loadContents(final ResourceManager resourceManager) throws IOException {
17
		return TextureContents.load(resourceManager, this.resourceId());
18
	}
19
}
20

Decompiled Minecraft 26.3 source of SimpleTexture (net/minecraft/client/renderer/texture/SimpleTexture.java) with Mojang official mappings, stored verbatim on the site.