public void onEarlyTexturePackLoad(ITexturePack fallback) { if (client == null) { // We're far too early- let's wait this.earlyTexturePack = fallback; } else { loadTextures(fallback); } }
public void onTexturePackChange( RenderEngine engine, ITexturePack texturepack, List<TextureFX> effects) { pruneOldTextureFX(texturepack, effects); for (TextureFX tex : effects) { if (tex instanceof ITextureFX) { ((ITextureFX) tex).onTexturePackChanged(engine, texturepack, getTextureDimensions(tex)); } } loadTextures(texturepack); }