mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 05:14:25 +00:00
* Fix elytra can not be rendered when the cape doesn't contain elytra. * Fix typo. * Streamline IFakeThreadDownloadImageData. * Fix wrong arguments. * Add compatible with other custom player model mods, such as tr7zw/FirstPersonModel
19 lines
539 B
Java
19 lines
539 B
Java
package customskinloader.fake.itf;
|
|
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public interface IFakeMinecraft {
|
|
default InputStream getResourceFromResourceLocation(ResourceLocation location) throws IOException {
|
|
return ((Minecraft) this).getResourceManager().getResource(location).getInputStream();
|
|
}
|
|
|
|
// 1.14+
|
|
default void execute(Runnable runnable) {
|
|
((Minecraft) this).addScheduledTask(runnable);
|
|
}
|
|
}
|