Esempio n. 1
0
 public void onEarlyTexturePackLoad(ITexturePack fallback) {
   if (client == null) {
     // We're far too early- let's wait
     this.earlyTexturePack = fallback;
   } else {
     loadTextures(fallback);
   }
 }
Esempio n. 2
0
  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);
  }