minecraft-src/net/minecraft/client/renderer/texture/SimpleTexture.java
2025-07-04 03:15:13 +03:00

19 lines
589 B
Java

package net.minecraft.client.renderer.texture;
import java.io.IOException;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.packs.resources.ResourceManager;
@Environment(EnvType.CLIENT)
public class SimpleTexture extends ReloadableTexture {
public SimpleTexture(ResourceLocation location) {
super(location);
}
@Override
public TextureContents loadContents(ResourceManager resourceManager) throws IOException {
return TextureContents.load(resourceManager, this.resourceId());
}
}