Package com.mojang.minecraft

Examples of com.mojang.minecraft.Minecraft


  public void startMinecraft()
  {
    MCApplet applet = new MCApplet();
    MinecraftApplet$1 canvas = new MinecraftApplet$1(applet);

    Minecraft minecraft = new Minecraft(canvas, applet, getWidth(), getHeight(), false);

    canvas.setSize(getWidth(), getHeight());

    add(canvas, "Center");
View Full Code Here


      }
   }

   protected void openLevel(File var1) {
      File var2 = var1;
      Minecraft var4 = this.minecraft;
      Level var5;
      boolean var10000;
      if((var5 = this.minecraft.levelIo.load(var2)) == null) {
         var10000 = false;
      } else {
         var4.setLevel(var5);
         var10000 = true;
      }

      this.minecraft.setCurrentScreen(this.parent);
   }
View Full Code Here

   }

   protected final void onButtonClick(Button var1) {
      if(var1.active) {
         if(var1.id == 0 && this.name.trim().length() > 1) {
            Minecraft var10000 = this.minecraft;
            int var10001 = this.id;
            String var2 = this.name.trim();
            int var3 = var10001;
            Minecraft var4 = var10000;
            var10000.levelIo.saveOnline(var4.level, var4.host, var4.session.username, var4.session.sessionId, var2, var3);
            this.minecraft.setCurrentScreen((GuiScreen)null);
            this.minecraft.grabMouse();
         }
View Full Code Here

      }
   }

   public void playSound(String var1, Entity var2, float var3, float var4) {
      if(this.rendererContext$5cd64a7f != null) {
         Minecraft var5;
         if((var5 = this.rendererContext$5cd64a7f).soundPlayer == null || !var5.settings.sound) {
            return;
         }

         AudioInfo var6;
View Full Code Here

   }

   public void playSound(String var1, float var2, float var3, float var4, float var5, float var6) {
      if(this.rendererContext$5cd64a7f != null) {
         Minecraft var7;
         if((var7 = this.rendererContext$5cd64a7f).soundPlayer == null || !var7.settings.sound) {
            return;
         }

         AudioInfo var8;
View Full Code Here

      if(!var1.getName().endsWith(".mine")) {
         var1 = new File(var1.getParentFile(), var1.getName() + ".mine");
      }

      File var2 = var1;
      Minecraft var3 = this.minecraft;
      this.minecraft.levelIo.save(var3.level, var2);
      this.minecraft.setCurrentScreen(this.parent);
   }
View Full Code Here


   public void render(int var1, int var2) {
      for(int var3 = 0; var3 < this.buttons.size(); ++var3) {
         Button var10000 = (Button)this.buttons.get(var3);
         Minecraft var7 = this.minecraft;
         Button var4 = var10000;
         if(var10000.visible) {
            FontRenderer var8 = var7.fontRenderer;
            GL11.glBindTexture(3553, var7.textureManager.load("/gui/gui.png"));
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
View Full Code Here

TOP

Related Classes of com.mojang.minecraft.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.