MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getTexture

Method getTexture

src/main/java/net/optifine/util/TextureUtils.java:230–248  ·  view source on GitHub ↗
(ResourceLocation loc)

Source from the content-addressed store, hash-verified

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 {

Callers 2

readCustomSkiesMethod · 0.95
updateTextureMethod · 0.95

Calls 4

getTextureManagerMethod · 0.95
hasResourceMethod · 0.95
getTextureMethod · 0.65
loadTextureMethod · 0.65

Tested by

no test coverage detected