Remove: all vanilla editions

This commit is contained in:
ZekerZhayard committed 2023-01-29 22:52:21 +08:00
1 parent c2dad72690
commit 755f7647ed
136 files changed
+113 -1355

No files matched your search

@@ -0,0 +1,40 @@
package customskinloader.fake;
import java.io.File;
import java.util.Map;
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
import customskinloader.utils.HttpTextureUtil;
import net.minecraft.util.ResourceLocation;
public class FakeMinecraftProfileTexture extends MinecraftProfileTexture {
private HttpTextureUtil.HttpTextureInfo info;
private ResourceLocation resourceLocation;
public FakeMinecraftProfileTexture(String url, Map<String, String> metadata) {
super(url, metadata);
this.info = HttpTextureUtil.toHttpTextureInfo(url);
}
public void setResourceLocation(ResourceLocation resourceLocation) {
this.resourceLocation = resourceLocation;
}
public ResourceLocation getResourceLocation() {
return this.resourceLocation;
}
@Override
public String getUrl() {
return this.info.url;
}
@Override
public String getHash() {
return this.info.hash;
}
public File getCacheFile() {
return this.info.cacheFile;
}
}