Support MC 1.9 + passage à la version 1.0-beta3
This commit is contained in:
parent
fe8cbf2a55
commit
7803262060
@ -3,8 +3,8 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry kind="src" path="resources"/>
|
<classpathentry kind="src" path="resources"/>
|
||||||
<classpathentry kind="lib" path="lib/BungeeCord-1071.jar" sourcepath="lib/BungeeCord-1071.src.zip"/>
|
|
||||||
<classpathentry kind="lib" path="lib/BungeePerms-3.0-alpha-1_modif.jar"/>
|
<classpathentry kind="lib" path="lib/BungeePerms-3.0-alpha-1_modif.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/spigot-1.8.8.jar" sourcepath="lib/spigot-1.8.8_source.zip"/>
|
<classpathentry kind="lib" path="lib/spigot-1.9.4.jar" sourcepath="lib/spigot-1.9.4_source.zip"/>
|
||||||
|
<classpathentry kind="lib" path="lib/BungeeCord-1156.jar" sourcepath="lib/BungeeCord-1156_source.zip"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<jardesc>
|
<jardesc>
|
||||||
<jar path="PandacubeUtil/jar_export/PandacubeUtil-1.0-beta2.jar"/>
|
<jar path="PandacubeUtil/jar_export/PandacubeUtil-1.0-beta3.jar"/>
|
||||||
<options buildIfNeeded="true" compress="true" descriptionLocation="/PandacubeUtil/make_jar.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="false" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
|
<options buildIfNeeded="true" compress="true" descriptionLocation="/PandacubeUtil/make_jar.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="false" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
|
||||||
<storedRefactorings deprecationInfo="true" structuralOnly="false"/>
|
<storedRefactorings deprecationInfo="true" structuralOnly="false"/>
|
||||||
<selectedProjects/>
|
<selectedProjects/>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: PandacubeUtil
|
name: PandacubeUtil
|
||||||
main: fr.pandacube.java.BungeeMain
|
main: fr.pandacube.java.BungeeMain
|
||||||
version: 1.0-beta2
|
version: 1.0-beta3
|
||||||
author: Marc Baloup (marcbal)
|
author: Marc Baloup (marcbal)
|
@ -1,4 +1,4 @@
|
|||||||
name: PandacubeUtil
|
name: PandacubeUtil
|
||||||
main: fr.pandacube.java.SpigotMain
|
main: fr.pandacube.java.SpigotMain
|
||||||
version: 1.0-beta2
|
version: 1.0-beta3
|
||||||
author: Marc Baloup (marcbal)
|
author: Marc Baloup (marcbal)
|
@ -1,14 +1,27 @@
|
|||||||
package fr.pandacube.java.util;
|
package fr.pandacube.java.util;
|
||||||
|
|
||||||
public enum MinecraftVersion {
|
public enum MinecraftVersion {
|
||||||
v1_7_2_to_1_7_5(4),
|
v1_7_2_to_1_7_5(4, "1.7.2-1.7.5", false),
|
||||||
v1_7_6_to_1_7_10(5),
|
v1_7_6_to_1_7_10(5, "1.7.6-1.7.10", false),
|
||||||
v1_8(47);
|
v1_8(47, "1.8.x", true),
|
||||||
|
v1_9(107, "1.9", false),
|
||||||
|
v1_9_1(108, "1.9.1", false),
|
||||||
|
v1_9_2(109, "1.9.2", false),
|
||||||
|
v1_9_3_to_1_9_4(110, "1.9.3-1.9.4", true);
|
||||||
|
|
||||||
public final int versionNumber;
|
public final int versionNumber;
|
||||||
|
public final String versionDisplay;
|
||||||
|
public final boolean available;
|
||||||
|
|
||||||
private MinecraftVersion(int v) {
|
private MinecraftVersion(int v, String d, boolean a) {
|
||||||
versionNumber = v;
|
versionNumber = v;
|
||||||
|
versionDisplay = d;
|
||||||
|
available = a;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return versionDisplay;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MinecraftVersion getVersion(int v) {
|
public static MinecraftVersion getVersion(int v) {
|
||||||
@ -18,4 +31,18 @@ public enum MinecraftVersion {
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static String displayAvailableVersions() {
|
||||||
|
boolean first = true;
|
||||||
|
String concat = "";
|
||||||
|
for (MinecraftVersion v : values()) {
|
||||||
|
if (!v.available) continue;
|
||||||
|
if (!first) concat += ", ";
|
||||||
|
first = false;
|
||||||
|
concat += v.versionDisplay;
|
||||||
|
}
|
||||||
|
|
||||||
|
return concat;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user