Examples of ExpansionDebugUnit


Examples of eu.ha3.matmos.expansions.debugunit.ExpansionDebugUnit

    {
      this.expansion.refreshKnowledge();
    }
    else if (par1GuiButton.id == 203 && this.mod.isEditorAvailable())
    {
      final ExpansionDebugUnit debugUnit = this.expansion.obtainDebugUnit();
      if (debugUnit != null)
      {
        PluggableIntoMAtmos plug = new PluggableIntoMAtmos(this.mod, this.expansion);
        this.expansion.addPluggable(plug);
       
        Runnable editor = this.mod.instantiateRunnableEditor(plug);
        if (editor != null)
        {
          new Thread(editor, "EditorWindow_for_" + this.expansion.getName()).start();
         
          if (debugUnit instanceof ReadOnlyJasonStringEDU)
          {
            // XXX Read only mode
            this.mod.getChatter().printChat(
              ChatColorsSimple.COLOR_RED
                + "Expansions inside ZIP files are not supported in this version.");
            this.mod.getChatter().printChatShort(
              ChatColorsSimple.COLOR_RED + "Please unzip the resource packs to be able to view them.");
          }
        }
        else
        {
          this.mod.getChatter().printChat(
            ChatColorsSimple.COLOR_RED + "Could not start editor for an unknown reason.");
        }
      }
    }
    else if (par1GuiButton.id == 204)
    {
      final ExpansionDebugUnit debugUnit = this.expansion.obtainDebugUnit();
      if (debugUnit instanceof FolderResourcePackEditableEDU)
      {
        File expFolder = ((FolderResourcePackEditableEDU) debugUnit).obtainExpansionFolder();
        File minecraftFolder = new File(expFolder, "assets/minecraft/");
        if (minecraftFolder.exists())
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.