Package forestry.core.utils

Examples of forestry.core.utils.ForestryResource


  private long lastTextureUpdate;

  @SideOnly(Side.CLIENT)
  public ResourceLocation getTexture() {
    if (textureResource == null || lastTextureUpdate != lastUpdate)
      textureResource = new ForestryResource(beeTexture);

    return textureResource;
  }
View Full Code Here


  private final ResourceLocation[] textures;

  public ModelAnalyzer(String gfxBase) {

    textures = new ResourceLocation[] {
        new ForestryResource(gfxBase + "pedestal.png"),
        new ForestryResource(gfxBase + "tower1.png"),
        new ForestryResource(gfxBase + "tower2.png"),
    };

    pedestal = new ModelRenderer(this, 0, 0);
    pedestal.addBox(-8F, -8F, -8F, 16, 1, 16);
    pedestal.setRotationPoint(8, 8, 8);
View Full Code Here

  public RenderMachine(String baseTexture) {
    this();

    textures = new ResourceLocation[] {
        new ForestryResource(baseTexture + "base.png"),

        new ForestryResource(baseTexture + "tank_resource_empty.png"),
        new ForestryResource(baseTexture + "tank_resource_low.png"),
        new ForestryResource(baseTexture + "tank_resource_medium.png"),
        new ForestryResource(baseTexture + "tank_resource_high.png"),
        new ForestryResource(baseTexture + "tank_resource_maximum.png"),

        new ForestryResource(baseTexture + "tank_product_empty.png"),
        new ForestryResource(baseTexture + "tank_product_low.png"),
        new ForestryResource(baseTexture + "tank_product_medium.png"),
        new ForestryResource(baseTexture + "tank_product_high.png"),
        new ForestryResource(baseTexture + "tank_product_maximum.png"),
    };

  }
View Full Code Here

  public RenderMill(String baseTexture) {
    this();

    textures = new ResourceLocation[12];

    textures[Textures.PEDESTAL.ordinal()] = new ForestryResource(baseTexture + "pedestal.png");
    textures[Textures.EXTENSION.ordinal()] = new ForestryResource(baseTexture + "extension.png");
    textures[Textures.BLADE_1.ordinal()] = new ForestryResource(baseTexture + "blade1.png");
    textures[Textures.BLADE_2.ordinal()] = new ForestryResource(baseTexture + "blade2.png");

    for(int i = 0; i < 8; i++) {
      textures[Textures.CHARGE.ordinal() + i] = new ForestryResource(baseTexture + "column_"+ i +".png");
    }
  }
View Full Code Here

  public RenderEngine(String baseTexture) {
    this();

    textures = new ResourceLocation[] {
        new ForestryResource(baseTexture + "base.png"),
        new ForestryResource(baseTexture + "piston.png"),
        new ForestryResource(baseTexture + "extension.png"),
        new ForestryResource(Defaults.TEXTURE_PATH_BLOCKS + "/engine_trunk_highest.png"),
        new ForestryResource(Defaults.TEXTURE_PATH_BLOCKS + "/engine_trunk_higher.png"),
        new ForestryResource(Defaults.TEXTURE_PATH_BLOCKS + "/engine_trunk_high.png"),
        new ForestryResource(Defaults.TEXTURE_PATH_BLOCKS + "/engine_trunk_medium.png"),
        new ForestryResource(Defaults.TEXTURE_PATH_BLOCKS + "/engine_trunk_low.png"), };
  }
View Full Code Here

    return uid;
  }

  @Override
  public void registerVillagerSkin(int villagerId, String texturePath) {
    VillagerRegistry.instance().registerVillagerSkin(villagerId, new ForestryResource(texturePath));
  }
View Full Code Here

TOP

Related Classes of forestry.core.utils.ForestryResource

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.