Package net.minecraft.util

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


  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

      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

    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

  }

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

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

  }

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

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

  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

    this(sound, volume, pitch, repeat, repeatDelay, x, y, z, AttenuationType.LINEAR);
  }

  public SoundBase(String sound, float volume, float pitch, boolean repeat, int repeatDelay, double x, double y, double z, AttenuationType attenuation) {

    this(new ResourceLocation(sound), volume, pitch, repeat, repeatDelay, x, y, z, attenuation);
  }
View Full Code Here

  }

  public SoundTile(ISoundSource source, String sound, float volume, float pitch, boolean repeat, int repeatDelay, double x, double y, double z,
      AttenuationType attenuation) {

    this(source, new ResourceLocation(sound), volume, pitch, repeat, repeatDelay, x, y, z, attenuation);
  }
View Full Code Here

        TileEntityConductorBase tileEntity = (TileEntityConductorBase) t;
        boolean[] connectedSides = tileEntity.getVisualConnections();
       
        if (textureToUse != null && textureToUse != "")
            if (textureToUse.contains(ElectricExpansion.MODEL_PATH))
                this.bindTexture(new ResourceLocation(ElectricExpansion.DOMAIN, textureToUse));
            else
                this.bindTexture(new ResourceLocation(ElectricExpansion.DOMAIN, ElectricExpansion.MODEL_PATH + textureToUse));
        else
            return;
       
        GL11.glPushMatrix();
        GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
        GL11.glScalef(1.0F, -1F, -1F);
       
        if (connectedSides[0])
        {
            model.renderBottom();
        }
        if (connectedSides[1])
        {
            model.renderTop();
        }
        if (connectedSides[2])
        {
            model.renderBack();
        }
        if (connectedSides[3])
        {
            model.renderFront();
        }
        if (connectedSides[4])
        {
            model.renderLeft();
        }
        if (connectedSides[5])
        {
            model.renderRight();
        }
       
        model.renderMiddle();
        GL11.glPopMatrix();
       
        GL11.glPushMatrix();
        GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
        GL11.glScalef(1.0F, -1F, -1F);
       
        this.bindTexture(new ResourceLocation(ElectricExpansion.DOMAIN, ElectricExpansion.MODEL_PATH + "WirePaintOverlay.png"));
       
        byte colorByte = ((TileEntityConductorBase) tileEntity).getFrequency().getIndex();
       
        switch (colorByte)
        {
View Full Code Here

TOP

Related Classes of net.minecraft.util.ResourceLocation

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.