Package net.minecraft.client.renderer.texture

Examples of net.minecraft.client.renderer.texture.TextureAtlasSprite


                    // Registering custom icon classes

                    // name of custom icon ( must equal getIconName() )
                    String name = TextureOre.getDerivedName(entry[i].texture);
                    // see if there's already an icon of that name
                    TextureAtlasSprite texture = map.getTextureExtry(name);
                    if (texture == null) {
                        // if not create one and put it in the register
                        texture = new TextureOre(entry[i]);
                        map.setTextureEntry(name, texture);
                    }
View Full Code Here


  /* TEXTURES */
  @SideOnly(Side.CLIENT)
  @Override
  public void registerIcons(IIconRegister register) {
    if(register instanceof TextureMap) {
      TextureAtlasSprite texture = new TextureBiomefinder();
      ((TextureMap)register).setTextureEntry("forestry:biomefinder", texture);
      itemIcon = texture;
    }
  }
View Full Code Here

TOP

Related Classes of net.minecraft.client.renderer.texture.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.