Package net.minecraft.src

Examples of net.minecraft.src.ResourceLocation


      logger.fine("registered %s animation", new Object[] {this.name});
    }
  }

  private static FancyDial getInstance(TextureAtlasSprite icon) {
    ResourceLocation resource = (ResourceLocation)setupInfo.get(icon);
    Properties properties = TexturePackAPI.getProperties(resource);
    setupInfo.remove(icon);

    if (properties == null) {
      return null;
View Full Code Here


    String textureName = MCPatcherUtils.getStringProperty(properties, "source" + suffix, "");

    if (textureName.isEmpty()) {
      return null;
    } else {
      ResourceLocation textureResource = TexturePackAPI.parseResourceLocation(resource, textureName);

      if (textureResource == null) {
        return null;
      } else if (!TexturePackAPI.hasResource(textureResource)) {
        logger.error("%s: could not read %s", new Object[] {resource, textureResource});
View Full Code Here

    if (!CustomAnimation.access$000().isEmpty()) {
      CustomAnimation.access$100().fine("%d animations were never registered:", new Object[] {Integer.valueOf(CustomAnimation.access$000().size())});
      Iterator i$ = CustomAnimation.access$000().keySet().iterator();

      while (i$.hasNext()) {
        ResourceLocation resource = (ResourceLocation)i$.next();
        CustomAnimation.access$100().fine("  %s", new Object[] {resource});
      }

      CustomAnimation.access$000().clear();
    }
View Full Code Here

  public void afterChange() {
    if (CustomAnimation.access$300()) {
      Iterator i$ = TexturePackAPI.listResources("mcpatcher/anim", ".properties", true, false, false).iterator();

      while (i$.hasNext()) {
        ResourceLocation resource = (ResourceLocation)i$.next();
        Properties properties = TexturePackAPI.getProperties(resource);

        if (properties != null) {
          CustomAnimation.access$000().put(resource, properties);
        }
View Full Code Here

  }

  public void render() {
    GL11.glDisable(2896 /*GL_LIGHTING*/);
    GL11.glDisable(2912 /*GL_FOG*/);
    Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/container/creative_inventory/tabs.png"));
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    float var3 = 32.0F;
    Spoutcraft.getTessellator().startDrawingQuads();
    Spoutcraft.getTessellator().setColorOpaqueInt(4210752);
    Spoutcraft.getTessellator().addVertexWithUV(0.0D, this.getHeight(), 0.0D, 0.0D, this.getHeight() / var3);
View Full Code Here

        HashSet texturesToUnload2 = new HashSet();
        Iterator i$ = textureManager2.mapTextureObjects.entrySet().iterator();

        while (i$.hasNext()) {
          Entry resource = (Entry)i$.next();
          ResourceLocation resource1 = (ResourceLocation)resource.getKey();
          TextureObject texture = (TextureObject)resource.getValue();

          if (texture instanceof SimpleTexture && !TexturePackAPI.hasResource(resource1)) {
            texturesToUnload2.add(resource1);
          }
        }

        i$ = texturesToUnload2.iterator();

        while (i$.hasNext()) {
          ResourceLocation resource2 = (ResourceLocation)i$.next();
          TexturePackAPI.unloadTexture(resource2);
        }
      }
    }
  }
View Full Code Here

  }

  private void overlayBackground(int var1, int var2, int var3, int var4) {
    Tessellator var5 = Tessellator.instance;
    //ToDo: This is the wrong location for this file.
    Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("gui/background.png"));
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    float var6 = 32.0F;
    var5.startDrawingQuads();
    var5.setColorRGBA_I(4210752, var4);
    var5.addVertexWithUV(0.0D, (double)var2, 0.0D, 0.0D, (double)((float)var2 / var6));
View Full Code Here

  }

  public void render(GenericButton button) {
    if (button.isVisible()) {
      FontRenderer font = Minecraft.getMinecraft().fontRenderer;
      Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("textures/gui/widgets.png"));     
      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      GL11.glTranslatef((float) Math.floor(button.getScreenX()), (float) Math.floor(button.getScreenY()), 0);
      float width = (float) (button.getWidth() < 200 ? button.getWidth() : 200);
      GL11.glScalef((float) button.getWidth() / width, (float) button.getHeight() / 20f, 1);
View Full Code Here

    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
  }

  public void render(GenericSlider slider) {
    if (slider.isVisible()) {
      Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("textures/gui/widgets.png"));
      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      float width = (float) (slider.getWidth() < 200 ? slider.getWidth() : 200);
      GL11.glTranslatef((float) slider.getScreenX(), (float) slider.getScreenY(), 0);
      GL11.glScalef((float) slider.getWidth() / width, (float) slider.getHeight() / 20f, 1);
View Full Code Here

    GL11.glDisable(2896 /*GL_LIGHTING*/);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    // Draw scrollbars
    if (gs.needsScrollBar(Orientation.HORIZONTAL)) {
      Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/container/creative_inventory/tabs.png"));
      double scrollX = 0;
      double p = (double) scrollLeft / (double) gs.getMaximumScrollPosition(Orientation.HORIZONTAL);
      scrollX = 3 + p * (gs.getViewportSize(Orientation.HORIZONTAL) - 16.0 - 6);
      RenderUtil.drawGradientRectangle(0, (int) gs.getHeight() - 16, (int) gs.getWidth(), (int) gs.getHeight(), scrollBarColor.toInt(), scrollBarColor2.toInt());
      GL11.glColor3f(1.0f, 1.0f, 1.0f);
      RenderUtil.drawTexturedModalRectangle((int) scrollX, (int) (gs.getHeight() - 16), 232, 0, 12, 15, 0f);
    }
    if (gs.needsScrollBar(Orientation.VERTICAL)) {     
      Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/container/creative_inventory/tabs.png"));
      double scrollY = 0;
      double p = (double) scrollTop / (double) gs.getMaximumScrollPosition(Orientation.VERTICAL);
      scrollY = 3 + p * (gs.getViewportSize(Orientation.VERTICAL) - 16.0 - 6);
      RenderUtil.drawGradientRectangle((int) gs.getWidth() - 16, 0, (int) gs.getWidth(), (int) gs.getHeight(), scrollBarColor.toInt(), scrollBarColor2.toInt());
      GL11.glColor3f(1.0f, 1.0f, 1.0f);
View Full Code Here

TOP

Related Classes of net.minecraft.src.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.