Examples of ResourceLocation


Examples of net.minecraft.util.ResourceLocation

    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

Examples of net.minecraft.util.ResourceLocation

  }

  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

Examples of net.minecraft.util.ResourceLocation

        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

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

Examples of net.minecraft.util.ResourceLocation

    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

Examples of net.minecraft.util.ResourceLocation

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

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

Examples of net.minecraft.util.ResourceLocation

  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

Examples of net.minecraft.util.ResourceLocation

    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

Examples of net.minecraft.util.ResourceLocation

    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

Examples of net.minecraft.util.ResourceLocation

      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
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.