Examples of Minecraft


Examples of net.minecraft.client.Minecraft

  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

Examples of net.minecraft.client.Minecraft

      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

Examples of net.minecraft.client.Minecraft

    }
    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

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

Examples of net.minecraft.client.Minecraft

    }
    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

Examples of net.minecraft.client.Minecraft

  }

  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

Examples of net.minecraft.client.Minecraft

    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

Examples of net.minecraft.client.Minecraft

    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

Examples of net.minecraft.client.Minecraft

  }
 
  @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

Examples of net.minecraft.client.Minecraft

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