Package net.minecraft.src

Examples of net.minecraft.src.TextureAtlasSprite


  private int y0;
  private String tilesheet;
  int border;

  public static TextureAtlasSprite create(String tilesheet, String name) {
    return (TextureAtlasSprite)(AAHelper.useAAForTexture(tilesheet) ? new BorderedTexture(tilesheet, name) : new TextureAtlasSprite(name));
  }
View Full Code Here


    return texture == null ? 0L : (long)(4 * texture.getIconWidth() * texture.getIconHeight());
  }

  private static long getTextureSize(Collection<TextureAtlasSprite> textures) {
    long size = 0L;
    TextureAtlasSprite texture;

    for (Iterator i$ = textures.iterator(); i$.hasNext(); size += getTextureSize(texture)) {
      texture = (TextureAtlasSprite)i$.next();
    }

View Full Code Here

  }

  private boolean registerDefaultIcon(String name) {
    if (name.startsWith(this.mapName) && name.endsWith(".png") && this.baseTextureMap != null) {
      String defaultName = name.substring(this.mapName.length()).replaceFirst("\\.png$", "");
      TextureAtlasSprite texture = (TextureAtlasSprite)this.baseTexturesByName.get(defaultName);

      if (texture != null) {
        this.subLogger.finer("%s -> existing icon %s", new Object[] {name, defaultName});
        this.iconMap.put(name, texture);
        return true;
View Full Code Here

TOP

Related Classes of net.minecraft.src.TextureAtlasSprite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.