Examples of ResourceLocation


Examples of net.minecraft.src.ResourceLocation

    ArrayList done = new ArrayList();
    Iterator i$ = pending.entrySet().iterator();

    while (i$.hasNext()) {
      Entry name = (Entry)i$.next();
      ResourceLocation name1 = (ResourceLocation)name.getKey();
      Properties properties = (Properties)name.getValue();
      ResourceLocation textureName = TexturePackAPI.parseResourceLocation(name1, MCPatcherUtils.getStringProperty(properties, "to", ""));

      if (TexturePackAPI.isTextureLoaded(textureName)) {
        addStrip(name1, properties);
        done.add(name1);
      }
    }

    if (!done.isEmpty()) {
      i$ = done.iterator();

      while (i$.hasNext()) {
        ResourceLocation name2 = (ResourceLocation)i$.next();
        pending.remove(name2);
      }

      Collections.sort(animations);
    }
View Full Code Here

Examples of net.minecraft.src.ResourceLocation

      Collections.sort(animations);
    }
  }

  private static void addStrip(ResourceLocation propertiesName, Properties properties) {
    ResourceLocation dstName = TexturePackAPI.parseResourceLocation(propertiesName, properties.getProperty("to", ""));

    if (dstName == null) {
      logger.error("%s: missing to= property", new Object[0]);
    } else {
      ResourceLocation srcName = TexturePackAPI.parseResourceLocation(propertiesName, properties.getProperty("from", ""));

      if (srcName == null) {
        logger.error("%s: missing from= property", new Object[0]);
      } else {
        BufferedImage srcImage = TexturePackAPI.getImage(srcName);
View Full Code Here

Examples of net.minecraft.src.ResourceLocation

      } else {
        yOffset = 4;
      }
    }
    if (isShowPing()) {
      Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/icons.png"));     
      RenderUtil.drawTexturedModalRectangle(x + width - 2 - 10, y + 2, 0 + xOffset * 10, 176 + yOffset * 8, 10, 8, 0f);
    }
    if (port != DEFAULT_PORT) {
      font.drawStringWithShadow(ip + ":" +port, x+marginleft, y+20, 0xaaaaaa);
    } else {
View Full Code Here

Examples of net.minecraft.util.ResourceLocation

  public EnchantmentData(String texture, boolean vanilla, AspectList aspects) {
    this(texture, vanilla, aspects, "");
  }

  public EnchantmentData(String texture, boolean vanilla, AspectList aspects, String research) {
    this.texture = new ResourceLocation(texture);
    this.vanilla = vanilla;
    this.aspects = aspects;
    this.research = research;
  }
View Full Code Here

Examples of net.minecraft.util.ResourceLocation

  public static void initResearch() {
    registerResearchPages();

    ResearchItem research;

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_ASCENT_BOOST, new AspectList().add(Aspect.AIR, 1).add(Aspect.MOTION, 1).add(Aspect.MAGIC, 2), 6, 2, 2, new ResourceLocation(LibResources.ENCHANT_ASCENT_BOOST)).setParents(LibResearch.KEY_ENCHANTER);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_SLOW_FALL, new AspectList().add(Aspect.AIR, 1).add(Aspect.MOTION, 1).add(Aspect.MAGIC, 2), 7, 3, 2, new ResourceLocation(LibResources.ENCHANT_SLOW_FALL)).setParents(LibResearch.KEY_ENCHANTER);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_AUTO_SMELT, new AspectList().add(Aspect.FIRE, 1).add(Aspect.ENTROPY, 1).add(Aspect.MAGIC, 2), 7, 5, 2, new ResourceLocation(LibResources.ENCHANT_AUTO_SMELT)).setParents(LibResearch.KEY_ENCHANTER);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_DESINTEGRATE, new AspectList().add(Aspect.ENTROPY, 1).add(Aspect.VOID, 1).add(Aspect.MAGIC, 2), 6, 6, 2, new ResourceLocation(LibResources.ENCHANT_DESINTEGRATE)).setParents(LibResearch.KEY_ENCHANTER);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_QUICK_DRAW, new AspectList().add(Aspect.SENSES, 1).add(Aspect.WEAPON, 1).add(Aspect.MAGIC, 2), 4, 6, 2, new ResourceLocation(LibResources.ENCHANT_QUICK_DRAW)).setParents(LibResearch.KEY_ENCHANTER);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_VAMPIRISM, new AspectList().add(Aspect.HUNGER, 1).add(Aspect.WEAPON, 1).add(Aspect.MAGIC, 2), 3, 5, 2, new ResourceLocation(LibResources.ENCHANT_VAMPIRISM)).setParents(LibResearch.KEY_ENCHANTER);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_FOCUSED_STRIKE, new AspectList().add(Aspect.ORDER, 1).add(Aspect.WEAPON, 1).add(Aspect.MAGIC, 2), 2, 7, 2, new ResourceLocation(LibResources.ENCHANT_FOCUSED_STRIKE)).setParents(LibResearch.KEY_ENCHANT_VAMPIRISM);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_DISPERSED_STRIKE, new AspectList().add(Aspect.ENTROPY, 1).add(Aspect.WEAPON, 1).add(Aspect.MAGIC, 2), 1, 6, 2, new ResourceLocation(LibResources.ENCHANT_DISPERSED_STRIKE)).setParents(LibResearch.KEY_ENCHANT_VAMPIRISM);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_FINAL_STRIKE, new AspectList().add(Aspect.ENTROPY, 3).add(Aspect.ORDER, 3).add(Aspect.WEAPON, 3).add(Aspect.MAGIC, 2), 0, 8, 2, new ResourceLocation(LibResources.ENCHANT_FINAL_STRIKE)).setParents(LibResearch.KEY_ENCHANT_FOCUSED_STRIKE, LibResearch.KEY_ENCHANT_DISPERSED_STRIKE);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_POUNCE, new AspectList().add(Aspect.AIR, 3).add(Aspect.ORDER, 3).add(Aspect.ARMOR, 3).add(Aspect.MAGIC, 2), 7, 0, 2, new ResourceLocation(LibResources.ENCHANT_POUNCE)).setParents(LibResearch.KEY_ENCHANT_ASCENT_BOOST);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_SHATTER, new AspectList().add(Aspect.EARTH, 3).add(Aspect.ENTROPY, 3).add(Aspect.TOOL, 1).add(Aspect.MAGIC, 2), 5, 8, 2, new ResourceLocation(LibResources.ENCHANT_SHATTER)).setParents(LibResearch.KEY_ENCHANT_DESINTEGRATE);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_SHOCKWAVE, new AspectList().add(Aspect.AIR, 3).add(Aspect.ENTROPY, 3).add(Aspect.ARMOR, 1).add(Aspect.MAGIC, 2), 9, 2, 2, new ResourceLocation(LibResources.ENCHANT_SHOCKWAVE)).setParents(LibResearch.KEY_ENCHANT_SLOW_FALL);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_TUNNEL, new AspectList().add(Aspect.EARTH, 3).add(Aspect.ORDER, 3).add(Aspect.TOOL, 1).add(Aspect.MAGIC, 2), 9, 6, 2, new ResourceLocation(LibResources.ENCHANT_TUNNEL)).setParents(LibResearch.KEY_ENCHANT_AUTO_SMELT);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();

    research = new TTResearchItem(LibResearch.KEY_ENCHANT_VALIANCE, new AspectList().add(Aspect.WEAPON, 3).add(Aspect.HEAL, 3).add(Aspect.MAGIC, 2), 1, 4, 2, new ResourceLocation(LibResources.ENCHANT_VALIANCE)).setParents(LibResearch.KEY_ENCHANT_VAMPIRISM);
    research.setPages(new ResearchPage("0")).setSecondary().registerResearchItem();
    // Peripheral documentation research
    if (Loader.isModLoaded("ComputerCraft")) {
      research = new TTResearchItem(LibResearch.KEY_PERIPHERALS, new AspectList(), -1, 0, 0, new ItemStack(Items.redstone)).setAutoUnlock().setRound();
      research.setPages(new ResearchPage("0")).registerResearchItem();
View Full Code Here

Examples of net.minecraft.util.ResourceLocation

      research.setPages(new ResearchPage("0")).registerResearchItem();
    }
  }

  private static void registerResearchPages() {
    ResourceLocation background = new ResourceLocation("thaumcraft", "textures/gui/gui_researchback.png");
    ResearchCategories.registerCategory(LibResearch.CATEGORY_THAUMICTINKERER, new ResourceLocation(LibResources.MISC_R_ENCHANTING), background);
  }
View Full Code Here

Examples of net.minecraft.util.ResourceLocation

    return this;
  }

  public ElementBase setTexture(String texture, int texW, int texH) {

    this.texture = new ResourceLocation(texture);
    this.texW = texW;
    this.texH = texH;
    return this;
  }
View Full Code Here

Examples of net.minecraft.util.ResourceLocation

  }

  @SideOnly(Side.CLIENT)
  public static boolean textureExists(String texture) {

    return textureExists(new ResourceLocation(texture));
  }
View Full Code Here

Examples of net.minecraft.util.ResourceLocation

  }

  @SideOnly(Side.CLIENT)
  public static int getTextureColor(String texture) {

    return getTextureColor(new ResourceLocation(texture));
  }
View Full Code Here

Examples of net.minecraft.util.ResourceLocation

  public ElementFluidTank(GuiBase gui, int posX, int posY, IFluidTank tank, String texture) {

    super(gui, posX, posY);
    this.tank = tank;

    this.texture = new ResourceLocation(texture);
    this.texW = 64;
    this.texH = 64;

    this.sizeX = 16;
    this.sizeY = DEFAULT_SCALE;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.