Files
MCCustomSkinLoader/Common/source/customskinloader/fake/itf/IFakeMinecraft.java
T
ZekerZhayard 3e001c4cdf Fix elytra can not be rendered when the cape doesn't contain elytra. (#160)
* 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
2021-05-07 17:15:45 +08:00

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);
}
}