mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-19 10:49:19 +00:00
29 lines
1.0 KiB
Java
29 lines
1.0 KiB
Java
package customskinloader.fake.itf;
|
|
|
|
import net.minecraft.client.renderer.texture.ITextureObject;
|
|
import net.minecraft.client.renderer.texture.Texture;
|
|
import net.minecraft.client.renderer.texture.TextureManager;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public interface IFakeTextureManager {
|
|
interface V1 {
|
|
default boolean func_229263_a_(ResourceLocation textureLocation, Texture textureObj) {
|
|
return ((TextureManager) this).loadTexture(textureLocation, (ITextureObject) textureObj);
|
|
}
|
|
|
|
default Texture func_229267_b_(ResourceLocation textureLocation) {
|
|
return (Texture) ((TextureManager) this).getTexture(textureLocation);
|
|
}
|
|
|
|
default Texture getTexture(ResourceLocation textureLocation, Texture textureObj) {
|
|
return func_229267_b_(textureLocation);
|
|
}
|
|
}
|
|
|
|
interface V2 {
|
|
default void func_229263_a_(ResourceLocation textureLocation, Texture textureObj) {
|
|
((IFakeTextureManager.V1) this).func_229263_a_(textureLocation, textureObj);
|
|
}
|
|
}
|
|
}
|