Package net.minecraft.util

Examples of net.minecraft.util.ResourceLocation


                break;
        }
       
        // Texture file
        if (textureToUse != null && textureToUse != "" && textureToUse != ElectricExpansion.MODEL_PATH)
            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);
View Full Code Here


    public void drawScreen(int mouseX, int mouseY, float par3) {
        int x = (this.width - this.backgroundWidth) / 2;
        int y = (this.height - this.backgroundHeight) / 2 - this.closeButton.height;

        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        this.mc.renderEngine.bindTexture(new ResourceLocation(ForgeWorldEdit.MOD_ID, "textures/gui/reference.png"));
        this.drawTexturedModalRect(x, y, 0, 0, this.backgroundWidth, this.backgroundHeight);
        super.drawScreen(mouseX, mouseY, par3);
    }
View Full Code Here

  public static void bindGlintTexture() {
    engine().bindTexture(BLOCK_TEX);
  }

  public static void bindTexture(String string) {
    engine().bindTexture(new ResourceLocation(string));
  }
View Full Code Here

  private MachineSound sound;

  private final ResourceLocation soundRes;

  protected static ResourceLocation getSoundFor(String sound) {
    return sound == null ? null : new ResourceLocation(EnderIO.MODID + ":" + sound);
  }
View Full Code Here

    if (this.drawButton)
    {
      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      this.mouseDragged(minecraftInstance, x, y);

      minecraftInstance.getTextureManager().bindTexture(new ResourceLocation("extracells", "textures/gui/redstonemodes.png"));
      drawTexturedModalRect(xPosition, yPosition, 0, 16, 16, 16);

      List<String> description = new ArrayList<String>();
      description.add(StatCollector.translateToLocal("AppEng.GuiITooltip.RedstoneMode"));
      String explaination = "";
View Full Code Here

    if (drawButton)
    {
      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      this.mouseDragged(minecraftInstance, x, y);

      minecraftInstance.getTextureManager().bindTexture(new ResourceLocation("extracells", "textures/gui/fluidmodes.png"));
      drawTexturedModalRect(xPosition, yPosition, 0, 16, 16, 16);

      switch (fluidMode)
      {
      case DROPS:
View Full Code Here

      return;

    GL11.glDisable(GL11.GL_LIGHTING);
    GL11.glColor3f(1.0F, 1.0F, 1.0F);

    Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/gui/fluidtank.png"));
    drawTexturedModalRect(posX, posY, 0, 0, 18, 73);

    int iconHeightRemainder = (73 - 4) % 16;

    FluidStack fluid = tank.getFluid();
    if (fluid != null && fluid.amount > 0)
    {
      Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);

      Icon fluidIcon = fluid.getFluid().getStillIcon();

      if (iconHeightRemainder > 0)
      {
        drawTexturedModelRectFromIcon(posX + 1, posY + 2, fluidIcon, 16, iconHeightRemainder);
      }
      for (int i = 0; i < (73 - 6) / 16; i++)
      {
        drawTexturedModelRectFromIcon(posX + 1, posY + 2 + i * 16 + iconHeightRemainder, fluidIcon, 16, 16);
      }

      Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/gui/fluidtank.png"));
      drawTexturedModalRect(posX + 2, posY + 1, 1, 1, 15, 72 - ((int) ((73) * ((float) fluid.amount / tank.getCapacity()))));
    }

    Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/gui/fluidtank.png"));
    drawTexturedModalRect(posX + 1, posY + 1, 19, 1, 16, 73);

    GL11.glEnable(GL11.GL_LIGHTING);
  }
View Full Code Here

    return true;
  }

  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/blocks/texmap_export_bus.png"));
    GL11.glPushMatrix();
    GL11.glTranslatef(-1.0F, 0.5F, 0.5F);
    GL11.glScalef(1.0F, -1F, -1F);
    GL11.glRotatef(180F, 1, 0, 0);
    GL11.glRotatef(-90F, 0, 0, 1);
View Full Code Here

    return true;
  }

  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/blocks/walrus.png"));
    GL11.glPushMatrix();
    switch (type)
    {
    case ENTITY:
      break;
View Full Code Here

    return true;
  }

  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/blocks/texmap_level_emitter_on.png"));
    GL11.glPushMatrix();
    GL11.glTranslatef(-0.5F, 0.5F, 0.5F);
    GL11.glScalef(1.0F, -1F, -1F);
    GL11.glRotatef(180F, 1, 0, 0);
    GL11.glRotatef(-90F, 0, 0, 1);
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.