Skip to content

Commit

Permalink
Initial beta changes (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacocococo committed Mar 25, 2021
1 parent 1b6a86f commit 72fde57
Show file tree
Hide file tree
Showing 119 changed files with 1,702 additions and 1,335 deletions.
18 changes: 12 additions & 6 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry excluding="com/jacoco/mcdata/nbtparser/" kind="src" path="src"/>
<classpathentry kind="src" path="resources"/>
<classpathentry kind="lib" path="D:/Development/json-simple-1.1.jar"/>
<classpathentry kind="lib" path="D:/Source Code/enigma/enigma-0.15.153-all.jar"/>
<classpathentry kind="lib" path="D:/Development/jd-core-1.1.3.jar"/>
<classpathentry kind="lib" path="D:/Development/rsyntaxtextarea-3.0.4.jar"/>
<classpathentry kind="lib" path="D:/Development/antlr-4.5-complete.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
34 changes: 17 additions & 17 deletions .project
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MCData</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MCData</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
7 changes: 7 additions & 0 deletions resources/META-INF/services/org.jd.gui.spi.ContainerFactory
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Order is important : 'GenericContainerFactoryProvider' must be the last
org.jd.gui.service.container.KarContainerFactoryProvider
org.jd.gui.service.container.JavaModuleContainerFactoryProvider
org.jd.gui.service.container.EarContainerFactoryProvider
org.jd.gui.service.container.WarContainerFactoryProvider
org.jd.gui.service.container.JarContainerFactoryProvider
org.jd.gui.service.container.GenericContainerFactoryProvider
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.jd.gui.service.actions.CopyQualifiedNameContextualActionsFactory
10 changes: 10 additions & 0 deletions resources/META-INF/services/org.jd.gui.spi.FileLoader
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
org.jd.gui.service.fileloader.AarFileLoaderProvider
org.jd.gui.service.fileloader.ClassFileLoaderProvider
org.jd.gui.service.fileloader.EarFileLoaderProvider
org.jd.gui.service.fileloader.JarFileLoaderProvider
org.jd.gui.service.fileloader.JavaFileLoaderProvider
org.jd.gui.service.fileloader.JavaModuleFileLoaderProvider
org.jd.gui.service.fileloader.KarFileLoaderProvider
org.jd.gui.service.fileloader.LogFileLoaderProvider
org.jd.gui.service.fileloader.WarFileLoaderProvider
org.jd.gui.service.fileloader.ZipFileLoaderProvider
12 changes: 12 additions & 0 deletions resources/META-INF/services/org.jd.gui.spi.Indexer
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
org.jd.gui.service.indexer.DirectoryIndexerProvider
org.jd.gui.service.indexer.ClassFileIndexerProvider
org.jd.gui.service.indexer.EjbJarXmlFileIndexerProvider
org.jd.gui.service.indexer.JavaFileIndexerProvider
org.jd.gui.service.indexer.JavaModuleFileIndexerProvider
org.jd.gui.service.indexer.JavaModuleInfoFileIndexerProvider
org.jd.gui.service.indexer.MetainfServiceFileIndexerProvider
org.jd.gui.service.indexer.TextFileIndexerProvider
org.jd.gui.service.indexer.WebXmlFileIndexerProvider
org.jd.gui.service.indexer.ZipFileIndexerProvider
org.jd.gui.service.indexer.XmlBasedFileIndexerProvider
org.jd.gui.service.indexer.XmlFileIndexerProvider
1 change: 1 addition & 0 deletions resources/META-INF/services/org.jd.gui.spi.PanelFactory
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.jd.gui.service.mainpanel.ContainerPanelFactoryProvider
1 change: 1 addition & 0 deletions resources/META-INF/services/org.jd.gui.spi.PasteHandler
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.jd.gui.service.pastehandler.LogPasteHandler
7 changes: 7 additions & 0 deletions resources/META-INF/services/org.jd.gui.spi.PreferencesPanel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
org.jd.gui.service.preferencespanel.UISingleInstancePreferencesProvider
org.jd.gui.service.preferencespanel.UITabsPreferencesProvider
org.jd.gui.service.preferencespanel.DirectoryIndexerPreferencesProvider
org.jd.gui.service.preferencespanel.ClassFileSaverPreferencesProvider
org.jd.gui.service.preferencespanel.ClassFileDecompilerPreferencesProvider
org.jd.gui.service.preferencespanel.ViewerPreferencesProvider
org.jd.gui.service.preferencespanel.MavenOrgSourceLoaderPreferencesProvider
1 change: 1 addition & 0 deletions resources/META-INF/services/org.jd.gui.spi.SourceLoader
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.jd.gui.service.sourceloader.MavenOrgSourceLoaderProvider
5 changes: 5 additions & 0 deletions resources/META-INF/services/org.jd.gui.spi.SourceSaver
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.jd.gui.service.sourcesaver.ClassFileSourceSaverProvider
org.jd.gui.service.sourcesaver.DirectorySourceSaverProvider
org.jd.gui.service.sourcesaver.FileSourceSaverProvider
org.jd.gui.service.sourcesaver.PackageSourceSaverProvider
org.jd.gui.service.sourcesaver.ZipFileSourceSaverProvider
34 changes: 34 additions & 0 deletions resources/META-INF/services/org.jd.gui.spi.TreeNodeFactory
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
org.jd.gui.service.treenode.ClassesDirectoryTreeNodeFactoryProvider
org.jd.gui.service.treenode.ClassFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.CssFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.DirectoryTreeNodeFactoryProvider
org.jd.gui.service.treenode.DtdFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.EarFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.EjbJarXmlFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.FileTreeNodeFactoryProvider
org.jd.gui.service.treenode.HtmlFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.JarFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.JavaFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.JavascriptFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.JavaModuleFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.JavaModulePackageTreeNodeFactoryProvider
org.jd.gui.service.treenode.JsonFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.JspFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.KarFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.ManifestFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.MetainfDirectoryTreeNodeFactoryProvider
org.jd.gui.service.treenode.MetainfServiceFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.ModuleInfoFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.PackageTreeNodeFactoryProvider
org.jd.gui.service.treenode.PropertiesFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.SqlFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.SpiFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.TextFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.WarFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.WarPackageTreeNodeFactoryProvider
org.jd.gui.service.treenode.WebinfLibDirectoryTreeNodeFactoryProvider
org.jd.gui.service.treenode.WebXmlFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.XmlBasedFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.XmlFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.ZipFileTreeNodeFactoryProvider
org.jd.gui.service.treenode.ImageFileTreeNodeFactoryProvider
2 changes: 2 additions & 0 deletions resources/META-INF/services/org.jd.gui.spi.TypeFactory
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.jd.gui.service.type.ClassFileTypeFactoryProvider
org.jd.gui.service.type.JavaFileTypeFactoryProvider
1 change: 1 addition & 0 deletions resources/META-INF/services/org.jd.gui.spi.UriLoader
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.jd.gui.service.uriloader.FileUriLoaderProvider
Binary file added resources/org/jd/gui/images/abstract_ovr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/annotation_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/archivefolder_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/ascii_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/backward_nav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/class_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/classf_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/close.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/close_active.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/constr_ovr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/cpyqual_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/css_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/dtd_obj.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/ear_obj.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/ejbmodule_obj.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/enum_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/field_default_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/field_private_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/field_protected_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/field_public_obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/file-image.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/org/jd/gui/images/file_plain_obj.png
Binary file added resources/org/jd/gui/images/final_ovr.png
Binary file added resources/org/jd/gui/images/folder.gif
Binary file added resources/org/jd/gui/images/folder_open.png
Binary file added resources/org/jd/gui/images/forward_nav.png
Binary file added resources/org/jd/gui/images/generate_class.png
Binary file added resources/org/jd/gui/images/generate_int.png
Binary file added resources/org/jd/gui/images/html_obj.gif
Binary file added resources/org/jd/gui/images/inf_obj.png
Binary file added resources/org/jd/gui/images/int_default_obj.png
Binary file added resources/org/jd/gui/images/int_obj.png
Binary file added resources/org/jd/gui/images/int_private_obj.png
Binary file added resources/org/jd/gui/images/jar_obj.png
Binary file added resources/org/jd/gui/images/java_obj.png
Binary file added resources/org/jd/gui/images/jcu_obj.png
Binary file added resources/org/jd/gui/images/jd_icon_128.png
Binary file added resources/org/jd/gui/images/jd_icon_32.png
Binary file added resources/org/jd/gui/images/jd_icon_64.png
Binary file added resources/org/jd/gui/images/js_obj.png
Binary file added resources/org/jd/gui/images/manifest_obj.png
Binary file added resources/org/jd/gui/images/methdef_obj.png
Binary file added resources/org/jd/gui/images/methpri_obj.png
Binary file added resources/org/jd/gui/images/methpro_obj.png
Binary file added resources/org/jd/gui/images/methpub_obj.png
Binary file added resources/org/jd/gui/images/minus.png
Binary file added resources/org/jd/gui/images/module_obj.png
Binary file added resources/org/jd/gui/images/next_nav.png
Binary file added resources/org/jd/gui/images/open.png
Binary file added resources/org/jd/gui/images/open_type.png
Binary file added resources/org/jd/gui/images/package_obj.png
Binary file added resources/org/jd/gui/images/packagefolder_obj.png
Binary file added resources/org/jd/gui/images/packd_obj.png
Binary file added resources/org/jd/gui/images/paste.png
Binary file added resources/org/jd/gui/images/plus.png
Binary file added resources/org/jd/gui/images/preferences.png
Binary file added resources/org/jd/gui/images/prev_nav.png
Binary file added resources/org/jd/gui/images/save.png
Binary file added resources/org/jd/gui/images/save_all.png
Binary file added resources/org/jd/gui/images/search_src.png
Binary file added resources/org/jd/gui/images/sql_obj.png
Binary file added resources/org/jd/gui/images/static_ovr.png
Binary file added resources/org/jd/gui/images/th_showqualified.png
Binary file added resources/org/jd/gui/images/war_obj.gif
Binary file added resources/org/jd/gui/images/xml_obj.gif
Binary file added resources/org/jd/gui/images/zip_obj.png
39 changes: 39 additions & 0 deletions src/com/jacoco/mcdata/DownloadLatestVersion.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.jacoco.mcdata;

import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;

import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;

public class DownloadLatestVersion {

public static void main(String[] args) throws Exception {
URL manifestUrl = new URL("https://launchermeta.mojang.com/mc/game/version_manifest_v2.json");
JSONObject jo1 = (JSONObject) JSONValue.parse(new InputStreamReader(manifestUrl.openStream()));
JSONObject version = (JSONObject) ((JSONArray) jo1.get("versions")).get(0);
String id = version.get("id").toString();
URL url = new URL(version.get("url").toString());;
File versionsDir = new File(Utils.getMinecraftDir(), "versions");
File versionDir = new File(versionsDir, id);
versionDir.mkdirs();

JSONObject jo2 = (JSONObject) JSONValue.parse(new InputStreamReader(url.openStream()));
PrintWriter writer = new PrintWriter(new File(versionDir, id + ".json"));
writer.write(jo2.toString());
writer.close();

URL jarUrl = new URL(((JSONObject) ((JSONObject) jo2.get("downloads")).get("client")).get("url").toString());
ReadableByteChannel channel = Channels.newChannel(jarUrl.openStream());
FileOutputStream outStream = new FileOutputStream(new File(versionDir, id + ".jar"));
outStream.getChannel().transferFrom(channel, 0, Long.MAX_VALUE);
outStream.close();
channel.close();
}
}
Loading

0 comments on commit 72fde57

Please sign in to comment.