Package net.minecraft.src

Examples of net.minecraft.src.Icon


      tessellator = null;
    }
  }

  private static void setupTileCoords(int face) {
    Icon icon = icons[face];
    tessellator = TessellatorUtils.getTessellator(Tessellator.instance, icons[face]);
    u0 = (double)icon.getMinU();
    uM = (double)icon.getInterpolatedU(8.0D);
    u1 = (double)icon.getMaxU();
    v0 = (double)icon.getMinV();
    v1 = (double)icon.getMaxV();
  }
View Full Code Here


  String checkTileMap() {
    return this.getNumberOfTiles() == 7 ? null : "requires exactly 7 tiles";
  }

  Icon getTileImpl(IBlockAccess blockAccess, Block block, Icon origIcon, int i, int j, int k, int face) {
    Icon icon = super.getTileImpl(blockAccess, block, origIcon, i, j, k, face);

    if (icon != this.icons[3]) {
      return icon;
    } else {
      int[][] offsets = NEIGHBOR_OFFSET[face];
View Full Code Here

  String checkTileMap() {
    return this.getNumberOfTiles() == 7 ? null : "requires exactly 7 tiles";
  }

  Icon getTileImpl(IBlockAccess blockAccess, Block block, Icon origIcon, int i, int j, int k, int face) {
    Icon icon = super.getTileImpl(blockAccess, block, origIcon, i, j, k, face);

    if (icon != this.icons[3]) {
      return icon;
    } else {
      int[][] offsets = NEIGHBOR_OFFSET[face];
View Full Code Here

  }

  ITileOverride go() {
    for (int pass = 0; pass < CTMUtils.access$1000(); ++pass) {
      ITileOverride override;
      Icon newIcon;

      do {
        if (!this.hasNext()) {
          return this.lastMatchedOverride;
        }
View Full Code Here

          } else {
            this.subLogger.warning("%s nearly full (%.1fMB), will start a new tilesheet", new Object[] {mapName, Float.valueOf(icon1)});
            return false;
          }
        } else {
          Icon icon = textureMap.registerIcon(name);
          map.put(name, (TextureAtlasSprite)icon);

          if (mapName.contains("_overflow")) {
            TessellatorUtils.registerIcon(textureMap, icon);
          }
View Full Code Here

    this.tileImages.clear();
  }

  public Icon getIcon(String name) {
    if (name != null && !name.equals("")) {
      Icon icon = (Icon)this.iconMap.get(name);

      if (icon == null && this.baseTexturesByName != null) {
        icon = (Icon)this.baseTexturesByName.get(name);
      }
View Full Code Here

TOP

Related Classes of net.minecraft.src.Icon

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.