Package net.minecraft.util

Examples of net.minecraft.util.ResourceLocation


  public static World getWorld() {
    return Minecraft.getMinecraft().thePlayer.worldObj;
  }

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


  private static final String MODEL = "enderio:models/transceiver.obj";

  private IModelCustom model;

  public TransceiverModel() {
    model = AdvancedModelLoader.loadModel(new ResourceLocation(MODEL));
  }
View Full Code Here

  private static final String MODEL = "enderio:models/hyperCube.obj";

  private IModelCustom model;

  public HyperCubeModel() {
    model = AdvancedModelLoader.loadModel(new ResourceLocation(MODEL));
  }
View Full Code Here

  private ResourceLocation getSkinFace(String name)
  {
    try
    {
      ResourceLocation resourcelocation = Minecraft.getMinecraft().thePlayer.getLocationSkin();

      if (name != null && !name.isEmpty())
      {
        resourcelocation = AbstractClientPlayer.getLocationSkin(name);
        AbstractClientPlayer.getDownloadImageSkin(resourcelocation, name);
View Full Code Here

    }
  }
 
  public static void playSound(String sound)
  {
        mc.getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation(sound), 1.0F));
  }
View Full Code Here

    protected static WavefrontObject lightmodel;
    protected static WavefrontObject framemodel;

    public static WavefrontObject getLightModel() {
        if (lightmodel == null) {
            lightmodel = (WavefrontObject) AdvancedModelLoader.loadModel(new ResourceLocation(Config.RESOURCE_PREFIX() + "models/lightCore.obj"));
        }
        return lightmodel;
    }
View Full Code Here

        return lightmodel;
    }

    public static WavefrontObject getFrameModel() {
        if (framemodel == null) {
            framemodel = (WavefrontObject) AdvancedModelLoader.loadModel(new ResourceLocation(Config.RESOURCE_PREFIX() + "models/lightBase.obj"));
        }
        return framemodel;
    }
View Full Code Here

  @Override
  protected void drawGuiContainerBackgroundLayer(float var1, int mouseX, int mouseY)
  {
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    mc.renderEngine.func_110577_a(new ResourceLocation(Info.TITLE_PACKED.toLowerCase(), Info.GUI_TEX_BATTERY_STATION));

    this.drawTexturedModalRect(xLoc, yLoc, 0, 0, xSize, ySize);

    // Draw title text
    Utils.drawCenteredText(fontRenderer, I18n.func_135053_a(tile.getInvName()), xCenter, yLoc + 8, 4210752);
View Full Code Here

  };
 
  public BeefGuiInsertionProgressBar(BeefGuiBase container, int x, int y) {
    super(container, x, y, controlWidth, controlHeight);
   
    controlResource = new ResourceLocation(BigReactors.GUI_DIRECTORY + getBackgroundTexture());
    barAbsoluteMaxHeight = this.height - 1;
  }
View Full Code Here

  protected float barAbsoluteMaxHeight;
 
  public BeefGuiVerticalProgressBar(BeefGuiBase container, int x, int y) {
    super(container, x, y, controlWidth, controlHeight);
   
    controlResource = new ResourceLocation(BigReactors.GUI_DIRECTORY + getBackgroundTexture());
   
    backgroundLeftU = getBackgroundLeftU();
    backgroundRightU = getBackgroundRightU();
    gradationLeftU = getGradationLeftU();
    gradationRightU = getGradationRightU();
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.