2025-11-24 22:52:51 +03:00

19 lines
500 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.renderer;
import net.minecraft.client.resources.model.Material;
import net.minecraft.resources.Identifier;
public record MaterialMapper(Identifier sheet, String prefix) {
public Material apply(Identifier path) {
return new Material(this.sheet, path.withPrefix(this.prefix + "/"));
}
public Material defaultNamespaceApply(String path) {
return this.apply(Identifier.withDefaultNamespace(path));
}
}