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

Method reloadCape

src/main/java/net/optifine/player/CapeUtils.java:83–100  ·  view source on GitHub ↗
(AbstractClientPlayer player)

Source from the content-addressed store, hash-verified

81 }
82
83 public static void reloadCape(AbstractClientPlayer player)
84 {
85 String s = player.getNameClear();
86 ResourceLocation resourcelocation = new ResourceLocation("capeof/" + s);
87 TextureManager texturemanager = Config.getTextureManager();
88 ITextureObject itextureobject = texturemanager.getTexture(resourcelocation);
89
90 if (itextureobject instanceof SimpleTexture)
91 {
92 SimpleTexture simpletexture = (SimpleTexture)itextureobject;
93 simpletexture.deleteGlTexture();
94 texturemanager.deleteTexture(resourcelocation);
95 }
96
97 player.setLocationOfCape((ResourceLocation)null);
98 player.setElytraOfCape(false);
99 downloadCape(player);
100 }
101}

Callers 1

getLocationCapeMethod · 0.95

Calls 8

getTextureManagerMethod · 0.95
getTextureMethod · 0.95
deleteTextureMethod · 0.95
downloadCapeMethod · 0.95
getNameClearMethod · 0.80
deleteGlTextureMethod · 0.80
setLocationOfCapeMethod · 0.80
setElytraOfCapeMethod · 0.80

Tested by

no test coverage detected