Package net.minecraft.client

Examples of net.minecraft.client.Minecraft


    RenderHelper.drawTexturedModalRect(x, y, 0, 0, 251, width, 5);
    GL11.glDisable(GL11.GL_BLEND);
  }

  private void renderPoolRecipeHUD(ScaledResolution res, TilePool tile, ItemStack stack) {
    Minecraft mc = Minecraft.getMinecraft();
    Profiler profiler = mc.mcProfiler;

    profiler.startSection("poolRecipe");
    for(RecipeManaInfusion recipe : BotaniaAPI.manaInfusionRecipes) {
      if(recipe.matches(stack)) {
View Full Code Here


    }
    profiler.endSection();
  }

  private void drawLexiconHUD(ItemStack stack, Block block, MovingObjectPosition pos, ScaledResolution res) {
    Minecraft mc = Minecraft.getMinecraft();
    Profiler profiler = mc.mcProfiler;

    profiler.startSection("lexicon");
    FontRenderer font = mc.fontRenderer;
    boolean draw = false;
View Full Code Here

  }

  public static void drawSimpleManaHUD(int color, int mana, int maxMana, String name, ScaledResolution res) {
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    Minecraft mc = Minecraft.getMinecraft();
    int x = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(name) / 2;
    int y = res.getScaledHeight() / 2 + 10;

    mc.fontRenderer.drawStringWithShadow(name, x, y, color);
View Full Code Here

    GL11.glDisable(GL11.GL_BLEND);
  }

  public static void renderManaBar(int x, int y, int color, float alpha, int mana, int maxMana) {
    Minecraft mc = Minecraft.getMinecraft();

    GL11.glColor4f(1F, 1F, 1F, alpha);
    mc.renderEngine.bindTexture(manaBar);
    RenderHelper.drawTexturedModalRect(x, y, 0, 0, 0, 102, 5);
View Full Code Here

    public static KeyBinding personalBackpack = new KeyBinding(Localizations.KEY_PERSONAL, Keyboard.KEY_B, Localizations.KEY_CATEGORY);

    @SubscribeEvent
    public void handleKeyInput(KeyInputEvent event) {
        if(personalBackpack.isPressed()) {
            Minecraft mc = FMLClientHandler.instance().getClient();
            // If we are not in a GUI of any kind
            if(mc.inGameHasFocus) {
                // get the current player which has pressed the key
                EntityPlayer player = mc.thePlayer;
                if(player != null) {
View Full Code Here

  }
 
  @Override
  protected void doProcess()
  {
    Minecraft mc = Minecraft.getMinecraft();
   
    if (mc.objectMouseOver == null || mc.objectMouseOver.typeOfHit == null)
    {
      setValue("mouse_over_something", false);
      setValue("mouse_over_what", "");
View Full Code Here

    {
      IDontKnowHowToCode.warnOnce("EntityDetector is running but not required. Logic error?");
      return;
    }
   
    Minecraft mc = Minecraft.getMinecraft();
   
    double x = mc.thePlayer.posX;
    double y = mc.thePlayer.posY;
    double z = mc.thePlayer.posZ;
   
View Full Code Here

  }
 
  @Override
  protected void doProcess()
  {
    Minecraft mc = Minecraft.getMinecraft();
   
    if (mc.objectMouseOver == null || mc.objectMouseOver.typeOfHit == null)
    {
      setValue("mouse_over_something", false);
      setValue("mouse_over_what_remapped", -1);
View Full Code Here

  }
 
  @Override
  protected void doProcess()
  {
    Minecraft mc = Minecraft.getMinecraft();
    EntityClientPlayerMP player = mc.thePlayer;
    Entity ride = player.ridingEntity;
   
    setValue("player_health_ceil", (int) Math.ceil(player.getHealth()));
    setValue("world_nether", player.dimension == -1);
View Full Code Here

    }
  }
 
  private BiomeGenBase calculateBiome()
  {
    Minecraft mc = Minecraft.getMinecraft();
    int x = MathHelper.floor_double(mc.thePlayer.posX);
    int z = MathHelper.floor_double(mc.thePlayer.posZ);
   
    Chunk chunk = mc.theWorld.getChunkFromBlockCoords(x, z);
    return chunk.getBiomeGenForWorldCoords(x & 15, z & 15, mc.theWorld.getWorldChunkManager());
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.