(ResourceLocation loc)
| 228 | } |
| 229 | |
| 230 | public static ITextureObject getTexture(ResourceLocation loc) |
| 231 | { |
| 232 | ITextureObject itextureobject = Config.getTextureManager().getTexture(loc); |
| 233 | |
| 234 | if (itextureobject != null) |
| 235 | { |
| 236 | return itextureobject; |
| 237 | } |
| 238 | else if (!Config.hasResource(loc)) |
| 239 | { |
| 240 | return null; |
| 241 | } |
| 242 | else |
| 243 | { |
| 244 | SimpleTexture simpletexture = new SimpleTexture(loc); |
| 245 | Config.getTextureManager().loadTexture(loc, simpletexture); |
| 246 | return simpletexture; |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | public static void resourcesReloaded(IResourceManager rm) |
| 251 | { |
no test coverage detected