Package net.minecraft.client

Examples of net.minecraft.client.Minecraft


        newPage.onOpened(this);

        ClientTickHandler.notifyPageChange();
        break;
      case 3 :
        Minecraft mc = Minecraft.getMinecraft();
        String cmd = "/botania-share " + entry.unlocalizedName;

        mc.ingameGUI.getChatGUI().addToSentMessages(cmd);
        mc.thePlayer.sendChatMessage(cmd);
        break;
View Full Code Here


  public void render(TileEntitySkull skull, float par1, float par2, float par3, int par4, float par5, int par6, GameProfile gameProfile) {
    if (par6 == 3) {
      ResourceLocation resourcelocation = AbstractClientPlayer.locationStevePng;
      if (gameProfile != null) {
        Minecraft minecraft = Minecraft.getMinecraft();
        Map map = minecraft.func_152342_ad().func_152788_a(gameProfile);

        if (map.containsKey(MinecraftProfileTexture.Type.SKIN)) {
          resourcelocation = minecraft.func_152342_ad().func_152792_a((MinecraftProfileTexture)map.get(MinecraftProfileTexture.Type.SKIN), MinecraftProfileTexture.Type.SKIN);
        }
      }
      bindTexture(resourcelocation);
      GL11.glPushMatrix();
      GL11.glDisable(GL11.GL_CULL_FACE);
View Full Code Here

    GL11.glPopMatrix();
  }
 
  public void renderItemStack(ItemStack stack) {
    if(stack != null) {
      Minecraft mc = Minecraft.getMinecraft();
      mc.renderEngine.bindTexture(stack.getItem() instanceof ItemBlock ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture);

      float s = 0.25F;
      GL11.glScalef(s, s, s);
      GL11.glScalef(2F, 2F, 2F);
View Full Code Here

 
  public static void render(ScaledResolution res) {
    if(currentBoss == null)
      return;
   
    Minecraft mc = Minecraft.getMinecraft();
    Rectangle bgRect = currentBoss.getBossBarTextureRect();
    Rectangle fgRect = currentBoss.getBossBarHPTextureRect();
    String name = currentBoss.func_145748_c_().getFormattedText();
    int c = res.getScaledWidth() / 2;
    int x = c - bgRect.width / 2;
View Full Code Here

      GL11.glRotatef(angles[i] + (float) time, 0F, 1F, 0F);
      GL11.glTranslatef(2.25F, 0F, 0.5F);
      GL11.glRotatef(90F, 0F, 1F, 0F);
      GL11.glTranslated(0D, 0.15 * Math.sin((time + i * 10) / 5D), 0F);
      ItemStack stack = altar.getStackInSlot(i);
      Minecraft mc = Minecraft.getMinecraft();
      if(stack != null) {
        mc.renderEngine.bindTexture(stack.getItem() instanceof ItemBlock ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture);

        GL11.glScalef(2F, 2F, 2F);
        if(!ForgeHooksClient.renderEntityItem(new EntityItem(altar.getWorldObj(), altar.xCoord, altar.yCoord, altar.zCoord, stack), stack, 0F, 0F, altar.getWorldObj().rand, mc.renderEngine, renderBlocks, 1)) {
View Full Code Here

  }

  @Override
  public void setExtraReach(EntityLivingBase entity, float reach) {
    super.setExtraReach(entity, reach);
    Minecraft mc = Minecraft.getMinecraft();
    EntityPlayer player = mc.thePlayer;
    if(entity == player) {
      if(!(mc.playerController instanceof IExtendedPlayerController)) {
        GameType type = ReflectionHelper.getPrivateValue(PlayerControllerMP.class, mc.playerController, LibObfuscation.CURRENT_GAME_TYPE);
        NetHandlerPlayClient net = ReflectionHelper.getPrivateValue(PlayerControllerMP.class, mc.playerController, LibObfuscation.NET_CLIENT_HANDLER);
View Full Code Here

  }

  @Override
  public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
    GL11.glPushMatrix();
    Minecraft mc = Minecraft.getMinecraft();
    mc.renderEngine.bindTexture(texture);
    float opening = 0F;
    float pageFlip = 0F;

    int ticks = ClientTickHandler.ticksWithLexicaOpen;
View Full Code Here

  private static final ResourceLocation manaBar = new ResourceLocation(LibResources.GUI_MANA_HUD);

  @SubscribeEvent
  public void onDrawScreen(RenderGameOverlayEvent.Post event) {
    Minecraft mc = Minecraft.getMinecraft();
    Profiler profiler = mc.mcProfiler;

    if(event.type == ElementType.ALL) {
      profiler.startSection("botania-hud");
      MovingObjectPosition pos = mc.objectMouseOver;
View Full Code Here

      profiler.endSection();
    }
  }

  private void renderWandModeDisplay(ScaledResolution res) {
    Minecraft mc = Minecraft.getMinecraft();
    Profiler profiler = mc.mcProfiler;

    profiler.startSection("wandMode");
    int ticks = ReflectionHelper.getPrivateValue(GuiIngame.class, mc.ingameGUI, LibObfuscation.REMAINING_HIGHLIGHT_TICKS);
    ticks -= 15;
View Full Code Here

    }
    profiler.endSection();
  }

  private void renderManaInvBar(ScaledResolution res, boolean hasCreative, int totalMana, int totalMaxMana) {
    Minecraft mc = Minecraft.getMinecraft();
    int width = 182;
    int x = res.getScaledWidth() / 2 - width / 2;
    int y = res.getScaledHeight() - 29;

    if(!hasCreative) {
View Full Code Here

TOP

Related Classes of net.minecraft.client.Minecraft

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.