Examples of Minecraft


Examples of net.minecraft.client.Minecraft

            textureFX instanceof Portal) {
            return null;
        }
        Class<? extends TextureFX> textureFXClass = textureFX.getClass();
        logger.info("attempting to refresh unknown animation %s", textureFXClass.getName());
        Minecraft minecraft = MCPatcherUtils.getMinecraft();
        loop:
        for (int i = 0; i < 3; i++) {
            Constructor<? extends TextureFX> constructor;
            try {
                switch (i) {
View Full Code Here

Examples of net.minecraft.client.Minecraft

            }
        }
        textureList.clear();
        CustomAnimation.clear();

        Minecraft minecraft = MCPatcherUtils.getMinecraft();
        Compass compass = new Compass(minecraft);
        textureList.add(compass);
        if (fancyCompass && FancyCompass.refresh()) {
            compass.tileSize = 0;
        }
View Full Code Here

Examples of net.minecraft.client.Minecraft

    private float plusY;
    private float plusOX;
    private float plusOY;

    private FancyCompass() {
        Minecraft minecraft = MCPatcherUtils.getMinecraft();
        RenderEngine renderEngine = minecraft.renderEngine;

        int targetTexture = renderEngine.getTexture(ITEMS_PNG);
        GL11.glBindTexture(GL11.GL_TEXTURE_2D, targetTexture);
        tileSize = GL11.glGetTexLevelParameteri(GL11.GL_TEXTURE_2D, 0, GL11.GL_TEXTURE_WIDTH) / 16;
View Full Code Here

Examples of net.minecraft.client.Minecraft

    public static TexturePackBase getTexturePack() {
        return texturePack;
    }

    static TexturePackBase getCurrentTexturePack() {
        Minecraft minecraft = MCPatcherUtils.getMinecraft();
        if (minecraft == null) {
            return null;
        }
        TexturePackList texturePackList = minecraft.texturePackList;
        if (texturePackList == null) {
View Full Code Here

Examples of net.minecraft.client.Minecraft

                });
            }
        }

        public static void checkForTexturePackChange() {
            Minecraft minecraft = MCPatcherUtils.getMinecraft();
            if (minecraft == null) {
                return;
            }
            TexturePackList texturePackList = minecraft.texturePackList;
            if (texturePackList == null) {
View Full Code Here

Examples of net.minecraft.client.Minecraft

        break;
      default:
        break;
      }

      Minecraft mc = Minecraft.getMinecraft();
      ScaledResolution scaledresolution = new ScaledResolution(mc.gameSettings, mc.displayWidth, mc.displayHeight);

      int mouseX = Mouse.getX() * scaledresolution.getScaledWidth() / mc.displayWidth;
      int mouseY = scaledresolution.getScaledHeight() - Mouse.getY() * scaledresolution.getScaledHeight() / mc.displayHeight - 1;

View Full Code Here

Examples of net.minecraft.client.Minecraft

      for (String current : Splitter.fixedLength(30).split(explaination))
      {
        description.add(EnumChatFormatting.GRAY + current);
      }
     
      Minecraft mc = Minecraft.getMinecraft();
      ScaledResolution scaledresolution = new ScaledResolution(mc.gameSettings, mc.displayWidth, mc.displayHeight);

      int mouseX = Mouse.getX() * scaledresolution.getScaledWidth() / mc.displayWidth;
      int mouseY = scaledresolution.getScaledHeight() - Mouse.getY() * scaledresolution.getScaledHeight() / mc.displayHeight - 1;

View Full Code Here

Examples of net.minecraft.client.Minecraft

    }
  }

  public void renderToInventory(ItemStack item, RenderBlocks renderBlocks) {

    Minecraft mc = Minecraft.getMinecraft();
    ri.renderItemIntoGUI(mc.fontRenderer, mc.getTextureManager(), item, 0, 0, true);
    GL11.glDisable(GL11.GL_LIGHTING);

    if(isJustCrafted(item)) {
      return;
    }
View Full Code Here

Examples of net.minecraft.client.Minecraft

import static org.lwjgl.opengl.GL11.*;

public class FarmingStationSpecialRenderer extends TileEntitySpecialRenderer{

  private void renderFarmStationAt(TileFarmStation tile, double x, double y, double z, float partialTickTime) {
    Minecraft mc = Minecraft.getMinecraft();
    FontRenderer fnt = mc.fontRenderer;
    Tessellator tessellator = Tessellator.instance;
    String toRender = tile.notification;

    if ("".equals(toRender) || Config.disableFarmNotification) {
View Full Code Here

Examples of net.minecraft.client.Minecraft

  protected void drawItemStack(ItemStack itemStack, int x, int y)
  {
    x += 2;
    y -= 1;

    Minecraft mc = Minecraft.getMinecraft();
    FontRenderer fontRenderer = mc.fontRenderer;

    RenderHelper.enableGUIStandardItemLighting();
    GL11.glTranslatef(0.0F, 0.0F, 32.0F);
    this.zLevel = 500.0F;
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.