diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..4828d9584 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +# Java Gradle CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-java/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + - image: circleci/openjdk:8-jdk + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + environment: + # Customize the JVM maximum heap limit + JVM_OPTS: -Xmx2048mb + TERM: dumb + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "build.gradle" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: ./gradlew dependencies + + - save_cache: + paths: + - ~/gradle + key: v1-dependencies-{{ checksum "build.gradle" }} + + # run tests! + - run: ./gradlew check diff --git a/.gitignore b/.gitignore index aee4667e5..610aa80c3 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,9 @@ # Travis !/.travis.yml +# CircleCI +!/.circleci + # unwanted os-generated files .DS_Store .DS_Store? diff --git a/README.md b/README.md index 50abece54..bc17b302b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://img.shields.io/travis/NOVA-Team/NOVA-Core.svg?style=flat-square)](https://travis-ci.org/NOVA-Team/NOVA-Core) +[![Build Status](https://img.shields.io/travis/NOVA-Team/NOVA-Core/master.svg?style=flat-square)](https://travis-ci.org/NOVA-Team/NOVA-Core) [![Coverage](https://img.shields.io/codecov/c/github/NOVA-Team/NOVA-Core.svg?style=flat-square)](https://codecov.io/github/NOVA-Team/NOVA-Core) [![Tests](https://img.shields.io/jenkins/t/http/ci.novaapi.net/NOVA-Core.svg?style=flat-square)](http://ci.novaapi.net/job/NOVA-Core/lastCompletedBuild/testReport/) [![waffle.io](https://img.shields.io/badge/tracker-waffle.io-blue.svg?style=flat-square)](https://waffle.io/NOVA-Team/NOVA-Core) diff --git a/build.gradle b/build.gradle index 5a7c31c74..e66c63087 100644 --- a/build.gradle +++ b/build.gradle @@ -9,16 +9,16 @@ plugins { apply from: "https://raw.githubusercontent.com/NOVA-Team/NOVA-Gradle/master/shared-scripts/java.gradle" dependencies { - compile 'com.google.guava:guava:18.0' - compile 'com.typesafe:config:1.2.1' - compile 'se.jbee:silk-di:0.6' - compile 'org.slf4j:slf4j-api:1.7.10' - compile 'org.apache.commons:commons-math3:3.5' - compile 'javax.json:javax.json-api:1.0' - compile 'net.jodah:typetools:0.4.9' - - runtime 'org.glassfish:javax.json:1.0.4' - testRuntime 'org.slf4j:slf4j-simple:1.7.10' + api 'com.google.guava:guava:18.0' + api 'com.typesafe:config:1.2.1' + api 'se.jbee:silk-di:0.6' + api 'org.slf4j:slf4j-api:1.7.10' + api 'org.apache.commons:commons-math3:3.5' + api 'javax.json:javax.json-api:1.0' + implementation 'net.jodah:typetools:0.5.0' + + runtimeOnly 'org.glassfish:javax.json:1.0.4' + testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.10' //checkstyle 'com.puppycrawl.tools:checkstyle:6.2' } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 3baa851b2..88768bafd 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index d2e9e300b..2166b4be7 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Thu Aug 18 16:23:23 BRT 2016 +#Mon Mar 19 14:35:32 CET 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip diff --git a/gradlew b/gradlew index 27309d923..4453ccea3 100755 --- a/gradlew +++ b/gradlew @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh ############################################################################## ## @@ -154,11 +154,19 @@ if $cygwin ; then esac fi -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") +# Escape application args +save ( ) { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " } -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" +APP_ARGS=$(save "$@") -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat index 832fdb607..f9553162f 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -49,7 +49,6 @@ goto fail @rem Get command-line arguments, handling Windows variants if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args :win9xME_args @rem Slurp the command line arguments. @@ -60,11 +59,6 @@ set _SKIP=2 if "x%~1" == "x" goto execute set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ :execute @rem Setup the command line diff --git a/minecraft/.gitignore b/minecraft/.gitignore index a4c6e69be..ef93a8127 100644 --- a/minecraft/.gitignore +++ b/minecraft/.gitignore @@ -4,4 +4,4 @@ !/.gitignore !/1.8 -!/1.7 +!/1.7.10 diff --git a/minecraft/1.7/.gitignore b/minecraft/1.7.10/.gitignore similarity index 100% rename from minecraft/1.7/.gitignore rename to minecraft/1.7.10/.gitignore diff --git a/minecraft/1.7/build.gradle b/minecraft/1.7.10/build.gradle similarity index 94% rename from minecraft/1.7/build.gradle rename to minecraft/1.7.10/build.gradle index add6a3ab4..72ff1133e 100644 --- a/minecraft/1.7/build.gradle +++ b/minecraft/1.7.10/build.gradle @@ -18,11 +18,9 @@ configurations { dependencies { fatJar project(":") fatJar 'org.apache.logging.log4j:log4j-slf4j-impl:2.0-beta9' - testCompile project(path: ':', configuration: 'wrapperTests') + testImplementation project(path: ':', configuration: 'wrapperTests') - testCompile "junit:junit:4.12" - testCompile 'org.assertj:assertj-core:3.0.0' - testRuntime 'org.slf4j:slf4j-simple:1.7.10' + testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.10' } jar { diff --git a/minecraft/1.7/gradle.properties b/minecraft/1.7.10/gradle.properties similarity index 87% rename from minecraft/1.7/gradle.properties rename to minecraft/1.7.10/gradle.properties index dd8f10841..a1a1710e1 100644 --- a/minecraft/1.7/gradle.properties +++ b/minecraft/1.7.10/gradle.properties @@ -2,6 +2,7 @@ group = nova.core minecraft.version = 1.7.10 forge.version = 10.13.4.1448-1.7.10 +forgeGradleVersion = 1.2-SNAPSHOT packaging = jar info.inceptionYear = 2015 diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/NovaMinecraftCore.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/NovaMinecraftCore.java similarity index 92% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/NovaMinecraftCore.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/NovaMinecraftCore.java index 0b2237aa3..2a98c7d4a 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/NovaMinecraftCore.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/NovaMinecraftCore.java @@ -18,11 +18,11 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17; +package nova.core.wrapper.mc.forge.v1_7_10; import cpw.mods.fml.relauncher.IFMLLoadingPlugin; import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion; -import nova.core.wrapper.mc.forge.v17.asm.transformers.Transformers; +import nova.core.wrapper.mc.forge.v1_7_10.asm.transformers.Transformers; import java.util.Map; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/NovaMinecraftPreloader.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/NovaMinecraftPreloader.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/NovaMinecraftPreloader.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/NovaMinecraftPreloader.java index 96b423b81..6b5e167d0 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/NovaMinecraftPreloader.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/NovaMinecraftPreloader.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17; +package nova.core.wrapper.mc.forge.v1_7_10; import com.google.common.eventbus.EventBus; import com.google.common.eventbus.Subscribe; @@ -40,10 +40,10 @@ import net.minecraft.launchwrapper.LaunchClassLoader; import nova.core.loader.Mod; import nova.core.util.ClassLoaderUtil; -import nova.core.wrapper.mc.forge.v17.util.ReflectionUtil; -import nova.core.wrapper.mc.forge.v17.wrapper.assets.NovaFileResourcePack; -import nova.core.wrapper.mc.forge.v17.wrapper.assets.NovaFolderResourcePack; -import nova.core.wrapper.mc.forge.v17.wrapper.assets.NovaResourcePack; +import nova.core.wrapper.mc.forge.v1_7_10.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets.NovaFileResourcePack; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets.NovaFolderResourcePack; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets.NovaResourcePack; import nova.internal.core.Game; import java.io.File; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/StaticForwarder.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/StaticForwarder.java similarity index 84% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/StaticForwarder.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/StaticForwarder.java index 932c004db..062fe1986 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/StaticForwarder.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/StaticForwarder.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm; +package nova.core.wrapper.mc.forge.v1_7_10.asm; import net.minecraft.block.Block; import net.minecraft.nbt.NBTTagCompound; @@ -26,13 +26,13 @@ import net.minecraft.world.chunk.Chunk; import nova.core.component.misc.FactoryProvider; import nova.core.event.BlockEvent; -import nova.core.wrapper.mc.forge.v17.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v17.wrapper.block.backward.BWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWTile; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWTileLoader; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.MCBlockTransform; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.backward.BWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWTile; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWTileLoader; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.MCBlockTransform; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; import nova.internal.core.Game; import nova.internal.core.launch.NovaLauncher; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; @@ -75,10 +75,10 @@ public static void chunkSetBlockEvent(Chunk chunk, int x, int y, int z, Block ol /** * Used to inject forwarded TileEntites - * @param data - * @param clazz - * @return - * @throws Exception + * @param data The TileEntity data + * @param clazz The TileEntity class + * @return The new TileEntity instance + * @throws Exception If an exception occurred */ public static TileEntity loadTileEntityHook(NBTTagCompound data, Class clazz) throws Exception { if (clazz.equals(FWTile.class)) { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ASMHelper.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ASMHelper.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ASMHelper.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ASMHelper.java index fbf351a39..e0688b25f 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ASMHelper.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ASMHelper.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.lib; +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; import com.google.common.collect.HashMultimap; import com.google.common.collect.Multimap; @@ -64,8 +64,8 @@ public class ASMHelper { static { try { - defineClass1 = ClassLoader.class.getDeclaredMethod("defineClass", new Class[] { String.class, byte[].class, int.class, int.class }); - defineClass2 = ClassLoader.class.getDeclaredMethod("defineClass", new Class[] { String.class, byte[].class, int.class, int.class, ProtectionDomain.class }); + defineClass1 = ClassLoader.class.getDeclaredMethod("defineClass", String.class, byte[].class, int.class, int.class); + defineClass2 = ClassLoader.class.getDeclaredMethod("defineClass", String.class, byte[].class, int.class, int.class, ProtectionDomain.class); } catch (Exception e) { throw new RuntimeException(e); } @@ -135,7 +135,7 @@ public static byte[] injectMethods(String name, byte[] bytes, Multimap callNodes; if (injector.before) { @@ -314,6 +314,7 @@ public static Class defineClass(ClassNode cn, int flags) { try { byte[] bytes = createBytes(cn, flags); defineClass1.setAccessible(true); + @SuppressWarnings("unchecked") Class clazz = (Class) defineClass1.invoke(Thread.currentThread().getContextClassLoader(), cn.name.replaceAll("/", "."), bytes, 0, bytes.length); defineClass1.setAccessible(false); return clazz; @@ -329,6 +330,7 @@ public static Class defineClass(ClassNode cn, int flags, ProtectionDomain try { byte[] bytes = createBytes(cn, flags); defineClass2.setAccessible(true); + @SuppressWarnings("unchecked") Class clazz = (Class) defineClass2.invoke(Thread.currentThread().getContextClassLoader(), cn.name.replaceAll("/", "."), bytes, 0, bytes.length, domain); defineClass2.setAccessible(false); return clazz; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/CC_ClassWriter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/CC_ClassWriter.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/CC_ClassWriter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/CC_ClassWriter.java index 965c67000..fb687d210 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/CC_ClassWriter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/CC_ClassWriter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.lib; +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; import org.objectweb.asm.ClassWriter; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ClassHeirachyManager.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ClassHeirachyManager.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ClassHeirachyManager.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ClassHeirachyManager.java index b384852ba..f1eefb536 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ClassHeirachyManager.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ClassHeirachyManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.lib; +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; import cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper; import net.minecraft.launchwrapper.IClassTransformer; @@ -59,10 +59,10 @@ public static String unKey(String name) { } /** - * Returns true if clazz extends, either directly or indirectly, superclass. + * Returns true if the class extends, either directly or indirectly, the superclass. * @param name The class in question * @param superclass The class being extended - * @return + * @return If the class extends or not */ public static boolean classExtends(String name, String superclass) { name = toKey(name); diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ComponentInjector.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ComponentInjector.java similarity index 98% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ComponentInjector.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ComponentInjector.java index ff63f377e..5a93a780f 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ComponentInjector.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ComponentInjector.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.lib; +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; import nova.core.component.Component; import nova.core.component.ComponentMap; @@ -46,7 +46,7 @@ * The ComponentInjector is capable of creating dynamic classes that implement a * specified super class and implement the interfaces specified by * {@link Component} and {@link Passthrough}. - * @param + * @param The component type * @author Vic Nightfall */ public class ComponentInjector implements Opcodes { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/InsnListPrinter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/InsnListPrinter.java similarity index 98% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/InsnListPrinter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/InsnListPrinter.java index 5add25c87..f3d8aaecc 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/InsnListPrinter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/InsnListPrinter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.lib; +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; import org.objectweb.asm.Label; import org.objectweb.asm.Opcodes; @@ -123,6 +123,7 @@ public void visitInsn(AbstractInsnNode insn) { _visitInsn(insn); } + @SuppressWarnings("deprecation") private void _visitInsn(AbstractInsnNode insn) { switch (insn.getType()) { case 0: diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/InstructionComparator.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/InstructionComparator.java similarity index 99% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/InstructionComparator.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/InstructionComparator.java index 4acd88c52..54ee099ef 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/InstructionComparator.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/InstructionComparator.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.lib; +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; import org.objectweb.asm.tree.AbstractInsnNode; import org.objectweb.asm.tree.FieldInsnNode; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ObfMapping.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ObfMapping.java similarity index 98% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ObfMapping.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ObfMapping.java index 95ce7466e..cfdc6ae05 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ObfMapping.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/ObfMapping.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.lib; +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; import com.google.common.base.Objects; import cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper; @@ -118,6 +118,7 @@ public boolean matches(MethodInsnNode node) { return s_owner.equals(node.owner) && s_name.equals(node.name) && s_desc.equals(node.desc); } + @SuppressWarnings("deprecation") public AbstractInsnNode toInsn(int opcode) { if (isClass()) { return new TypeInsnNode(opcode, s_owner); @@ -132,6 +133,7 @@ public void visitTypeInsn(MethodVisitor mv, int opcode) { mv.visitTypeInsn(opcode, s_owner); } + @SuppressWarnings("deprecation") public void visitMethodInsn(MethodVisitor mv, int opcode) { mv.visitMethodInsn(opcode, s_owner, s_name, s_desc); } diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/TemplateInjector.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/TemplateInjector.java similarity index 94% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/TemplateInjector.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/TemplateInjector.java index a68b466c0..c607a051c 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/TemplateInjector.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/TemplateInjector.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.lib; +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; import com.google.common.collect.HashBiMap; import org.objectweb.asm.tree.ClassNode; @@ -44,7 +44,7 @@ public class TemplateInjector { * @param className - Class that will be injected * @param template - Default interface used as a template to inject in the templateName */ - public void registerTemplate(String className, Class template) { + public void registerTemplate(String className, Class template) { templates.put(className, new InjectionTemplate(template.getName())); } @@ -83,8 +83,8 @@ public InjectionTemplate(String templateName) { /** * Patches the cnode withPriority the methods from this template. - * @param cnode - * @return + * @param cnode The ClassNode instance + * @return If the class node was modified */ public boolean inject(ClassNode cnode) { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/package-info.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/package-info.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/package-info.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/package-info.java index bb91bf3a9..3943f14c2 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/package-info.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/lib/package-info.java @@ -24,4 +24,4 @@ * @author Calclavia */ -package nova.core.wrapper.mc.forge.v17.asm.lib; \ No newline at end of file +package nova.core.wrapper.mc.forge.v1_7_10.asm.lib; \ No newline at end of file diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/ChunkTransformer.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/ChunkTransformer.java similarity index 94% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/ChunkTransformer.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/ChunkTransformer.java index 454463d9d..dc8dfaf48 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/ChunkTransformer.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/ChunkTransformer.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.transformers; +package nova.core.wrapper.mc.forge.v1_7_10.asm.transformers; -import nova.core.wrapper.mc.forge.v17.asm.lib.ASMHelper; -import nova.core.wrapper.mc.forge.v17.asm.lib.ObfMapping; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.ASMHelper; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.ObfMapping; import nova.internal.core.Game; import org.objectweb.asm.tree.AbstractInsnNode; import org.objectweb.asm.tree.ClassNode; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/GameDataTransformer.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/GameDataTransformer.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/GameDataTransformer.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/GameDataTransformer.java index 1ae6e339a..eed86c7c0 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/GameDataTransformer.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/GameDataTransformer.java @@ -17,10 +17,10 @@ * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.transformers; +package nova.core.wrapper.mc.forge.v1_7_10.asm.transformers; -import nova.core.wrapper.mc.forge.v17.asm.lib.ASMHelper; -import nova.core.wrapper.mc.forge.v17.asm.lib.ObfMapping; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.ASMHelper; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.ObfMapping; import nova.internal.core.Game; import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.InsnList; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/TileEntityTransformer.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/TileEntityTransformer.java similarity index 90% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/TileEntityTransformer.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/TileEntityTransformer.java index 2df4a91f4..275a23091 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/TileEntityTransformer.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/TileEntityTransformer.java @@ -18,11 +18,11 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.transformers; +package nova.core.wrapper.mc.forge.v1_7_10.asm.transformers; -import nova.core.wrapper.mc.forge.v17.asm.lib.ASMHelper; -import nova.core.wrapper.mc.forge.v17.asm.lib.InstructionComparator; -import nova.core.wrapper.mc.forge.v17.asm.lib.ObfMapping; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.ASMHelper; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.InstructionComparator; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.ObfMapping; import nova.internal.core.Game; import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.InsnList; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/Transformer.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/Transformer.java similarity index 94% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/Transformer.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/Transformer.java index 1e24c7cdd..9d0712eeb 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/Transformer.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/Transformer.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.transformers; +package nova.core.wrapper.mc.forge.v1_7_10.asm.transformers; import org.objectweb.asm.Opcodes; import org.objectweb.asm.tree.ClassNode; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/Transformers.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/Transformers.java similarity index 94% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/Transformers.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/Transformers.java index 28f61630f..2a2193874 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/transformers/Transformers.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/asm/transformers/Transformers.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.transformers; +package nova.core.wrapper.mc.forge.v1_7_10.asm.transformers; import net.minecraft.launchwrapper.IClassTransformer; -import nova.core.wrapper.mc.forge.v17.asm.lib.ASMHelper; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.ASMHelper; import org.objectweb.asm.tree.ClassNode; import java.util.ArrayList; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/ClientModule.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/ClientModule.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/ClientModule.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/ClientModule.java index 7459af91e..598237f60 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/ClientModule.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/ClientModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.depmodules; +package nova.core.wrapper.mc.forge.v1_7_10.depmodules; import nova.core.game.ClientManager; -import nova.core.wrapper.mc.forge.v17.manager.FWClientManager; +import nova.core.wrapper.mc.forge.v1_7_10.manager.FWClientManager; import se.jbee.inject.bind.BinderModule; public class ClientModule extends BinderModule { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/ComponentModule.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/ComponentModule.java similarity index 88% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/ComponentModule.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/ComponentModule.java index f099f4f68..4642c3e14 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/ComponentModule.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/ComponentModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.depmodules; +package nova.core.wrapper.mc.forge.v1_7_10.depmodules; import nova.core.entity.component.RigidBody; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.BWRigidBody; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.BWRigidBody; import se.jbee.inject.bind.BinderModule; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/GameInfoModule.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/GameInfoModule.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/GameInfoModule.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/GameInfoModule.java index 830cd33f9..6c0063aea 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/GameInfoModule.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/GameInfoModule.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.depmodules; +package nova.core.wrapper.mc.forge.v1_7_10.depmodules; import nova.core.game.GameInfo; import se.jbee.inject.Dependency; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/KeyModule.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/KeyModule.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/KeyModule.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/KeyModule.java index d4f139321..559201b23 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/KeyModule.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/KeyModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.depmodules; +package nova.core.wrapper.mc.forge.v1_7_10.depmodules; import nova.core.game.InputManager; -import nova.core.wrapper.mc.forge.v18.util.MCInputManager; +import nova.core.wrapper.mc.forge.v1_7_10.util.MCInputManager; import se.jbee.inject.bind.BinderModule; public class KeyModule extends BinderModule { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/LanguageModule.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/LanguageModule.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/LanguageModule.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/LanguageModule.java index 7fb5745b8..220a5b247 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/LanguageModule.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/LanguageModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.depmodules; +package nova.core.wrapper.mc.forge.v1_7_10.depmodules; import nova.core.language.LanguageManager; -import nova.core.wrapper.mc.forge.v17.util.MCLanguageManager; +import nova.core.wrapper.mc.forge.v1_7_10.util.MCLanguageManager; import se.jbee.inject.bind.BinderModule; public class LanguageModule extends BinderModule { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/NetworkModule.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/NetworkModule.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/NetworkModule.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/NetworkModule.java index e7eb1ef60..561b152d2 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/NetworkModule.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/NetworkModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.depmodules; +package nova.core.wrapper.mc.forge.v1_7_10.depmodules; import nova.core.network.NetworkManager; -import nova.core.wrapper.mc.forge.v18.network.netty.MCNetworkManager; +import nova.core.wrapper.mc.forge.v1_7_10.network.netty.MCNetworkManager; import se.jbee.inject.bind.BinderModule; public class NetworkModule extends BinderModule { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/SaveModule.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/SaveModule.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/SaveModule.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/SaveModule.java index 334e89499..3e3eec37a 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/SaveModule.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/SaveModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.depmodules; +package nova.core.wrapper.mc.forge.v1_7_10.depmodules; import nova.core.util.registry.RetentionManager; -import nova.core.wrapper.mc.forge.v17.manager.MCRetentionManager; +import nova.core.wrapper.mc.forge.v1_7_10.manager.MCRetentionManager; import se.jbee.inject.bind.BinderModule; public class SaveModule extends BinderModule { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/TickerModule.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/TickerModule.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/TickerModule.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/TickerModule.java index 296747ef0..edf25e751 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/TickerModule.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/depmodules/TickerModule.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.depmodules; +package nova.core.wrapper.mc.forge.v1_7_10.depmodules; import nova.internal.core.tick.UpdateTicker; import se.jbee.inject.Dependency; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ClientProxy.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ClientProxy.java similarity index 85% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ClientProxy.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ClientProxy.java index e282016a5..250490024 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ClientProxy.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ClientProxy.java @@ -18,12 +18,11 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.launcher; +package nova.core.wrapper.mc.forge.v1_7_10.launcher; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.client.registry.RenderingRegistry; -import cpw.mods.fml.common.ProgressManager; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; @@ -38,17 +37,17 @@ import nova.core.entity.Entity; import nova.core.entity.EntityFactory; import nova.core.language.LanguageManager; -import nova.core.wrapper.mc.forge.v17.NovaMinecraftPreloader; -import nova.core.wrapper.mc.forge.v17.render.RenderUtility; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWTile; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWTileRenderer; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntityFX; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.FWEntityFX; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.FWEntityRenderer; -import nova.core.wrapper.mc.forge.v17.wrapper.item.FWItem; +import nova.core.wrapper.mc.forge.v1_7_10.NovaMinecraftPreloader; +import nova.core.wrapper.mc.forge.v1_7_10.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWTile; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWTileRenderer; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntityFX; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.FWEntityFX; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.FWEntityRenderer; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.FWItem; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.io.IOException; @@ -73,8 +72,9 @@ public void preInit(FMLPreInitializationEvent evt) { @SuppressWarnings({"unchecked", "deprecation"}) public void loadLanguage(LanguageManager languageManager) { super.loadLanguage(languageManager); - ProgressManager.ProgressBar progressBar = ProgressManager.push("Loading NOVA language files", - NovaMinecraftPreloader.novaResourcePacks.size() + 1); + cpw.mods.fml.common.ProgressManager.ProgressBar progressBar + = cpw.mods.fml.common.ProgressManager.push("Loading NOVA language files", + NovaMinecraftPreloader.novaResourcePacks.size() + 1); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); fmlProgressBar.step("nova"); SortedSet languages = Minecraft.getMinecraft().getLanguageManager().getLanguages(); @@ -107,7 +107,7 @@ public void loadLanguage(LanguageManager languageManager) { }); }); fmlProgressBar.finish(); - ProgressManager.pop(progressBar); + cpw.mods.fml.common.ProgressManager.pop(progressBar); } private void loadLanguage(LanguageManager languageManager, String langName, InputStream stream) { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/CommonProxy.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/CommonProxy.java similarity index 86% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/CommonProxy.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/CommonProxy.java index 838573d7e..ee803414c 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/CommonProxy.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/CommonProxy.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.launcher; +package nova.core.wrapper.mc.forge.v1_7_10.launcher; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.EntityRegistry; @@ -27,10 +27,10 @@ import nova.core.entity.Entity; import nova.core.entity.EntityFactory; import nova.core.language.LanguageManager; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWTile; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.item.FWItem; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWTile; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.FWItem; import java.util.Set; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/FMLEventHandler.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/FMLEventHandler.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/FMLEventHandler.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/FMLEventHandler.java index ae03520b9..8ba318f8f 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/FMLEventHandler.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/FMLEventHandler.java @@ -18,12 +18,12 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.launcher; +package nova.core.wrapper.mc.forge.v1_7_10.launcher; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent; import nova.core.event.PlayerEvent; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/FMLProgressBar.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/FMLProgressBar.java similarity index 82% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/FMLProgressBar.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/FMLProgressBar.java index 1927fc6cf..fb54dc163 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/FMLProgressBar.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/FMLProgressBar.java @@ -18,9 +18,8 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.launcher; +package nova.core.wrapper.mc.forge.v1_7_10.launcher; -import net.minecraftforge.fml.common.ProgressManager.ProgressBar; import nova.core.util.AbstractProgressBar; /** @@ -30,9 +29,11 @@ */ public class FMLProgressBar extends AbstractProgressBar { - private final ProgressBar progressBar; + @SuppressWarnings("deprecation") + private final cpw.mods.fml.common.ProgressManager.ProgressBar progressBar; - public FMLProgressBar(ProgressBar progressBar) { + public FMLProgressBar(@SuppressWarnings("deprecation") + cpw.mods.fml.common.ProgressManager.ProgressBar progressBar) { this.progressBar = progressBar; } diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ForgeEventHandler.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ForgeEventHandler.java similarity index 92% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ForgeEventHandler.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ForgeEventHandler.java index ee7533775..ca24b6fd2 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ForgeEventHandler.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ForgeEventHandler.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.launcher; +package nova.core.wrapper.mc.forge.v1_7_10.launcher; import cpw.mods.fml.common.eventhandler.Event; import cpw.mods.fml.common.eventhandler.SubscribeEvent; @@ -28,9 +28,9 @@ import nova.core.event.PlayerEvent; import nova.core.item.Item; import nova.core.item.ItemDictionary; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ForgeLoadable.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ForgeLoadable.java similarity index 67% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ForgeLoadable.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ForgeLoadable.java index 599caf259..ddf556a22 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/ForgeLoadable.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/ForgeLoadable.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.launcher; +package nova.core.wrapper.mc.forge.v1_7_10.launcher; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; @@ -29,15 +29,29 @@ * * @author ExE Boss */ -// TODO Maybe replace with wrapper events. public interface ForgeLoadable { - default void preInit(FMLPreInitializationEvent event) { + /** + * Pre‑initialize the wrapper code. + * + * @param evt The Minecraft Forge pre-initialization event + */ + default void preInit(FMLPreInitializationEvent evt) { } - default void init(FMLInitializationEvent event) { + /** + * Initialize the wrapper code. + * + * @param evt The Minecraft Forge initialization event + */ + default void init(FMLInitializationEvent evt) { } - default void postInit(FMLPostInitializationEvent event) { + /** + * Post-initialize the wrapper code. + * + * @param evt The Minecraft Forge post-initialization event + */ + default void postInit(FMLPostInitializationEvent evt) { } } diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/NovaMinecraft.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/NovaMinecraft.java similarity index 74% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/NovaMinecraft.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/NovaMinecraft.java index 3e9c4f72c..4c7f86dcd 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/NovaMinecraft.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/NovaMinecraft.java @@ -18,11 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.launcher; +package nova.core.wrapper.mc.forge.v1_7_10.launcher; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.ProgressManager; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; @@ -35,28 +34,28 @@ import nova.core.config.Configuration; import nova.core.deps.MavenDependency; import nova.core.event.ServerEvent; -import nova.core.wrapper.mc.forge.v17.NovaMinecraftPreloader; -import nova.core.wrapper.mc.forge.v17.depmodules.ClientModule; -import nova.core.wrapper.mc.forge.v17.depmodules.ComponentModule; -import nova.core.wrapper.mc.forge.v17.depmodules.GameInfoModule; -import nova.core.wrapper.mc.forge.v17.depmodules.KeyModule; -import nova.core.wrapper.mc.forge.v17.depmodules.LanguageModule; -import nova.core.wrapper.mc.forge.v17.depmodules.NetworkModule; -import nova.core.wrapper.mc.forge.v17.depmodules.SaveModule; -import nova.core.wrapper.mc.forge.v17.depmodules.TickerModule; -import nova.core.wrapper.mc.forge.v17.wrapper.CategoryConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.DirectionConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.assets.AssetConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.block.BlockConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.cuboid.CuboidConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.data.DataConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.inventory.InventoryConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.item.OreDictionaryIntegration; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.MinecraftRecipeRegistry; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.RecipeConverter; +import nova.core.wrapper.mc.forge.v1_7_10.NovaMinecraftPreloader; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.ClientModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.ComponentModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.GameInfoModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.KeyModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.LanguageModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.NetworkModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.SaveModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.TickerModule; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.CategoryConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.DirectionConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets.AssetConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.BlockConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.cuboid.CuboidConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.inventory.InventoryConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.OreDictionaryIntegration; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.MinecraftRecipeRegistry; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.RecipeConverter; import nova.internal.core.Game; import nova.internal.core.bootstrap.DependencyInjectionEntryPoint; import nova.internal.core.deps.DepDownloader; @@ -74,7 +73,7 @@ * @author Calclavia */ @Mod(modid = NovaMinecraft.id, name = NovaMinecraft.name, version = NovaMinecraftPreloader.version, acceptableRemoteVersions = "*") -public class NovaMinecraft { +public class NovaMinecraft implements ForgeLoadable { public static final String id = "nova"; public static final String name = "NOVA"; @@ -98,8 +97,12 @@ public static void registerWrapper(ForgeLoadable wrapper) { * ORDER OF LOADING. * * 1. Native Loaders 2. Native Converters 3. Mods + * + * @param evt {@inheritDoc} */ @Mod.EventHandler + @Override + @SuppressWarnings("deprecation") public void preInit(FMLPreInitializationEvent evt) { try { /** @@ -158,9 +161,10 @@ public void preInit(FMLPreInitializationEvent evt) { e.printStackTrace(); } - ProgressManager.ProgressBar progressBar = ProgressManager.push("Loading NOVA mods", modClasses.isEmpty() ? 1 : modClasses.size()); + cpw.mods.fml.common.ProgressManager.ProgressBar progressBar + = cpw.mods.fml.common.ProgressManager.push("Loading NOVA mods", modClasses.isEmpty() ? 1 : modClasses.size()); launcher.load(new FMLProgressBar(progressBar)); - ProgressManager.pop(progressBar); + cpw.mods.fml.common.ProgressManager.pop(progressBar); novaModWrappers = launcher.getOrdererdMods().stream().filter(mod -> mod instanceof ForgeLoadable).map(mod -> (ForgeLoadable) mod).collect(Collectors.toList()); novaWrappers.removeAll(novaModWrappers); @@ -182,7 +186,8 @@ public void preInit(FMLPreInitializationEvent evt) { Game.entities().init(); //Load preInit - progressBar = ProgressManager.push("Pre-initializing NOVA wrappers", (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); + progressBar = cpw.mods.fml.common.ProgressManager.push("Pre-initializing NOVA wrappers", + (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); novaModWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); @@ -193,7 +198,7 @@ public void preInit(FMLPreInitializationEvent evt) { wrapper.preInit(evt); }); fmlProgressBar.finish(); - ProgressManager.pop(progressBar); + cpw.mods.fml.common.ProgressManager.pop(progressBar); proxy.preInit(evt); @@ -211,11 +216,15 @@ public void preInit(FMLPreInitializationEvent evt) { } @Mod.EventHandler + @Override + @SuppressWarnings("deprecation") public void init(FMLInitializationEvent evt) { try { proxy.init(evt); nativeConverters.stream().forEachOrdered(forgeLoadable -> forgeLoadable.init(evt)); - ProgressManager.ProgressBar progressBar = ProgressManager.push("Initializing NOVA wrappers", (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); + cpw.mods.fml.common.ProgressManager.ProgressBar progressBar + = cpw.mods.fml.common.ProgressManager.push("Initializing NOVA wrappers", + (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); novaModWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); @@ -226,7 +235,7 @@ public void init(FMLInitializationEvent evt) { wrapper.init(evt); }); fmlProgressBar.finish(); - ProgressManager.pop(progressBar); + cpw.mods.fml.common.ProgressManager.pop(progressBar); } catch (Exception e) { Game.logger().error("Error during init", e); e.printStackTrace(); @@ -235,12 +244,16 @@ public void init(FMLInitializationEvent evt) { } @Mod.EventHandler + @Override + @SuppressWarnings("deprecation") public void postInit(FMLPostInitializationEvent evt) { try { proxy.postInit(evt); nativeConverters.stream().forEachOrdered(forgeLoadable -> forgeLoadable.postInit(evt)); Game.recipes().init(); - ProgressManager.ProgressBar progressBar = ProgressManager.push("Post-initializing NOVA wrappers", (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); + cpw.mods.fml.common.ProgressManager.ProgressBar progressBar + = cpw.mods.fml.common.ProgressManager.push("Post-initializing NOVA wrappers", + (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); novaModWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); @@ -251,7 +264,7 @@ public void postInit(FMLPostInitializationEvent evt) { wrapper.postInit(evt); }); fmlProgressBar.finish(); - ProgressManager.pop(progressBar); + cpw.mods.fml.common.ProgressManager.pop(progressBar); } catch (Exception e) { Game.logger().error("Error during postInit", e); e.printStackTrace(); diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/FWClientManager.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/FWClientManager.java similarity index 86% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/FWClientManager.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/FWClientManager.java index d0b005e9a..b48cc5ecd 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/FWClientManager.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/FWClientManager.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.manager; +package nova.core.wrapper.mc.forge.v1_7_10.manager; import net.minecraft.client.Minecraft; import nova.core.entity.Entity; import nova.core.game.ClientManager; -import nova.core.wrapper.mc.forge.v17.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntity; /** * @author Calclavia diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/MCRetentionManager.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/MCRetentionManager.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/MCRetentionManager.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/MCRetentionManager.java index 6c42d0f67..f7410d41d 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/MCRetentionManager.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/MCRetentionManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.manager; +package nova.core.wrapper.mc.forge.v1_7_10.manager; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.FMLCommonHandler; @@ -30,7 +30,7 @@ import nova.core.retention.Data; import nova.core.retention.Storable; import nova.core.util.registry.RetentionManager; -import nova.core.wrapper.mc.forge.v17.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.data.DataConverter; import nova.internal.core.Game; import java.io.File; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/config/NovaGuiConfig.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/config/NovaGuiConfig.java similarity index 82% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/config/NovaGuiConfig.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/config/NovaGuiConfig.java index d995fddbc..0cc4755a7 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/config/NovaGuiConfig.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/config/NovaGuiConfig.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.manager.config; +package nova.core.wrapper.mc.forge.v1_7_10.manager.config; import cpw.mods.fml.client.config.GuiConfig; import net.minecraft.client.gui.GuiScreen; @@ -30,6 +30,7 @@ */ public class NovaGuiConfig extends GuiConfig { public NovaGuiConfig(GuiScreen parentScreen, Configuration config, String modID) { - super(parentScreen, new ConfigElement(config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(), modID, false, false, GuiConfig.getAbridgedConfigPath(config.toString())); + super(parentScreen, new ConfigElement<>(config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(), + modID, false, false, GuiConfig.getAbridgedConfigPath(config.toString())); } } diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/config/NovaGuiFactory.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/config/NovaGuiFactory.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/config/NovaGuiFactory.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/config/NovaGuiFactory.java index 1dc4abd80..99b2ccdd2 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/manager/config/NovaGuiFactory.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/manager/config/NovaGuiFactory.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.manager.config; +package nova.core.wrapper.mc.forge.v1_7_10.manager.config; import cpw.mods.fml.client.IModGuiFactory; import net.minecraft.client.Minecraft; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/MCPacket.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/MCPacket.java similarity index 98% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/MCPacket.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/MCPacket.java index a363a90c3..ae3fa864e 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/MCPacket.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/MCPacket.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.network; +package nova.core.wrapper.mc.forge.v1_7_10.network; import cpw.mods.fml.common.network.ByteBufUtils; import io.netty.buffer.ByteBuf; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/NovaPacket.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/NovaPacket.java similarity index 88% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/NovaPacket.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/NovaPacket.java index e6c709938..d4d120d0c 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/NovaPacket.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/NovaPacket.java @@ -18,16 +18,16 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.network.discriminator; +package nova.core.wrapper.mc.forge.v1_7_10.network.discriminator; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import net.minecraft.entity.player.EntityPlayer; import nova.core.entity.component.Player; import nova.core.network.handler.PacketHandler; -import nova.core.wrapper.mc.forge.v17.network.MCPacket; -import nova.core.wrapper.mc.forge.v17.network.netty.MCNetworkManager; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.network.MCPacket; +import nova.core.wrapper.mc.forge.v1_7_10.network.netty.MCNetworkManager; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/PacketAbstract.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/PacketAbstract.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/PacketAbstract.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/PacketAbstract.java index cbb0a371b..04daf71b6 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/PacketAbstract.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/PacketAbstract.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.network.discriminator; +package nova.core.wrapper.mc.forge.v1_7_10.network.discriminator; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; import net.minecraft.entity.player.EntityPlayer; -import nova.core.wrapper.mc.forge.v17.network.netty.MCNetworkManager; +import nova.core.wrapper.mc.forge.v1_7_10.network.netty.MCNetworkManager; /** * For custom packets extend this Class and register on Mod loading phase diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/PacketPlayerItem.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/PacketPlayerItem.java similarity index 94% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/PacketPlayerItem.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/PacketPlayerItem.java index b7b9d64de..751d9a7b4 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/PacketPlayerItem.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/discriminator/PacketPlayerItem.java @@ -18,14 +18,14 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.network.discriminator; +package nova.core.wrapper.mc.forge.v1_7_10.network.discriminator; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import nova.core.network.Syncable; -import nova.core.wrapper.mc.forge.v18.network.MCPacket; +import nova.core.wrapper.mc.forge.v1_7_10.network.MCPacket; /** * A packet handler for players who are currently holding their item. diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/ChannelHandler.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/ChannelHandler.java similarity index 83% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/ChannelHandler.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/ChannelHandler.java index ff269be55..f5088e6c7 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/ChannelHandler.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/ChannelHandler.java @@ -18,14 +18,14 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.network.netty; +package nova.core.wrapper.mc.forge.v1_7_10.network.netty; import cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; -import nova.core.wrapper.mc.forge.v17.network.discriminator.NovaPacket; -import nova.core.wrapper.mc.forge.v17.network.discriminator.PacketAbstract; -import nova.core.wrapper.mc.forge.v17.network.discriminator.PacketPlayerItem; +import nova.core.wrapper.mc.forge.v1_7_10.network.discriminator.NovaPacket; +import nova.core.wrapper.mc.forge.v1_7_10.network.discriminator.PacketAbstract; +import nova.core.wrapper.mc.forge.v1_7_10.network.discriminator.PacketPlayerItem; /** * Handles the channel and discriminators. diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/MCNetworkManager.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/MCNetworkManager.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/MCNetworkManager.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/MCNetworkManager.java index 8de151af9..18e9735ef 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/MCNetworkManager.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/MCNetworkManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.network.netty; +package nova.core.wrapper.mc.forge.v1_7_10.network.netty; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.network.FMLEmbeddedChannel; @@ -35,11 +35,11 @@ import nova.core.entity.component.Player; import nova.core.network.NetworkManager; import nova.core.network.Syncable; -import nova.core.wrapper.mc.forge.v17.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v17.network.MCPacket; -import nova.core.wrapper.mc.forge.v17.network.discriminator.NovaPacket; -import nova.core.wrapper.mc.forge.v17.network.discriminator.PacketAbstract; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_7_10.network.MCPacket; +import nova.core.wrapper.mc.forge.v1_7_10.network.discriminator.NovaPacket; +import nova.core.wrapper.mc.forge.v1_7_10.network.discriminator.PacketAbstract; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntity; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.EnumMap; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/MCPacketHandler.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/MCPacketHandler.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/MCPacketHandler.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/MCPacketHandler.java index ddd2f149a..12bb10e11 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/netty/MCPacketHandler.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/network/netty/MCPacketHandler.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.network.netty; +package nova.core.wrapper.mc.forge.v1_7_10.network.netty; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.network.NetworkRegistry; @@ -27,8 +27,8 @@ import io.netty.channel.SimpleChannelInboundHandler; import net.minecraft.network.INetHandler; import net.minecraft.network.NetHandlerPlayServer; -import nova.core.wrapper.mc.forge.v17.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v17.network.discriminator.PacketAbstract; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_7_10.network.discriminator.PacketAbstract; /** * @author tgame14 diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/render/RenderUtility.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/render/RenderUtility.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/render/RenderUtility.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/render/RenderUtility.java index 26085bc67..0509a87a3 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/render/RenderUtility.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/render/RenderUtility.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.render; +package nova.core.wrapper.mc.forge.v1_7_10.render; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent; @@ -33,8 +33,8 @@ import net.minecraftforge.client.event.TextureStitchEvent; import net.minecraftforge.client.model.ModelFormatException; import nova.core.render.texture.Texture; -import nova.core.wrapper.mc.forge.v17.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v17.wrapper.assets.AssetConverter; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets.AssetConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; import org.lwjgl.opengl.GL11; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/MCInputManager.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/MCInputManager.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/MCInputManager.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/MCInputManager.java index 6e4fcf086..7e89e17b9 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/MCInputManager.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/MCInputManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.util; +package nova.core.wrapper.mc.forge.v1_7_10.util; import nova.core.game.InputManager; import org.lwjgl.input.Keyboard; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/MCLanguageManager.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/MCLanguageManager.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/MCLanguageManager.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/MCLanguageManager.java index 398b6bb4d..ff62eaf23 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/MCLanguageManager.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/MCLanguageManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.util; +package nova.core.wrapper.mc.forge.v1_7_10.util; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.event.FMLPreInitializationEvent; @@ -27,8 +27,8 @@ import nova.core.event.LanguageEvent; import nova.core.event.bus.EventBus; import nova.core.language.LanguageManager; -import nova.core.wrapper.mc.forge.v17.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v17.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.NovaMinecraft; import nova.internal.core.Game; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ModCreativeTab.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ModCreativeTab.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ModCreativeTab.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ModCreativeTab.java index 16f1f3fb7..51d528c76 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ModCreativeTab.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ModCreativeTab.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.util; +package nova.core.wrapper.mc.forge.v1_7_10.util; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ObfuscationConstants.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ObfuscationConstants.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ObfuscationConstants.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ObfuscationConstants.java index 34b640d12..6d2aa05f1 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ObfuscationConstants.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ObfuscationConstants.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.util; +package nova.core.wrapper.mc.forge.v1_7_10.util; /** * @author Stan Hebben diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ReflectionUtil.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ReflectionUtil.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ReflectionUtil.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ReflectionUtil.java index a58f132de..4669794ac 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ReflectionUtil.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/ReflectionUtil.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.util; +package nova.core.wrapper.mc.forge.v1_7_10.util; import com.google.common.collect.BiMap; import cpw.mods.fml.common.registry.EntityRegistry; @@ -57,6 +57,7 @@ * adjustment - as such, those have been collected here. * @author Stan Hebben */ +@SuppressWarnings("unchecked") public class ReflectionUtil { private static final Field NBTTAGLIST_TAGLIST; private static final Field OREDICTIONARY_IDTOSTACK; @@ -129,6 +130,7 @@ public static List getTagList(NBTTagList list) { } } + @SuppressWarnings("rawtypes") public static List getSeeds() { return getPrivateStaticObject(ForgeHooks.class, "seedList"); } @@ -137,7 +139,7 @@ public static Map getChestLoot() { return getPrivateStaticObject(ChestGenHooks.class, "chestInfo"); } - public static Map getTranslations() { + public static Map getTranslations() { return getPrivateObject( getPrivateStaticObject(StatCollector.class, "localizedName", "field_74839_a"), "languageList", @@ -308,7 +310,7 @@ public static boolean setPrivateObject(Object object, Object value, String... na // ### Private Methods ### // ####################### - private static Field getField(Class cls, String... names) { + private static Field getField(Class cls, String... names) { for (String name : names) { try { Field field = cls.getDeclaredField(name); diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/WrapUtility.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/WrapUtility.java similarity index 90% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/WrapUtility.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/WrapUtility.java index cb3534ec4..061c37981 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/WrapUtility.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/WrapUtility.java @@ -18,16 +18,17 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.util; +package nova.core.wrapper.mc.forge.v1_7_10.util; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import nova.core.entity.Entity; import nova.core.entity.component.Player; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntity; import java.util.Optional; + import javax.annotation.Nonnull; import javax.annotation.Nullable; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/WrapperEvent.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/WrapperEvent.java similarity index 90% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/WrapperEvent.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/WrapperEvent.java index 1f84b8213..fc5a9569b 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/WrapperEvent.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/util/WrapperEvent.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.util; +package nova.core.wrapper.mc.forge.v1_7_10.util; import net.minecraft.item.ItemStack; import nova.core.block.Block; @@ -29,12 +29,12 @@ import nova.core.item.Item; import nova.core.util.Direction; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v17.wrapper.block.backward.BWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWTile; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.FWEntityFX; -import nova.core.wrapper.mc.forge.v17.wrapper.item.BWItem; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.backward.BWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWTile; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.FWEntityFX; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.BWItem; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/CategoryConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/CategoryConverter.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/CategoryConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/CategoryConverter.java index 6b5cfb766..f5f42afb8 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/CategoryConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/CategoryConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; @@ -26,8 +26,8 @@ import net.minecraft.item.ItemStack; import nova.core.component.Category; import nova.core.nativewrapper.NativeConverter; -import nova.core.wrapper.mc.forge.v17.util.ModCreativeTab; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.util.ModCreativeTab; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import nova.internal.core.Game; import java.util.Arrays; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/DirectionConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/DirectionConverter.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/DirectionConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/DirectionConverter.java index 1a239d9c1..9ec4b8598 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/DirectionConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/DirectionConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper; import net.minecraft.util.EnumFacing; import nova.core.nativewrapper.NativeConverter; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/AssetConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/AssetConverter.java similarity index 98% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/AssetConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/AssetConverter.java index c9dcbf627..2202aa7f4 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/AssetConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/AssetConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets; import net.minecraft.util.ResourceLocation; import nova.core.nativewrapper.NativeConverter; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaFileResourcePack.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaFileResourcePack.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaFileResourcePack.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaFileResourcePack.java index ab1065a35..96b4d99ec 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaFileResourcePack.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaFileResourcePack.java @@ -18,12 +18,12 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets; import com.google.common.base.Charsets; import net.minecraft.client.resources.FileResourcePack; import net.minecraft.util.ResourceLocation; -import nova.core.wrapper.mc.forge.v18.NovaMinecraftPreloader; +import nova.core.wrapper.mc.forge.v1_7_10.NovaMinecraftPreloader; import java.io.ByteArrayInputStream; import java.io.File; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaFolderResourcePack.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaFolderResourcePack.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaFolderResourcePack.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaFolderResourcePack.java index 306ca3adc..4740e580d 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaFolderResourcePack.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaFolderResourcePack.java @@ -18,12 +18,12 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets; import com.google.common.base.Charsets; import net.minecraft.client.resources.FolderResourcePack; import net.minecraft.util.ResourceLocation; -import nova.core.wrapper.mc.forge.v17.NovaMinecraftPreloader; +import nova.core.wrapper.mc.forge.v1_7_10.NovaMinecraftPreloader; import java.io.ByteArrayInputStream; import java.io.File; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaResourcePack.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaResourcePack.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaResourcePack.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaResourcePack.java index 59b9b02af..ac181bfa1 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaResourcePack.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/NovaResourcePack.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets; import net.minecraft.client.resources.IResourcePack; import net.minecraft.util.ResourceLocation; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/BlockConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/BlockConverter.java similarity index 88% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/BlockConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/BlockConverter.java index 33f91ceeb..86ffbe86c 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/BlockConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/BlockConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block; import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; @@ -33,13 +33,13 @@ import nova.core.event.BlockEvent; import nova.core.loader.Mod; import nova.core.nativewrapper.NativeConverter; -import nova.core.wrapper.mc.forge.v17.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v17.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v17.wrapper.CategoryConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.block.backward.BWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.block.backward.BWBlockFactory; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.item.FWItemBlock; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.CategoryConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.backward.BWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.backward.BWBlockFactory; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.FWItemBlock; import nova.internal.core.Game; import nova.internal.core.launch.NovaLauncher; @@ -97,7 +97,7 @@ public net.minecraft.block.Block toNative(BlockFactory blockFactory) { /** * Register all Nova blocks * - * @param evt The Minecraft Forge pre-initialization event + * @param evt {@inheritDoc} */ @Override public void preInit(FMLPreInitializationEvent evt) { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlock.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlock.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlock.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlock.java index 284017c89..caab2dfa1 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlock.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlock.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.backward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.backward; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.init.Blocks; @@ -41,12 +41,12 @@ import nova.core.sound.Sound; import nova.core.util.shape.Cuboid; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.cuboid.CuboidConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.data.DataConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.cuboid.CuboidConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlockFactory.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlockFactory.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlockFactory.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlockFactory.java index f12922ba5..34ec1aecb 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlockFactory.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlockFactory.java @@ -17,7 +17,7 @@ * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.backward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.backward; import net.minecraft.block.Block; import nova.core.block.BlockFactory; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlockTransform.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlockTransform.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlockTransform.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlockTransform.java index 50f223589..a39559cd9 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/backward/BWBlockTransform.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/backward/BWBlockTransform.java @@ -17,14 +17,14 @@ * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.backward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.backward; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.IBlockAccess; import nova.core.component.transform.BlockTransform; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/BlockPosition.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/BlockPosition.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/BlockPosition.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/BlockPosition.java index 6218a37fc..ff2b3e2af 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/BlockPosition.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/BlockPosition.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import net.minecraft.world.World; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWBlock.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWBlock.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWBlock.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWBlock.java index 3b4e8bf29..9246023c2 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWBlock.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWBlock.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; import cpw.mods.fml.client.registry.RenderingRegistry; @@ -55,12 +55,12 @@ import nova.core.util.math.MathUtil; import nova.core.util.math.MatrixStack; import nova.core.util.shape.Cuboid; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.cuboid.CuboidConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.render.BWModel; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.cuboid.CuboidConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.render.BWModel; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import org.lwjgl.opengl.GL11; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWBlockSound.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWBlockSound.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWBlockSound.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWBlockSound.java index 1c1a872e3..96f54d1c0 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWBlockSound.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWBlockSound.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import net.minecraft.block.Block; import nova.core.block.component.BlockProperty; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTile.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTile.java similarity index 94% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTile.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTile.java index 0f49fda76..0348f9505 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTile.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTile.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.Packet; @@ -29,8 +29,8 @@ import nova.core.network.Syncable; import nova.core.retention.Data; import nova.core.retention.Storable; -import nova.core.wrapper.mc.forge.v17.network.netty.MCNetworkManager; -import nova.core.wrapper.mc.forge.v17.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_7_10.network.netty.MCNetworkManager; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.data.DataConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTileLoader.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTileLoader.java similarity index 85% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTileLoader.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTileLoader.java index 8a25e7b0a..7e89e81c6 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTileLoader.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTileLoader.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import net.minecraft.nbt.NBTTagCompound; import nova.core.block.Block; import nova.core.block.BlockFactory; -import nova.core.wrapper.mc.forge.v17.asm.lib.ComponentInjector; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.asm.lib.ComponentInjector; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; import nova.internal.core.Game; import java.util.Optional; @@ -43,7 +43,7 @@ public static FWTile loadTile(NBTTagCompound data) { try { String blockID = data.getString("novaID"); Block block = createBlock(blockID); - FWTile tile = injector.inject(block, new Class[0], new Object[0]); + FWTile tile = injector.inject(block, new Class[0], new Object[0]); tile.setBlock(block); WrapperEvent.FWTileCreate event = new WrapperEvent.FWTileCreate(block, tile); Game.events().publish(event); @@ -56,7 +56,7 @@ public static FWTile loadTile(NBTTagCompound data) { public static FWTile loadTile(String blockID) { try { Block block = createBlock(blockID); - FWTile tile = injector.inject(block, new Class[] { String.class }, new Object[] { blockID }); + FWTile tile = injector.inject(block, new Class[] { String.class }, new Object[] { blockID }); tile.setBlock(block); WrapperEvent.FWTileCreate event = new WrapperEvent.FWTileCreate(block, tile); Game.events().publish(event); diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTileRenderer.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTileRenderer.java similarity index 90% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTileRenderer.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTileRenderer.java index abb893449..99ede1ea8 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/FWTileRenderer.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/FWTileRenderer.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.texture.TextureMap; @@ -26,8 +26,8 @@ import net.minecraft.tileentity.TileEntity; import nova.core.block.Block; import nova.core.component.renderer.DynamicRenderer; -import nova.core.wrapper.mc.forge.v17.render.RenderUtility; -import nova.core.wrapper.mc.forge.v17.wrapper.render.BWModel; +import nova.core.wrapper.mc.forge.v1_7_10.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.render.BWModel; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/MCBlockTransform.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/MCBlockTransform.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/MCBlockTransform.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/MCBlockTransform.java index e720f2416..f323e91d8 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/MCBlockTransform.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/MCBlockTransform.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.IBlockAccess; @@ -27,7 +27,7 @@ import nova.core.retention.Data; import nova.core.retention.Storable; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/ProxyMaterial.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/ProxyMaterial.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/ProxyMaterial.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/ProxyMaterial.java index 91361cbf3..e07236409 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/ProxyMaterial.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/ProxyMaterial.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/TEBlockTransform.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/TEBlockTransform.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/TEBlockTransform.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/TEBlockTransform.java index 4ca904bbf..7bef6838c 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/forward/TEBlockTransform.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/forward/TEBlockTransform.java @@ -17,13 +17,13 @@ * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward; import net.minecraft.world.IBlockAccess; import nova.core.block.Block; import nova.core.component.transform.BlockTransform; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/world/BWWorld.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/world/BWWorld.java similarity index 85% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/world/BWWorld.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/world/BWWorld.java index 67945f0dc..612554774 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/world/BWWorld.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/world/BWWorld.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.world; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world; import net.minecraft.entity.item.EntityItem; import net.minecraft.init.Blocks; @@ -32,16 +32,16 @@ import nova.core.sound.Sound; import nova.core.util.shape.Cuboid; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v17.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v17.wrapper.block.BlockConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.block.backward.BWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.MCBlockTransform; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.MCEntityTransform; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.BlockConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.backward.BWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.MCBlockTransform; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.MCEntityTransform; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; @@ -121,8 +121,8 @@ public Entity addClientEntity(EntityFactory factory) { @Override @SuppressWarnings("unchecked") - public Entity addClientEntity(Entity entity) { - return NovaMinecraft.proxy.spawnParticle(world(), entity); + public T addClientEntity(T entity) { + return (T) NovaMinecraft.proxy.spawnParticle(world(), entity); } @Override diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/world/WorldConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/world/WorldConverter.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/world/WorldConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/world/WorldConverter.java index afb76665e..186e30f9a 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/world/WorldConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/block/world/WorldConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.world; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world; import net.minecraft.world.IBlockAccess; import nova.core.nativewrapper.NativeConverter; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/cuboid/CuboidConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/cuboid/CuboidConverter.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/cuboid/CuboidConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/cuboid/CuboidConverter.java index 3b706b847..b0e7476da 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/cuboid/CuboidConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/cuboid/CuboidConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.cuboid; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.cuboid; import net.minecraft.util.AxisAlignedBB; import nova.core.nativewrapper.NativeConverter; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/data/DataConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/data/DataConverter.java similarity index 99% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/data/DataConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/data/DataConverter.java index a7e06780c..578917e58 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/data/DataConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/data/DataConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.data; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.data; import net.minecraft.nbt.NBTBase; import net.minecraft.nbt.NBTTagByte; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/EntityConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/EntityConverter.java similarity index 86% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/EntityConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/EntityConverter.java index 999af8554..184d0bda3 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/EntityConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/EntityConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.entity; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.relauncher.Side; @@ -26,11 +26,11 @@ import nova.core.entity.Entity; import nova.core.entity.EntityFactory; import nova.core.nativewrapper.NativeConverter; -import nova.core.wrapper.mc.forge.v17.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntityFX; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.MCEntityTransform; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntityFX; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.MCEntityTransform; import nova.internal.core.Game; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/backward/BWEntity.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/backward/BWEntity.java similarity index 92% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/backward/BWEntity.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/backward/BWEntity.java index 8e2322cdb..94324bec6 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/backward/BWEntity.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/backward/BWEntity.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.entity.backward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; @@ -28,9 +28,9 @@ import nova.core.entity.Entity; import nova.core.entity.component.Living; import nova.core.entity.component.Player; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.MCEntityTransform; -import nova.core.wrapper.mc.forge.v17.wrapper.inventory.BWInventory; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward.MCEntityTransform; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.inventory.BWInventory; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/backward/BWEntityFX.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/backward/BWEntityFX.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/backward/BWEntityFX.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/backward/BWEntityFX.java index 0ff27c305..f520dd315 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/backward/BWEntityFX.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/backward/BWEntityFX.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.entity.backward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward; import com.google.common.collect.HashBiMap; import cpw.mods.fml.client.FMLClientHandler; @@ -51,7 +51,7 @@ import net.minecraft.client.particle.EntitySpellParticleFX; import net.minecraft.client.particle.EntitySplashFX; import net.minecraft.client.particle.EntitySuspendFX; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; import nova.internal.core.Game; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/BWRigidBody.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/BWRigidBody.java similarity index 98% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/BWRigidBody.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/BWRigidBody.java index 55998f5fa..4e463c689 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/BWRigidBody.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/BWRigidBody.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward; import nova.core.entity.Entity; import nova.core.entity.component.RigidBody; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntity.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntity.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntity.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntity.java index 2bcac5420..8390263ba 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntity.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntity.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward; import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData; import io.netty.buffer.ByteBuf; @@ -33,9 +33,9 @@ import nova.core.retention.Data; import nova.core.retention.Storable; import nova.core.util.shape.Cuboid; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v17.wrapper.cuboid.CuboidConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.cuboid.CuboidConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.data.DataConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntityFX.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntityFX.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntityFX.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntityFX.java index fe5c44288..db6555d85 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntityFX.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntityFX.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.relauncher.Side; @@ -33,8 +33,8 @@ import nova.core.entity.Entity; import nova.core.entity.EntityFactory; import nova.core.util.shape.Cuboid; -import nova.core.wrapper.mc.forge.v17.render.RenderUtility; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; import nova.internal.core.Game; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntityRenderer.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntityRenderer.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntityRenderer.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntityRenderer.java index a113dcfd5..f7639945a 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/FWEntityRenderer.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/FWEntityRenderer.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; @@ -26,8 +26,8 @@ import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; import nova.core.component.renderer.DynamicRenderer; -import nova.core.wrapper.mc.forge.v17.render.RenderUtility; -import nova.core.wrapper.mc.forge.v17.wrapper.render.BWModel; +import nova.core.wrapper.mc.forge.v1_7_10.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.render.BWModel; import org.lwjgl.opengl.GL11; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/MCEntityTransform.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/MCEntityTransform.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/MCEntityTransform.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/MCEntityTransform.java index 8e3835781..a35893cfe 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/entity/forward/MCEntityTransform.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/entity/forward/MCEntityTransform.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.forward; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraftforge.common.DimensionManager; @@ -27,7 +27,7 @@ import nova.core.util.math.RotationUtil; import nova.core.util.math.Vector3DUtil; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Rotation; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/BWInventory.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/BWInventory.java similarity index 94% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/BWInventory.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/BWInventory.java index 0d8eb2f86..84cd9e0ba 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/BWInventory.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/BWInventory.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.inventory; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.inventory; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import nova.core.component.inventory.Inventory; import nova.core.item.Item; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/FWInventory.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/FWInventory.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/FWInventory.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/FWInventory.java index 1b762fac0..194051d3c 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/FWInventory.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/FWInventory.java @@ -18,14 +18,14 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.inventory; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.inventory; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import nova.core.component.inventory.Inventory; import nova.core.component.inventory.InventorySimple; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import java.util.Optional; @@ -100,10 +100,12 @@ public boolean isUseableByPlayer(EntityPlayer player) { } @Override - public void openInventory() {} + public void openInventory() { + } @Override - public void closeInventory() {} + public void closeInventory() { + } @Override public boolean isItemValidForSlot(int slot, ItemStack item) { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/InventoryConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/InventoryConverter.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/InventoryConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/InventoryConverter.java index 2562fea38..cfc103670 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/InventoryConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/inventory/InventoryConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.inventory; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.inventory; import net.minecraft.inventory.IInventory; import nova.core.component.inventory.Inventory; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/BWItem.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/BWItem.java similarity index 98% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/BWItem.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/BWItem.java index 76cc54d07..b66f809b3 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/BWItem.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/BWItem.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.item; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.item; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.RenderItem; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/BWItemFactory.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/BWItemFactory.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/BWItemFactory.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/BWItemFactory.java index 57d1c0bcd..b76031627 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/BWItemFactory.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/BWItemFactory.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.item; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.item; import net.minecraft.nbt.NBTTagCompound; import nova.core.component.misc.FactoryProvider; import nova.core.item.Item; import nova.core.item.ItemFactory; import nova.core.retention.Data; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v17.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.data.DataConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWItem.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWItem.java similarity index 92% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWItem.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWItem.java index 3fe40567e..216da79d3 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWItem.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWItem.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.item; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.item; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; @@ -47,8 +47,9 @@ public ItemFactory getItemFactory() { } @Override - public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean p_77624_4_) { - ItemWrapperMethods.super.addInformation(itemStack, player, list, p_77624_4_); + @SuppressWarnings({"unchecked", "rawtypes"}) + public void addInformation(ItemStack itemStack, EntityPlayer player, List tooltip, boolean advanced) { + ItemWrapperMethods.super.addInformation(itemStack, player, tooltip, advanced); } @Override diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWItemBlock.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWItemBlock.java similarity index 90% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWItemBlock.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWItemBlock.java index 66ade96cd..6d345edf8 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWItemBlock.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWItemBlock.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.item; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.item; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; @@ -26,7 +26,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.World; import nova.core.item.ItemFactory; -import nova.core.wrapper.mc.forge.v17.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.forward.FWBlock; import java.util.List; @@ -45,8 +45,9 @@ public ItemFactory getItemFactory() { } @Override - public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean p_77624_4_) { - ItemWrapperMethods.super.addInformation(itemStack, player, list, p_77624_4_); + @SuppressWarnings({"unchecked", "rawtypes"}) + public void addInformation(ItemStack itemStack, EntityPlayer player, List tooltip, boolean advanced) { + ItemWrapperMethods.super.addInformation(itemStack, player, tooltip, advanced); } @Override diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWNBTTagCompound.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWNBTTagCompound.java similarity index 84% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWNBTTagCompound.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWNBTTagCompound.java index 9bce8e09a..1d3a30611 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/FWNBTTagCompound.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/FWNBTTagCompound.java @@ -18,14 +18,12 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.item; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.item; import net.minecraft.nbt.NBTBase; import net.minecraft.nbt.NBTTagCompound; import nova.core.item.Item; -import java.util.Iterator; - /** * A wrapped NBTTagCompound object that references the item instance * @author Stan @@ -43,15 +41,10 @@ public Item getItem() { } @Override + @SuppressWarnings("unchecked") public NBTBase copy() { FWNBTTagCompound result = new FWNBTTagCompound(item); - Iterator iterator = this.func_150296_c().iterator(); - - while (iterator.hasNext()) { - String s = (String) iterator.next(); - result.setTag(s, getTag(s).copy()); - } - + ((Iterable) func_150296_c()).forEach(s -> result.setTag(s, getTag(s).copy())); return result; } } diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/ItemConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/ItemConverter.java similarity index 91% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/ItemConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/ItemConverter.java index c37c9f7cd..1b91809b6 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/ItemConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/ItemConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.item; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.item; import com.google.common.collect.HashBiMap; import cpw.mods.fml.common.FMLCommonHandler; @@ -34,13 +34,13 @@ import nova.core.loader.Mod; import nova.core.nativewrapper.NativeConverter; import nova.core.retention.Data; -import nova.core.wrapper.mc.forge.v17.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v17.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v17.util.WrapUtility; -import nova.core.wrapper.mc.forge.v17.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v17.wrapper.CategoryConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.block.BlockConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_7_10.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapUtility; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.CategoryConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.BlockConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.data.DataConverter; import nova.internal.core.Game; import nova.internal.core.launch.InitializationException; import nova.internal.core.launch.NovaLauncher; @@ -149,8 +149,12 @@ public ItemFactory get(MinecraftItemMapping minecraftItem) { /** * Saves NOVA item into a Minecraft ItemStack. + * + * @param itemStack the Minecraft ItemStack instance + * @param item The NOVA item. + * @return The updated ItemStack instance */ - public net.minecraft.item.ItemStack updateMCItemStack(ItemStack itemStack, nova.core.item.Item item) { + public ItemStack updateMCItemStack(ItemStack itemStack, Item item) { itemStack.stackSize = item.count(); if (itemStack.stackSize <= 0) { return null; @@ -162,7 +166,9 @@ public net.minecraft.item.ItemStack updateMCItemStack(ItemStack itemStack, nova. } /** - * Register all Nova blocks + * Register all Nova items + * + * @param evt {@inheritDoc} */ @Override public void preInit(FMLPreInitializationEvent evt) { @@ -223,7 +229,8 @@ private void registerNOVAItem(ItemFactory itemFactory) { } private void registerMinecraftItemsToNOVA() { - Set itemIDs = (Set) net.minecraft.item.Item.itemRegistry.getKeys(); + @SuppressWarnings("unchecked") + Set itemIDs = net.minecraft.item.Item.itemRegistry.getKeys(); itemIDs.forEach(itemID -> { net.minecraft.item.Item item = (net.minecraft.item.Item) net.minecraft.item.Item.itemRegistry.getObject(itemID); registerMinecraftMapping(item, 0); diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/ItemWrapperMethods.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/ItemWrapperMethods.java similarity index 86% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/ItemWrapperMethods.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/ItemWrapperMethods.java index 7d043b9ce..3bafaf5f3 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/ItemWrapperMethods.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/ItemWrapperMethods.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.item; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.item; import net.minecraft.client.renderer.Tessellator; import net.minecraft.entity.player.EntityPlayer; @@ -26,16 +26,12 @@ import net.minecraft.util.IIcon; import net.minecraft.world.World; import net.minecraftforge.client.IItemRenderer; -import nova.core.component.renderer.DynamicRenderer; import nova.core.component.renderer.Renderer; -import nova.core.component.renderer.StaticRenderer; import nova.core.item.Item; import nova.core.item.ItemFactory; import nova.core.util.Direction; -import nova.core.wrapper.mc.forge.v17.render.RenderUtility; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.backward.BWEntity; -import nova.core.wrapper.mc.forge.v17.wrapper.render.BWModel; -import nova.internal.core.Game; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.render.BWModel; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; @@ -53,10 +49,17 @@ public interface ItemWrapperMethods extends IItemRenderer { ItemFactory getItemFactory(); - @SuppressWarnings({"unchecked", "rawtypes"}) - default void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean p_77624_4_) { + /** + * Allows items to add custom lines of information to the mouseover description + * + * @param itemStack The ItemStack instance + * @param player The player entity + * @param tooltip All lines to display in the Item's tooltip. This is a List of Strings. + * @param advanced Whether the setting "Advanced tooltips" is enabled + */ + default void addInformation(ItemStack itemStack, EntityPlayer player, List tooltip, boolean advanced) { Item item = ItemConverter.instance().toNova(itemStack); - item.setCount(itemStack.stackSize).events.publish(new Item.TooltipEvent(Optional.of(new BWEntity(player)), list)); + item.setCount(itemStack.stackSize).events.publish(new Item.TooltipEvent(Optional.of(new BWEntity(player)), tooltip)); getItemFactory().save(item); } diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/OreDictionaryIntegration.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/OreDictionaryIntegration.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/OreDictionaryIntegration.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/OreDictionaryIntegration.java index 8e4b318f1..a8d46ca0e 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/item/OreDictionaryIntegration.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/item/OreDictionaryIntegration.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.item; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.item; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.item.ItemStack; @@ -27,7 +27,7 @@ import nova.core.event.DictionaryEvent; import nova.core.item.Item; import nova.core.item.ItemDictionary; -import nova.core.wrapper.mc.forge.v17.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_7_10.util.ReflectionUtil; import nova.internal.core.Game; import java.util.ArrayList; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/MinecraftRecipeRegistry.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/MinecraftRecipeRegistry.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/MinecraftRecipeRegistry.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/MinecraftRecipeRegistry.java index 78049baef..e565e0354 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/MinecraftRecipeRegistry.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/MinecraftRecipeRegistry.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; @@ -30,8 +30,8 @@ import nova.core.recipes.crafting.CraftingRecipe; import nova.core.recipes.ingredient.ItemIngredient; import nova.core.recipes.smelting.SmeltingRecipe; -import nova.core.wrapper.mc.forge.v17.util.ReflectionUtil; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import nova.internal.core.Game; import java.util.AbstractList; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/RecipeConverter.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/RecipeConverter.java similarity index 93% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/RecipeConverter.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/RecipeConverter.java index af3ad12c5..378d42dc4 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/RecipeConverter.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/RecipeConverter.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes; - -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.backward.MCCraftingRecipe; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward.ShapedRecipeOre; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward.NovaCraftingRecipe; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward.NovaCraftingGrid; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward.ShapelessRecipeOre; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward.ShapedRecipeBasic; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward.ShapelessRecipeBasic; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes; + +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.backward.MCCraftingRecipe; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward.ShapedRecipeOre; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward.NovaCraftingRecipe; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward.NovaCraftingGrid; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward.ShapelessRecipeOre; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward.ShapedRecipeBasic; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward.ShapelessRecipeBasic; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.item.crafting.ShapedRecipes; @@ -42,8 +42,8 @@ import nova.core.recipes.crafting.ShapedCraftingRecipe; import nova.core.recipes.crafting.ShapelessCraftingRecipe; import nova.core.recipes.ingredient.SpecificItemIngredient; -import nova.core.wrapper.mc.forge.v17.util.ReflectionUtil; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import nova.internal.core.Game; import java.util.ArrayList; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/backward/MCCraftingGrid.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/backward/MCCraftingGrid.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/backward/MCCraftingGrid.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/backward/MCCraftingGrid.java index 35415f410..769737d72 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/backward/MCCraftingGrid.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/backward/MCCraftingGrid.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.backward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.backward; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; @@ -29,9 +29,9 @@ import net.minecraft.item.ItemStack; import nova.core.entity.component.Player; import nova.core.recipes.crafting.CraftingGrid; -import nova.core.wrapper.mc.forge.v17.util.ReflectionUtil; -import nova.core.wrapper.mc.forge.v17.util.WrapUtility; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_7_10.util.WrapUtility; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import java.util.List; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/backward/MCCraftingRecipe.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/backward/MCCraftingRecipe.java similarity index 88% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/backward/MCCraftingRecipe.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/backward/MCCraftingRecipe.java index d10874460..fec9f79d2 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/backward/MCCraftingRecipe.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/backward/MCCraftingRecipe.java @@ -18,17 +18,17 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.backward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.backward; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward.NovaCraftingGrid; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward.NovaCraftingGrid; import net.minecraft.item.crafting.IRecipe; import nova.core.entity.Entity; import nova.core.entity.component.Player; import nova.core.item.Item; import nova.core.recipes.crafting.CraftingGrid; import nova.core.recipes.crafting.CraftingRecipe; -import nova.core.wrapper.mc.forge.v17.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingGrid.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingGrid.java similarity index 94% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingGrid.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingGrid.java index 8b5a81a0c..66f0ca949 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingGrid.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingGrid.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import nova.core.item.Item; import nova.core.recipes.crafting.CraftingGrid; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; import java.util.Optional; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingGridContainer.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingGridContainer.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingGridContainer.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingGridContainer.java index 81fef68b8..c9cf2bc3c 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingGridContainer.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingGridContainer.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingRecipe.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingRecipe.java similarity index 88% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingRecipe.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingRecipe.java index dcaaebf56..5ae010de9 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/NovaCraftingRecipe.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/NovaCraftingRecipe.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.world.World; import nova.core.recipes.crafting.CraftingRecipe; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.backward.MCCraftingGrid; public class NovaCraftingRecipe implements IRecipe { private final CraftingRecipe recipe; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapedRecipeBasic.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapedRecipeBasic.java similarity index 88% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapedRecipeBasic.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapedRecipeBasic.java index 6ec1be283..2d5619e00 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapedRecipeBasic.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapedRecipeBasic.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.ShapedRecipes; import net.minecraft.world.World; import nova.core.recipes.crafting.ShapedCraftingRecipe; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.backward.MCCraftingGrid; /** * @author Stan Hebben diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapedRecipeOre.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapedRecipeOre.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapedRecipeOre.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapedRecipeOre.java index b28ab7ce1..2f3029919 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapedRecipeOre.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapedRecipeOre.java @@ -24,15 +24,15 @@ * and open the template in the editor. */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.oredict.ShapedOreRecipe; import nova.core.recipes.crafting.ShapedCraftingRecipe; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.backward.MCCraftingGrid; /** * @author Stan diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapelessRecipeBasic.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapelessRecipeBasic.java similarity index 88% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapelessRecipeBasic.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapelessRecipeBasic.java index 9a42d4f1d..91fab7f68 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapelessRecipeBasic.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapelessRecipeBasic.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.ShapelessRecipes; import net.minecraft.world.World; import nova.core.recipes.crafting.ShapelessCraftingRecipe; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.backward.MCCraftingGrid; import java.util.Arrays; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapelessRecipeOre.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapelessRecipeOre.java similarity index 88% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapelessRecipeOre.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapelessRecipeOre.java index 182c28c18..6951188d4 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapelessRecipeOre.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/recipes/forward/ShapelessRecipeOre.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.oredict.ShapelessOreRecipe; import nova.core.recipes.crafting.ShapelessCraftingRecipe; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.recipes.backward.MCCraftingGrid; /** * @author Stan Hebben diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/render/BWModel.java b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/render/BWModel.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/render/BWModel.java rename to minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/render/BWModel.java index a8cd9c070..c25bd972b 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/render/BWModel.java +++ b/minecraft/1.7.10/src/main/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/render/BWModel.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.render; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.render; import net.minecraft.block.Block; import net.minecraft.client.renderer.Tessellator; @@ -30,19 +30,23 @@ import nova.core.render.texture.EntityTexture; import nova.core.render.texture.Texture; import nova.core.util.math.Vector3DUtil; -import nova.core.wrapper.mc.forge.v17.render.RenderUtility; -import nova.core.wrapper.mc.forge.v17.wrapper.assets.AssetConverter; +import nova.core.wrapper.mc.forge.v1_7_10.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets.AssetConverter; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.Optional; /** + * BWModel for dynamic rendering * @author Calclavia */ public class BWModel extends MeshModel { /** * Completes this rendering for a block. + * + * @param blockAccess The {@link IBlockAccess} instance. + * @throws NullPointerException If {@code blockAccess} is {@code null} */ public void render(IBlockAccess blockAccess) { render(Optional.of(blockAccess), Optional.empty()); diff --git a/minecraft/1.7/src/main/resources/META-INF/nova_at.cfg b/minecraft/1.7.10/src/main/resources/META-INF/nova_at.cfg similarity index 100% rename from minecraft/1.7/src/main/resources/META-INF/nova_at.cfg rename to minecraft/1.7.10/src/main/resources/META-INF/nova_at.cfg diff --git a/minecraft/1.7/src/main/resources/assets/nova/textures/NOVA.png b/minecraft/1.7.10/src/main/resources/assets/nova/textures/NOVA.png similarity index 100% rename from minecraft/1.7/src/main/resources/assets/nova/textures/NOVA.png rename to minecraft/1.7.10/src/main/resources/assets/nova/textures/NOVA.png diff --git a/minecraft/1.7/src/main/resources/assets/nova/textures/gui/controls.png b/minecraft/1.7.10/src/main/resources/assets/nova/textures/gui/controls.png similarity index 100% rename from minecraft/1.7/src/main/resources/assets/nova/textures/gui/controls.png rename to minecraft/1.7.10/src/main/resources/assets/nova/textures/gui/controls.png diff --git a/minecraft/1.7/src/main/resources/fmlbranding.properties b/minecraft/1.7.10/src/main/resources/fmlbranding.properties similarity index 100% rename from minecraft/1.7/src/main/resources/fmlbranding.properties rename to minecraft/1.7.10/src/main/resources/fmlbranding.properties diff --git a/minecraft/1.7/src/main/resources/mcmod.info b/minecraft/1.7.10/src/main/resources/mcmod.info similarity index 100% rename from minecraft/1.7/src/main/resources/mcmod.info rename to minecraft/1.7.10/src/main/resources/mcmod.info diff --git a/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/launcher/NovaLauncherTest.java b/minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/NovaLauncherTest.java similarity index 81% rename from minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/launcher/NovaLauncherTest.java rename to minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/NovaLauncherTest.java index ab347d454..09526cc59 100644 --- a/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/launcher/NovaLauncherTest.java +++ b/minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/launcher/NovaLauncherTest.java @@ -18,14 +18,14 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.launcher; +package nova.core.wrapper.mc.forge.v1_7_10.launcher; -import nova.core.wrapper.mc.forge.v18.depmodules.ClientModule; -import nova.core.wrapper.mc.forge.v18.depmodules.GameInfoModule; -import nova.core.wrapper.mc.forge.v18.depmodules.KeyModule; -import nova.core.wrapper.mc.forge.v18.depmodules.LanguageModule; -import nova.core.wrapper.mc.forge.v18.depmodules.SaveModule; -import nova.core.wrapper.mc.forge.v18.depmodules.TickerModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.ClientModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.GameInfoModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.KeyModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.LanguageModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.SaveModule; +import nova.core.wrapper.mc.forge.v1_7_10.depmodules.TickerModule; import nova.internal.core.Game; import nova.internal.core.bootstrap.DependencyInjectionEntryPoint; import nova.wrappertests.AbstractNovaLauncherTest; diff --git a/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/DirectionConverterTest.java b/minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/DirectionConverterTest.java similarity index 94% rename from minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/DirectionConverterTest.java rename to minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/DirectionConverterTest.java index cc9c550ba..3f2c8a698 100644 --- a/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/DirectionConverterTest.java +++ b/minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/DirectionConverterTest.java @@ -18,8 +18,9 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.DirectionConverter; import net.minecraft.util.EnumFacing; import nova.core.util.Direction; import org.junit.Before; @@ -59,6 +60,7 @@ public void testToNova() { } @Test + @SuppressWarnings("unchecked") public void testToNative() { assertThat(converter.toNative(Direction.DOWN)).isEqualTo(EnumFacing.DOWN); assertThat(converter.toNative(Direction.UP)).isEqualTo(EnumFacing.UP); diff --git a/minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/AssetConverterTest.java b/minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/AssetConverterTest.java similarity index 96% rename from minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/AssetConverterTest.java rename to minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/AssetConverterTest.java index c1c1c5089..5b52a848d 100644 --- a/minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/AssetConverterTest.java +++ b/minecraft/1.7.10/src/test/java/nova/core/wrapper/mc/forge/v1_7_10/wrapper/assets/AssetConverterTest.java @@ -18,8 +18,9 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets; +import nova.core.wrapper.mc.forge.v1_7_10.wrapper.assets.AssetConverter; import net.minecraft.util.ResourceLocation; import nova.core.render.texture.BlockTexture; import nova.core.render.texture.EntityTexture; diff --git a/minecraft/1.8/build.gradle b/minecraft/1.8/build.gradle index d2a755e6d..a9b5bed62 100644 --- a/minecraft/1.8/build.gradle +++ b/minecraft/1.8/build.gradle @@ -18,11 +18,9 @@ configurations { dependencies { fatJar project(":") fatJar 'org.apache.logging.log4j:log4j-slf4j-impl:2.0-beta9' - testCompile project(path: ':', configuration: 'wrapperTests') + testImplementation project(path: ':', configuration: 'wrapperTests') - testCompile "junit:junit:4.12" - testCompile 'org.assertj:assertj-core:3.0.0' - testRuntime 'org.slf4j:slf4j-simple:1.7.10' + testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.10' } jar { @@ -107,7 +105,7 @@ apply plugin: 'forge' minecraft { version = property("minecraft.version") + "-" + property("forge.version") - mappings = 'stable_nodoc_16' + mappings = 'stable_16' runDir = "run" } diff --git a/minecraft/1.8/gradle.properties b/minecraft/1.8/gradle.properties index 0298ba764..086b9c89c 100644 --- a/minecraft/1.8/gradle.properties +++ b/minecraft/1.8/gradle.properties @@ -2,6 +2,7 @@ group = nova.core minecraft.version = 1.8 forge.version = 11.14.3.1491 +forgeGradleVersion = 1.2-SNAPSHOT packaging = jar info.inceptionYear = 2015 diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/NovaMinecraftCore.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/NovaMinecraftCore.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/NovaMinecraftCore.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/NovaMinecraftCore.java index 93c58a073..50efbed79 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/NovaMinecraftCore.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/NovaMinecraftCore.java @@ -18,11 +18,11 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18; +package nova.core.wrapper.mc.forge.v1_8; import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin.MCVersion; -import nova.core.wrapper.mc.forge.v18.asm.transformers.Transformers; +import nova.core.wrapper.mc.forge.v1_8.asm.transformers.Transformers; import java.util.Map; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/NovaMinecraftPreloader.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/NovaMinecraftPreloader.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/NovaMinecraftPreloader.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/NovaMinecraftPreloader.java index b15ec6494..57bef4151 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/NovaMinecraftPreloader.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/NovaMinecraftPreloader.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18; +package nova.core.wrapper.mc.forge.v1_8; import com.google.common.eventbus.EventBus; import com.google.common.eventbus.Subscribe; @@ -40,10 +40,10 @@ import net.minecraftforge.fml.relauncher.Side; import nova.core.loader.Mod; import nova.core.util.ClassLoaderUtil; -import nova.core.wrapper.mc.forge.v18.util.ReflectionUtil; -import nova.core.wrapper.mc.forge.v18.wrapper.assets.NovaFileResourcePack; -import nova.core.wrapper.mc.forge.v18.wrapper.assets.NovaFolderResourcePack; -import nova.core.wrapper.mc.forge.v18.wrapper.assets.NovaResourcePack; +import nova.core.wrapper.mc.forge.v1_8.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_8.wrapper.assets.NovaFileResourcePack; +import nova.core.wrapper.mc.forge.v1_8.wrapper.assets.NovaFolderResourcePack; +import nova.core.wrapper.mc.forge.v1_8.wrapper.assets.NovaResourcePack; import nova.internal.core.Game; import java.io.File; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/StaticForwarder.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/StaticForwarder.java similarity index 85% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/StaticForwarder.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/StaticForwarder.java index 8f814952b..1eea7ea3f 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/StaticForwarder.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/StaticForwarder.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm; +package nova.core.wrapper.mc.forge.v1_8.asm; import net.minecraft.block.state.IBlockState; import net.minecraft.nbt.NBTTagCompound; @@ -28,13 +28,13 @@ import nova.core.block.Block; import nova.core.component.misc.FactoryProvider; import nova.core.event.BlockEvent; -import nova.core.wrapper.mc.forge.v18.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v18.wrapper.block.backward.BWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWTile; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWTileLoader; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.MCBlockTransform; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.backward.BWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWTile; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWTileLoader; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.MCBlockTransform; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; import nova.internal.core.Game; import nova.internal.core.launch.NovaLauncher; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; @@ -79,10 +79,10 @@ public static void chunkSetBlockEvent(Chunk chunk, BlockPos pos, IBlockState old /** * Used to inject forwarded TileEntites - * @param data - * @param clazz - * @return - * @throws Exception + * @param data The TileEntity data + * @param clazz The TileEntity class + * @return The new TileEntity instance + * @throws Exception If an exception occurred */ public static TileEntity loadTileEntityHook(NBTTagCompound data, Class clazz) throws Exception { if (FWTile.class.isAssignableFrom(clazz)) { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ASMHelper.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ASMHelper.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ASMHelper.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ASMHelper.java index da08b6d3b..02691f225 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ASMHelper.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ASMHelper.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.lib; +package nova.core.wrapper.mc.forge.v1_8.asm.lib; import com.google.common.collect.HashMultimap; import com.google.common.collect.Multimap; @@ -64,8 +64,8 @@ public class ASMHelper { static { try { - defineClass1 = ClassLoader.class.getDeclaredMethod("defineClass", new Class[] { String.class, byte[].class, int.class, int.class }); - defineClass2 = ClassLoader.class.getDeclaredMethod("defineClass", new Class[] { String.class, byte[].class, int.class, int.class, ProtectionDomain.class }); + defineClass1 = ClassLoader.class.getDeclaredMethod("defineClass", String.class, byte[].class, int.class, int.class); + defineClass2 = ClassLoader.class.getDeclaredMethod("defineClass", String.class, byte[].class, int.class, int.class, ProtectionDomain.class); } catch (Exception e) { throw new RuntimeException(e); } @@ -314,6 +314,7 @@ public static Class defineClass(ClassNode cn, int flags) { try { byte[] bytes = createBytes(cn, flags); defineClass1.setAccessible(true); + @SuppressWarnings("unchecked") Class clazz = (Class) defineClass1.invoke(Thread.currentThread().getContextClassLoader(), cn.name.replaceAll("/", "."), bytes, 0, bytes.length); defineClass1.setAccessible(false); return clazz; @@ -329,6 +330,7 @@ public static Class defineClass(ClassNode cn, int flags, ProtectionDomain try { byte[] bytes = createBytes(cn, flags); defineClass2.setAccessible(true); + @SuppressWarnings("unchecked") Class clazz = (Class) defineClass2.invoke(Thread.currentThread().getContextClassLoader(), cn.name.replaceAll("/", "."), bytes, 0, bytes.length, domain); defineClass2.setAccessible(false); return clazz; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/CC_ClassWriter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/CC_ClassWriter.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/CC_ClassWriter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/CC_ClassWriter.java index 6166586c0..f9ad5cc89 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/CC_ClassWriter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/CC_ClassWriter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.lib; +package nova.core.wrapper.mc.forge.v1_8.asm.lib; import org.objectweb.asm.ClassWriter; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ClassHeirachyManager.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ClassHeirachyManager.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ClassHeirachyManager.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ClassHeirachyManager.java index f3c50cba2..39cf49952 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ClassHeirachyManager.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ClassHeirachyManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.lib; +package nova.core.wrapper.mc.forge.v1_8.asm.lib; import net.minecraft.launchwrapper.IClassTransformer; import net.minecraft.launchwrapper.LaunchClassLoader; @@ -59,10 +59,10 @@ public static String unKey(String name) { } /** - * Returns true if clazz extends, either directly or indirectly, superclass. + * Returns true if the class extends, either directly or indirectly, the superclass. * @param name The class in question * @param superclass The class being extended - * @return + * @return If the class extends or not */ public static boolean classExtends(String name, String superclass) { name = toKey(name); diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ComponentInjector.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ComponentInjector.java similarity index 98% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ComponentInjector.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ComponentInjector.java index 3ce2b8c00..3de014638 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/asm/lib/ComponentInjector.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ComponentInjector.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.asm.lib; +package nova.core.wrapper.mc.forge.v1_8.asm.lib; import nova.core.component.Component; import nova.core.component.ComponentMap; @@ -46,7 +46,7 @@ * The ComponentInjector is capable of creating dynamic classes that implement a * specified super class and implement the interfaces specified by * {@link Component} and {@link Passthrough}. - * @param + * @param The component type * @author Vic Nightfall */ public class ComponentInjector implements Opcodes { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/InsnListPrinter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/InsnListPrinter.java similarity index 98% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/InsnListPrinter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/InsnListPrinter.java index 2de57f630..dcaf44825 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/InsnListPrinter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/InsnListPrinter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.lib; +package nova.core.wrapper.mc.forge.v1_8.asm.lib; import org.objectweb.asm.Label; import org.objectweb.asm.Opcodes; @@ -123,6 +123,7 @@ public void visitInsn(AbstractInsnNode insn) { _visitInsn(insn); } + @SuppressWarnings("deprecation") private void _visitInsn(AbstractInsnNode insn) { switch (insn.getType()) { case 0: diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/InstructionComparator.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/InstructionComparator.java similarity index 99% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/InstructionComparator.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/InstructionComparator.java index c453db33a..985afc0d2 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/InstructionComparator.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/InstructionComparator.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.lib; +package nova.core.wrapper.mc.forge.v1_8.asm.lib; import org.objectweb.asm.tree.AbstractInsnNode; import org.objectweb.asm.tree.FieldInsnNode; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ObfMapping.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ObfMapping.java similarity index 98% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ObfMapping.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ObfMapping.java index 164afd384..f0ecd4cde 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/ObfMapping.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/ObfMapping.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.lib; +package nova.core.wrapper.mc.forge.v1_8.asm.lib; import com.google.common.base.Objects; import net.minecraft.launchwrapper.LaunchClassLoader; @@ -118,6 +118,7 @@ public boolean matches(MethodInsnNode node) { return s_owner.equals(node.owner) && s_name.equals(node.name) && s_desc.equals(node.desc); } + @SuppressWarnings("deprecation") public AbstractInsnNode toInsn(int opcode) { if (isClass()) { return new TypeInsnNode(opcode, s_owner); @@ -132,6 +133,7 @@ public void visitTypeInsn(MethodVisitor mv, int opcode) { mv.visitTypeInsn(opcode, s_owner); } + @SuppressWarnings("deprecation") public void visitMethodInsn(MethodVisitor mv, int opcode) { mv.visitMethodInsn(opcode, s_owner, s_name, s_desc); } diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/TemplateInjector.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/TemplateInjector.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/TemplateInjector.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/TemplateInjector.java index d06fe6e8a..840597c50 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/TemplateInjector.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/TemplateInjector.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.lib; +package nova.core.wrapper.mc.forge.v1_8.asm.lib; import com.google.common.collect.HashBiMap; import org.objectweb.asm.tree.ClassNode; @@ -44,7 +44,7 @@ public class TemplateInjector { * @param className - Class that will be injected * @param template - Default interface used as a template to inject in the templateName */ - public void registerTemplate(String className, Class template) { + public void registerTemplate(String className, Class template) { templates.put(className, new InjectionTemplate(template.getName())); } @@ -83,8 +83,8 @@ public InjectionTemplate(String templateName) { /** * Patches the cnode withPriority the methods from this template. - * @param cnode - * @return + * @param cnode The ClassNode instance + * @return If the class node was modified */ public boolean inject(ClassNode cnode) { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/package-info.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/package-info.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/package-info.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/package-info.java index c92e79069..fe2fdb5cf 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/lib/package-info.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/lib/package-info.java @@ -24,4 +24,4 @@ * @author Calclavia */ -package nova.core.wrapper.mc.forge.v18.asm.lib; \ No newline at end of file +package nova.core.wrapper.mc.forge.v1_8.asm.lib; \ No newline at end of file diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/ChunkTransformer.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/ChunkTransformer.java similarity index 94% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/ChunkTransformer.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/ChunkTransformer.java index 3b3196705..6813ef6e8 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/ChunkTransformer.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/ChunkTransformer.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.transformers; +package nova.core.wrapper.mc.forge.v1_8.asm.transformers; -import nova.core.wrapper.mc.forge.v18.asm.lib.ASMHelper; -import nova.core.wrapper.mc.forge.v18.asm.lib.ObfMapping; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.ASMHelper; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.ObfMapping; import nova.internal.core.Game; import org.objectweb.asm.tree.AbstractInsnNode; import org.objectweb.asm.tree.ClassNode; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/GameDataTransformer.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/GameDataTransformer.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/GameDataTransformer.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/GameDataTransformer.java index 2d1fd8f75..a69a8ca66 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/GameDataTransformer.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/GameDataTransformer.java @@ -17,10 +17,10 @@ * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.transformers; +package nova.core.wrapper.mc.forge.v1_8.asm.transformers; -import nova.core.wrapper.mc.forge.v18.asm.lib.ASMHelper; -import nova.core.wrapper.mc.forge.v18.asm.lib.ObfMapping; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.ASMHelper; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.ObfMapping; import nova.internal.core.Game; import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.InsnList; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/TileEntityTransformer.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/TileEntityTransformer.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/TileEntityTransformer.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/TileEntityTransformer.java index 6d54b730b..2d0426f59 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/TileEntityTransformer.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/TileEntityTransformer.java @@ -18,11 +18,11 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.transformers; +package nova.core.wrapper.mc.forge.v1_8.asm.transformers; -import nova.core.wrapper.mc.forge.v18.asm.lib.ASMHelper; -import nova.core.wrapper.mc.forge.v18.asm.lib.InstructionComparator; -import nova.core.wrapper.mc.forge.v18.asm.lib.ObfMapping; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.ASMHelper; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.InstructionComparator; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.ObfMapping; import nova.internal.core.Game; import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.InsnList; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/Transformer.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/Transformer.java similarity index 94% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/Transformer.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/Transformer.java index 57306a8e8..3b1f9a5d2 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/Transformer.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/Transformer.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.transformers; +package nova.core.wrapper.mc.forge.v1_8.asm.transformers; import org.objectweb.asm.Opcodes; import org.objectweb.asm.tree.ClassNode; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/Transformers.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/Transformers.java similarity index 94% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/Transformers.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/Transformers.java index f182e822c..a7411d64c 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/asm/transformers/Transformers.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/asm/transformers/Transformers.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.asm.transformers; +package nova.core.wrapper.mc.forge.v1_8.asm.transformers; import net.minecraft.launchwrapper.IClassTransformer; -import nova.core.wrapper.mc.forge.v18.asm.lib.ASMHelper; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.ASMHelper; import org.objectweb.asm.tree.ClassNode; import java.util.ArrayList; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/ClientModule.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/ClientModule.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/ClientModule.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/ClientModule.java index 3064e72b9..34b8fb61c 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/ClientModule.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/ClientModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.depmodules; +package nova.core.wrapper.mc.forge.v1_8.depmodules; import nova.core.game.ClientManager; -import nova.core.wrapper.mc.forge.v18.manager.FWClientManager; +import nova.core.wrapper.mc.forge.v1_8.manager.FWClientManager; import se.jbee.inject.bind.BinderModule; public class ClientModule extends BinderModule { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/ComponentModule.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/ComponentModule.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/ComponentModule.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/ComponentModule.java index 852a5a7c2..ef531f3ca 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/ComponentModule.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/ComponentModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.depmodules; +package nova.core.wrapper.mc.forge.v1_8.depmodules; import nova.core.entity.component.RigidBody; -import nova.core.wrapper.mc.forge.v17.wrapper.entity.forward.BWRigidBody; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.BWRigidBody; import se.jbee.inject.bind.BinderModule; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/GameInfoModule.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/GameInfoModule.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/GameInfoModule.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/GameInfoModule.java index 109350e4e..1a310c311 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/GameInfoModule.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/GameInfoModule.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.depmodules; +package nova.core.wrapper.mc.forge.v1_8.depmodules; import nova.core.game.GameInfo; import se.jbee.inject.Dependency; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/KeyModule.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/KeyModule.java similarity index 90% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/KeyModule.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/KeyModule.java index 9e5b25595..96074ed30 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/KeyModule.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/KeyModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.depmodules; +package nova.core.wrapper.mc.forge.v1_8.depmodules; import nova.core.game.InputManager; -import nova.core.wrapper.mc.forge.v17.util.MCInputManager; +import nova.core.wrapper.mc.forge.v1_8.util.MCInputManager; import se.jbee.inject.bind.BinderModule; public class KeyModule extends BinderModule { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/LanguageModule.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/LanguageModule.java similarity index 90% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/LanguageModule.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/LanguageModule.java index efc271808..6997188ed 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/LanguageModule.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/LanguageModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.depmodules; +package nova.core.wrapper.mc.forge.v1_8.depmodules; import nova.core.language.LanguageManager; -import nova.core.wrapper.mc.forge.v18.util.MCLanguageManager; +import nova.core.wrapper.mc.forge.v1_8.util.MCLanguageManager; import se.jbee.inject.bind.BinderModule; public class LanguageModule extends BinderModule { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/NetworkModule.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/NetworkModule.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/NetworkModule.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/NetworkModule.java index e904d37af..6a97ebdf6 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/NetworkModule.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/NetworkModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.depmodules; +package nova.core.wrapper.mc.forge.v1_8.depmodules; import nova.core.network.NetworkManager; -import nova.core.wrapper.mc.forge.v17.network.netty.MCNetworkManager; +import nova.core.wrapper.mc.forge.v1_8.network.netty.MCNetworkManager; import se.jbee.inject.bind.BinderModule; public class NetworkModule extends BinderModule { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/SaveModule.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/SaveModule.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/SaveModule.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/SaveModule.java index 4e89b7efa..d7fdfd270 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/depmodules/SaveModule.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/SaveModule.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.depmodules; +package nova.core.wrapper.mc.forge.v1_8.depmodules; import nova.core.util.registry.RetentionManager; -import nova.core.wrapper.mc.forge.v18.manager.MCRetentionManager; +import nova.core.wrapper.mc.forge.v1_8.manager.MCRetentionManager; import se.jbee.inject.bind.BinderModule; public class SaveModule extends BinderModule { diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/TickerModule.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/TickerModule.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/TickerModule.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/TickerModule.java index 1691707e3..0307ea455 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/depmodules/TickerModule.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/depmodules/TickerModule.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.depmodules; +package nova.core.wrapper.mc.forge.v1_8.depmodules; import nova.internal.core.tick.UpdateTicker; import se.jbee.inject.Dependency; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ClientProxy.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ClientProxy.java similarity index 78% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ClientProxy.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ClientProxy.java index e647cdef3..41ef845ff 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ClientProxy.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ClientProxy.java @@ -18,41 +18,38 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.launcher; +package nova.core.wrapper.mc.forge.v1_8.launcher; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.particle.EntityFX; -import net.minecraft.client.renderer.ItemMeshDefinition; import net.minecraft.client.resources.IResource; import net.minecraft.client.resources.Language; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.client.FMLClientHandler; import net.minecraftforge.fml.client.registry.ClientRegistry; import net.minecraftforge.fml.client.registry.RenderingRegistry; -import net.minecraftforge.fml.common.ProgressManager; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import nova.core.entity.Entity; import nova.core.entity.EntityFactory; import nova.core.language.LanguageManager; -import nova.core.wrapper.mc.forge.v18.NovaMinecraftPreloader; -import nova.core.wrapper.mc.forge.v18.render.RenderUtility; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWTile; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWTileRenderer; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.backward.BWEntityFX; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.FWEntityFX; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.FWEntityRenderer; -import nova.core.wrapper.mc.forge.v18.wrapper.item.FWItem; +import nova.core.wrapper.mc.forge.v1_8.NovaMinecraftPreloader; +import nova.core.wrapper.mc.forge.v1_8.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWTile; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWTileRenderer; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward.BWEntityFX; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.FWEntityFX; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.FWEntityRenderer; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.FWItem; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.io.IOException; @@ -82,8 +79,9 @@ public void init(FMLInitializationEvent evt) { @SuppressWarnings({"unchecked", "deprecation"}) public void loadLanguage(LanguageManager languageManager) { super.loadLanguage(languageManager); - ProgressManager.ProgressBar progressBar = ProgressManager.push("Loading NOVA language files", - NovaMinecraftPreloader.novaResourcePacks.size() + 1); + net.minecraftforge.fml.common.ProgressManager.ProgressBar progressBar = + net.minecraftforge.fml.common.ProgressManager.push("Loading NOVA language files", + NovaMinecraftPreloader.novaResourcePacks.size() + 1); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); fmlProgressBar.step("nova"); SortedSet languages = Minecraft.getMinecraft().getLanguageManager().getLanguages(); @@ -116,7 +114,7 @@ public void loadLanguage(LanguageManager languageManager) { }); }); fmlProgressBar.finish(); - ProgressManager.pop(progressBar); + net.minecraftforge.fml.common.ProgressManager.pop(progressBar); } private void loadLanguage(LanguageManager languageManager, String langName, InputStream stream) { @@ -133,14 +131,10 @@ public void registerItem(FWItem item) { super.registerItem(item); //Hacks to inject custom item definition - ModelLoader.setCustomMeshDefinition(item, new ItemMeshDefinition() { - @Override - public ModelResourceLocation getModelLocation(ItemStack stack) { - ResourceLocation itemRL = (ResourceLocation) Item.itemRegistry.getNameForObject(item); - return new ModelResourceLocation(itemRL, "inventory"); - } - } - ); + ModelLoader.setCustomMeshDefinition(item, stack -> { + ResourceLocation itemRL = (ResourceLocation) Item.itemRegistry.getNameForObject(item); + return new ModelResourceLocation(itemRL, "inventory"); + }); } @Override @@ -150,14 +144,10 @@ public void postRegisterBlock(FWBlock block) { //Hack to inject custom itemblock definition Item itemFromBlock = Item.getItemFromBlock(block); - ModelLoader.setCustomMeshDefinition(itemFromBlock, new ItemMeshDefinition() { - @Override - public ModelResourceLocation getModelLocation(ItemStack stack) { - ResourceLocation itemRL = (ResourceLocation) Item.itemRegistry.getNameForObject(itemFromBlock); - return new ModelResourceLocation(itemRL, "inventory"); - } - } - ); + ModelLoader.setCustomMeshDefinition(itemFromBlock, stack -> { + ResourceLocation itemRL = (ResourceLocation) Item.itemRegistry.getNameForObject(itemFromBlock); + return new ModelResourceLocation(itemRL, "inventory"); + }); } @Override diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/CommonProxy.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/CommonProxy.java similarity index 85% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/CommonProxy.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/CommonProxy.java index 01f86db9e..d85d4bed6 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/CommonProxy.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/CommonProxy.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.launcher; +package nova.core.wrapper.mc.forge.v1_8.launcher; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @@ -27,11 +27,11 @@ import nova.core.entity.Entity; import nova.core.entity.EntityFactory; import nova.core.language.LanguageManager; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWTile; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWTileUpdater; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v18.wrapper.item.FWItem; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWTile; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWTileUpdater; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.FWItem; import java.util.Set; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/FMLEventHandler.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/FMLEventHandler.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/FMLEventHandler.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/FMLEventHandler.java index f742b0362..f3011ffa8 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/FMLEventHandler.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/FMLEventHandler.java @@ -18,12 +18,12 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.launcher; +package nova.core.wrapper.mc.forge.v1_8.launcher; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import nova.core.event.PlayerEvent; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/FMLProgressBar.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/FMLProgressBar.java similarity index 81% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/FMLProgressBar.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/FMLProgressBar.java index 92418942a..ccb631087 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/launcher/FMLProgressBar.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/FMLProgressBar.java @@ -18,9 +18,8 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.launcher; +package nova.core.wrapper.mc.forge.v1_8.launcher; -import cpw.mods.fml.common.ProgressManager.ProgressBar; import nova.core.util.AbstractProgressBar; /** @@ -30,9 +29,11 @@ */ public class FMLProgressBar extends AbstractProgressBar { - private final ProgressBar progressBar; + @SuppressWarnings("deprecation") + private final net.minecraftforge.fml.common.ProgressManager.ProgressBar progressBar; - public FMLProgressBar(ProgressBar progressBar) { + public FMLProgressBar(@SuppressWarnings("deprecation") + net.minecraftforge.fml.common.ProgressManager.ProgressBar progressBar) { this.progressBar = progressBar; } diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ForgeEventHandler.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ForgeEventHandler.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ForgeEventHandler.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ForgeEventHandler.java index fe12d68d4..5a4a44742 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ForgeEventHandler.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ForgeEventHandler.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.launcher; +package nova.core.wrapper.mc.forge.v1_8.launcher; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.event.world.WorldEvent; @@ -27,10 +27,10 @@ import net.minecraftforge.oredict.OreDictionary; import nova.core.item.Item; import nova.core.item.ItemDictionary; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ForgeLoadable.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ForgeLoadable.java similarity index 77% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ForgeLoadable.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ForgeLoadable.java index a76ddcbe7..ec4f568f6 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/ForgeLoadable.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/ForgeLoadable.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.launcher; +package nova.core.wrapper.mc.forge.v1_8.launcher; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; @@ -29,15 +29,29 @@ * * @author ExE Boss */ -// TODO Maybe replace with wrapper events. public interface ForgeLoadable { + /** + * Pre‑initialize the wrapper code. + * + * @param evt The Minecraft Forge pre-initialization event + */ default void preInit(FMLPreInitializationEvent evt) { } + /** + * Initialize the wrapper code. + * + * @param evt The Minecraft Forge initialization event + */ default void init(FMLInitializationEvent evt) { } + /** + * Post-initialize the wrapper code. + * + * @param evt The Minecraft Forge post-initialization event + */ default void postInit(FMLPostInitializationEvent evt) { } } diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/NovaMinecraft.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/NovaMinecraft.java similarity index 74% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/NovaMinecraft.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/NovaMinecraft.java index cec978b33..b095d6dbb 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/launcher/NovaMinecraft.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/launcher/NovaMinecraft.java @@ -18,13 +18,11 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.launcher; +package nova.core.wrapper.mc.forge.v1_8.launcher; -import com.typesafe.config.Config; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.Mod; -import net.minecraftforge.fml.common.ProgressManager; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; @@ -36,30 +34,29 @@ import nova.core.config.Configuration; import nova.core.deps.MavenDependency; import nova.core.event.ServerEvent; -import nova.core.event.bus.GlobalEvents; -import nova.core.wrapper.mc.forge.v18.NovaMinecraftPreloader; -import nova.core.wrapper.mc.forge.v18.depmodules.ClientModule; -import nova.core.wrapper.mc.forge.v18.depmodules.ComponentModule; -import nova.core.wrapper.mc.forge.v18.depmodules.GameInfoModule; -import nova.core.wrapper.mc.forge.v18.depmodules.KeyModule; -import nova.core.wrapper.mc.forge.v18.depmodules.LanguageModule; -import nova.core.wrapper.mc.forge.v18.depmodules.NetworkModule; -import nova.core.wrapper.mc.forge.v18.depmodules.SaveModule; -import nova.core.wrapper.mc.forge.v18.depmodules.TickerModule; -import nova.core.wrapper.mc.forge.v18.wrapper.CategoryConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.DirectionConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.assets.AssetConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.BlockConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.cuboid.CuboidConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.data.DataConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.inventory.InventoryConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.item.OreDictionaryIntegration; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.MinecraftRecipeRegistry; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.RecipeConverter; +import nova.core.wrapper.mc.forge.v1_8.NovaMinecraftPreloader; +import nova.core.wrapper.mc.forge.v1_8.depmodules.ClientModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.ComponentModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.GameInfoModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.KeyModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.LanguageModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.NetworkModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.SaveModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.TickerModule; +import nova.core.wrapper.mc.forge.v1_8.wrapper.CategoryConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.DirectionConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.assets.AssetConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.BlockConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.cuboid.CuboidConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.inventory.InventoryConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.OreDictionaryIntegration; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.MinecraftRecipeRegistry; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.RecipeConverter; import nova.internal.core.Game; import nova.internal.core.bootstrap.DependencyInjectionEntryPoint; import nova.internal.core.deps.DepDownloader; @@ -69,7 +66,6 @@ import java.io.File; import java.util.HashSet; import java.util.List; -import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; @@ -78,7 +74,7 @@ * @author Calclavia */ @Mod(modid = NovaMinecraft.id, name = NovaMinecraft.name, version = NovaMinecraftPreloader.version, acceptableRemoteVersions = "*") -public class NovaMinecraft { +public class NovaMinecraft implements ForgeLoadable { public static final String id = "nova"; public static final String name = "NOVA"; @@ -102,8 +98,12 @@ public static void registerWrapper(ForgeLoadable wrapper) { * ORDER OF LOADING. * * 1. Native Loaders 2. Native Converters 3. Mods + * + * @param evt {@inheritDoc} */ @Mod.EventHandler + @Override + @SuppressWarnings("deprecation") public void preInit(FMLPreInitializationEvent evt) { try { /** @@ -163,9 +163,10 @@ public void preInit(FMLPreInitializationEvent evt) { e.printStackTrace(); } - ProgressManager.ProgressBar progressBar = ProgressManager.push("Loading NOVA mods", modClasses.isEmpty() ? 1 : modClasses.size()); + net.minecraftforge.fml.common.ProgressManager.ProgressBar progressBar + = net.minecraftforge.fml.common.ProgressManager.push("Loading NOVA mods", modClasses.isEmpty() ? 1 : modClasses.size()); launcher.load(new FMLProgressBar(progressBar)); - ProgressManager.pop(progressBar); + net.minecraftforge.fml.common.ProgressManager.pop(progressBar); novaModWrappers = launcher.getOrdererdMods().stream().filter(mod -> mod instanceof ForgeLoadable).map(mod -> (ForgeLoadable) mod).collect(Collectors.toList()); novaWrappers.removeAll(novaModWrappers); @@ -187,7 +188,8 @@ public void preInit(FMLPreInitializationEvent evt) { Game.entities().init(); //Load preInit - progressBar = ProgressManager.push("Pre-initializing NOVA wrappers", (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); + progressBar = net.minecraftforge.fml.common.ProgressManager.push("Pre-initializing NOVA wrappers", + (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); novaModWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); @@ -198,7 +200,7 @@ public void preInit(FMLPreInitializationEvent evt) { wrapper.preInit(evt); }); fmlProgressBar.finish(); - ProgressManager.pop(progressBar); + net.minecraftforge.fml.common.ProgressManager.pop(progressBar); proxy.preInit(evt); @@ -216,11 +218,15 @@ public void preInit(FMLPreInitializationEvent evt) { } @Mod.EventHandler + @Override + @SuppressWarnings("deprecation") public void init(FMLInitializationEvent evt) { try { proxy.init(evt); nativeConverters.stream().forEachOrdered(forgeLoadable -> forgeLoadable.init(evt)); - ProgressManager.ProgressBar progressBar = ProgressManager.push("Initializing NOVA wrappers", (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); + net.minecraftforge.fml.common.ProgressManager.ProgressBar progressBar + = net.minecraftforge.fml.common.ProgressManager.push("Initializing NOVA wrappers", + (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); novaModWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); @@ -231,7 +237,7 @@ public void init(FMLInitializationEvent evt) { wrapper.init(evt); }); fmlProgressBar.finish(); - ProgressManager.pop(progressBar); + net.minecraftforge.fml.common.ProgressManager.pop(progressBar); } catch (Exception e) { Game.logger().error("Error during init", e); e.printStackTrace(); @@ -240,12 +246,16 @@ public void init(FMLInitializationEvent evt) { } @Mod.EventHandler + @Override + @SuppressWarnings("deprecation") public void postInit(FMLPostInitializationEvent evt) { try { proxy.postInit(evt); nativeConverters.stream().forEachOrdered(forgeLoadable -> forgeLoadable.postInit(evt)); Game.recipes().init(); - ProgressManager.ProgressBar progressBar = ProgressManager.push("Post-initializing NOVA wrappers", (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); + net.minecraftforge.fml.common.ProgressManager.ProgressBar progressBar + = net.minecraftforge.fml.common.ProgressManager.push("Post-initializing NOVA wrappers", + (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size()); FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar); novaModWrappers.stream().forEachOrdered(wrapper -> { fmlProgressBar.step(wrapper.getClass()); @@ -256,7 +266,7 @@ public void postInit(FMLPostInitializationEvent evt) { wrapper.postInit(evt); }); fmlProgressBar.finish(); - ProgressManager.pop(progressBar); + net.minecraftforge.fml.common.ProgressManager.pop(progressBar); } catch (Exception e) { Game.logger().error("Error during postInit", e); e.printStackTrace(); diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/FWClientManager.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/FWClientManager.java similarity index 86% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/FWClientManager.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/FWClientManager.java index a22075300..a5568213b 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/FWClientManager.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/FWClientManager.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.manager; +package nova.core.wrapper.mc.forge.v1_8.manager; import net.minecraft.client.Minecraft; import nova.core.entity.Entity; import nova.core.game.ClientManager; -import nova.core.wrapper.mc.forge.v18.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_8.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward.BWEntity; /** * @author Calclavia diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/MCRetentionManager.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/MCRetentionManager.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/MCRetentionManager.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/MCRetentionManager.java index 8be291465..c5852773c 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/MCRetentionManager.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/MCRetentionManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.manager; +package nova.core.wrapper.mc.forge.v1_8.manager; import net.minecraft.nbt.CompressedStreamTools; import net.minecraft.nbt.NBTTagCompound; @@ -30,7 +30,7 @@ import nova.core.retention.Data; import nova.core.retention.Storable; import nova.core.util.registry.RetentionManager; -import nova.core.wrapper.mc.forge.v18.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.data.DataConverter; import nova.internal.core.Game; import java.io.File; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/config/NovaGuiConfig.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/config/NovaGuiConfig.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/config/NovaGuiConfig.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/config/NovaGuiConfig.java index af389fa09..b65d85d16 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/config/NovaGuiConfig.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/config/NovaGuiConfig.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.manager.config; +package nova.core.wrapper.mc.forge.v1_8.manager.config; import net.minecraft.client.gui.GuiScreen; import net.minecraftforge.common.config.ConfigElement; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/config/NovaGuiFactory.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/config/NovaGuiFactory.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/config/NovaGuiFactory.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/config/NovaGuiFactory.java index 199cb0534..b67f41d83 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/manager/config/NovaGuiFactory.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/manager/config/NovaGuiFactory.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.manager.config; +package nova.core.wrapper.mc.forge.v1_8.manager.config; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/MCPacket.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/MCPacket.java similarity index 98% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/MCPacket.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/MCPacket.java index 930405dc4..d131a1ed0 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/MCPacket.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/MCPacket.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.network; +package nova.core.wrapper.mc.forge.v1_8.network; import io.netty.buffer.ByteBuf; import net.minecraftforge.fml.common.network.ByteBufUtils; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/NovaPacket.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/NovaPacket.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/NovaPacket.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/NovaPacket.java index 6e6cceb02..34c5b1a46 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/NovaPacket.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/NovaPacket.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.network.discriminator; +package nova.core.wrapper.mc.forge.v1_8.network.discriminator; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; @@ -26,9 +26,9 @@ import nova.core.entity.Entity; import nova.core.entity.component.Player; import nova.core.network.handler.PacketHandler; -import nova.core.wrapper.mc.forge.v18.network.MCPacket; -import nova.core.wrapper.mc.forge.v18.network.netty.MCNetworkManager; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.network.MCPacket; +import nova.core.wrapper.mc.forge.v1_8.network.netty.MCNetworkManager; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/PacketAbstract.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/PacketAbstract.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/PacketAbstract.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/PacketAbstract.java index 4f4d05f9d..fbdc14455 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/discriminator/PacketAbstract.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/PacketAbstract.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.network.discriminator; +package nova.core.wrapper.mc.forge.v1_8.network.discriminator; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; import net.minecraft.entity.player.EntityPlayer; -import nova.core.wrapper.mc.forge.v18.network.netty.MCNetworkManager; +import nova.core.wrapper.mc.forge.v1_8.network.netty.MCNetworkManager; /** * For custom packets extend this Class and register on Mod loading phase diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/PacketPlayerItem.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/PacketPlayerItem.java similarity index 95% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/PacketPlayerItem.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/PacketPlayerItem.java index 1ab27ae00..2716d8432 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/network/discriminator/PacketPlayerItem.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/discriminator/PacketPlayerItem.java @@ -18,14 +18,14 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.network.discriminator; +package nova.core.wrapper.mc.forge.v1_8.network.discriminator; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import nova.core.network.Syncable; -import nova.core.wrapper.mc.forge.v17.network.MCPacket; +import nova.core.wrapper.mc.forge.v1_8.network.MCPacket; /** * A packet handler for players who are currently holding their item. diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/ChannelHandler.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/ChannelHandler.java similarity index 84% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/ChannelHandler.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/ChannelHandler.java index c09631e69..fe2924dac 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/ChannelHandler.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/ChannelHandler.java @@ -18,14 +18,14 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.network.netty; +package nova.core.wrapper.mc.forge.v1_8.network.netty; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec; -import nova.core.wrapper.mc.forge.v18.network.discriminator.NovaPacket; -import nova.core.wrapper.mc.forge.v18.network.discriminator.PacketAbstract; -import nova.core.wrapper.mc.forge.v18.network.discriminator.PacketPlayerItem; +import nova.core.wrapper.mc.forge.v1_8.network.discriminator.NovaPacket; +import nova.core.wrapper.mc.forge.v1_8.network.discriminator.PacketAbstract; +import nova.core.wrapper.mc.forge.v1_8.network.discriminator.PacketPlayerItem; /** * Handles the channel and discriminators. diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/MCNetworkManager.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/MCNetworkManager.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/MCNetworkManager.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/MCNetworkManager.java index 16ce4b8d4..0309df7c0 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/MCNetworkManager.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/MCNetworkManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.network.netty; +package nova.core.wrapper.mc.forge.v1_8.network.netty; import io.netty.buffer.Unpooled; import net.minecraft.entity.player.EntityPlayerMP; @@ -35,11 +35,11 @@ import nova.core.entity.component.Player; import nova.core.network.NetworkManager; import nova.core.network.Syncable; -import nova.core.wrapper.mc.forge.v18.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v18.network.MCPacket; -import nova.core.wrapper.mc.forge.v18.network.discriminator.NovaPacket; -import nova.core.wrapper.mc.forge.v18.network.discriminator.PacketAbstract; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_8.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_8.network.MCPacket; +import nova.core.wrapper.mc.forge.v1_8.network.discriminator.NovaPacket; +import nova.core.wrapper.mc.forge.v1_8.network.discriminator.PacketAbstract; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward.BWEntity; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.EnumMap; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/MCPacketHandler.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/MCPacketHandler.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/MCPacketHandler.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/MCPacketHandler.java index ee3b83155..c8802e17c 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/network/netty/MCPacketHandler.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/network/netty/MCPacketHandler.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.network.netty; +package nova.core.wrapper.mc.forge.v1_8.network.netty; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandlerContext; @@ -28,8 +28,8 @@ import net.minecraftforge.fml.client.FMLClientHandler; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.network.NetworkRegistry; -import nova.core.wrapper.mc.forge.v18.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v18.network.discriminator.PacketAbstract; +import nova.core.wrapper.mc.forge.v1_8.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_8.network.discriminator.PacketAbstract; /** * @author tgame14 diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/render/RenderUtility.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/render/RenderUtility.java similarity index 92% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/render/RenderUtility.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/render/RenderUtility.java index 8a1467d5e..e29372241 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/render/RenderUtility.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/render/RenderUtility.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.render; +package nova.core.wrapper.mc.forge.v1_8.render; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.OpenGlHelper; @@ -38,16 +38,16 @@ import nova.core.component.renderer.StaticRenderer; import nova.core.item.ItemFactory; import nova.core.render.texture.Texture; -import nova.core.wrapper.mc.forge.v18.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v18.wrapper.assets.AssetConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.BlockConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.item.FWItem; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemWrapperMethods; -import nova.core.wrapper.mc.forge.v18.wrapper.render.FWEmptyModel; -import nova.core.wrapper.mc.forge.v18.wrapper.render.FWSmartBlockModel; -import nova.core.wrapper.mc.forge.v18.wrapper.render.FWSmartItemModel; +import nova.core.wrapper.mc.forge.v1_8.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_8.wrapper.assets.AssetConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.BlockConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.FWItem; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemWrapperMethods; +import nova.core.wrapper.mc.forge.v1_8.wrapper.render.FWEmptyModel; +import nova.core.wrapper.mc.forge.v1_8.wrapper.render.FWSmartBlockModel; +import nova.core.wrapper.mc.forge.v1_8.wrapper.render.FWSmartItemModel; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; import org.lwjgl.opengl.GL11; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/MCInputManager.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/MCInputManager.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/MCInputManager.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/MCInputManager.java index 1be35c1f1..cfd04dc4a 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/MCInputManager.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/MCInputManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.util; +package nova.core.wrapper.mc.forge.v1_8.util; import nova.core.game.InputManager; import org.lwjgl.input.Keyboard; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/MCLanguageManager.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/MCLanguageManager.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/MCLanguageManager.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/MCLanguageManager.java index a12154233..bacfe4737 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/MCLanguageManager.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/MCLanguageManager.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.util; +package nova.core.wrapper.mc.forge.v1_8.util; import net.minecraft.util.StatCollector; import net.minecraftforge.fml.common.FMLCommonHandler; @@ -27,8 +27,8 @@ import nova.core.event.LanguageEvent; import nova.core.event.bus.EventBus; import nova.core.language.LanguageManager; -import nova.core.wrapper.mc.forge.v18.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v18.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_8.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_8.launcher.NovaMinecraft; import nova.internal.core.Game; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ModCreativeTab.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ModCreativeTab.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ModCreativeTab.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ModCreativeTab.java index 4dd428ca1..632217129 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ModCreativeTab.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ModCreativeTab.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.util; +package nova.core.wrapper.mc.forge.v1_8.util; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ObfuscationConstants.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ObfuscationConstants.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ObfuscationConstants.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ObfuscationConstants.java index 47ef9fce5..a17c716b7 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/util/ObfuscationConstants.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ObfuscationConstants.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.util; +package nova.core.wrapper.mc.forge.v1_8.util; /** * @author Stan Hebben diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ReflectionUtil.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ReflectionUtil.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ReflectionUtil.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ReflectionUtil.java index 420b96808..cb71fd1c6 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/ReflectionUtil.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/ReflectionUtil.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.util; +package nova.core.wrapper.mc.forge.v1_8.util; import com.google.common.collect.BiMap; import net.minecraft.entity.Entity; @@ -57,6 +57,7 @@ * adjustment - as such, those have been collected here. * @author Stan Hebben */ +@SuppressWarnings("unchecked") public class ReflectionUtil { private static final Field NBTTAGLIST_TAGLIST; private static final Field OREDICTIONARY_IDTOSTACK; @@ -129,6 +130,7 @@ public static List getTagList(NBTTagList list) { } } + @SuppressWarnings("rawtypes") public static List getSeeds() { return getPrivateStaticObject(ForgeHooks.class, "seedList"); } @@ -137,7 +139,7 @@ public static Map getChestLoot() { return getPrivateStaticObject(ChestGenHooks.class, "chestInfo"); } - public static Map getTranslations() { + public static Map getTranslations() { return getPrivateObject( getPrivateStaticObject(StatCollector.class, "localizedName", "field_74839_a"), "languageList", @@ -308,7 +310,7 @@ public static boolean setPrivateObject(Object object, Object value, String... na // ### Private Methods ### // ####################### - private static Field getField(Class cls, String... names) { + private static Field getField(Class cls, String... names) { for (String name : names) { try { Field field = cls.getDeclaredField(name); diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/WrapUtility.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/WrapUtility.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/WrapUtility.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/WrapUtility.java index 4accd367c..8861d4393 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/WrapUtility.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/WrapUtility.java @@ -18,16 +18,17 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.util; +package nova.core.wrapper.mc.forge.v1_8.util; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import nova.core.entity.Entity; import nova.core.entity.component.Player; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward.BWEntity; import java.util.Optional; + import javax.annotation.Nonnull; import javax.annotation.Nullable; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/WrapperEvent.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/WrapperEvent.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/WrapperEvent.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/WrapperEvent.java index d06aa6b82..76966139c 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/util/WrapperEvent.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/util/WrapperEvent.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.util; +package nova.core.wrapper.mc.forge.v1_8.util; import net.minecraft.item.ItemStack; import nova.core.block.Block; @@ -29,12 +29,12 @@ import nova.core.item.Item; import nova.core.util.Direction; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v18.wrapper.block.backward.BWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWTile; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.backward.BWEntity; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.FWEntityFX; -import nova.core.wrapper.mc.forge.v18.wrapper.item.BWItem; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.backward.BWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWTile; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.FWEntityFX; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.BWItem; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/CategoryConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/CategoryConverter.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/CategoryConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/CategoryConverter.java index f549e0ea5..57acef3da 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/CategoryConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/CategoryConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper; +package nova.core.wrapper.mc.forge.v1_8.wrapper; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; @@ -26,8 +26,8 @@ import net.minecraft.item.ItemStack; import nova.core.component.Category; import nova.core.nativewrapper.NativeConverter; -import nova.core.wrapper.mc.forge.v18.util.ModCreativeTab; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.util.ModCreativeTab; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import nova.internal.core.Game; import java.util.Arrays; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/DirectionConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/DirectionConverter.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/DirectionConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/DirectionConverter.java index 6054b0909..cc46019b2 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/DirectionConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/DirectionConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper; +package nova.core.wrapper.mc.forge.v1_8.wrapper; import net.minecraft.util.EnumFacing; import nova.core.nativewrapper.NativeConverter; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/VectorConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/VectorConverter.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/VectorConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/VectorConverter.java index 802de4f90..440b2a3c8 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/VectorConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/VectorConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper; +package nova.core.wrapper.mc.forge.v1_8.wrapper; import net.minecraft.util.BlockPos; import net.minecraft.util.Vec3; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/AssetConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/AssetConverter.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/AssetConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/AssetConverter.java index f79b656b5..d4c6e2ca4 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/AssetConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/AssetConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_8.wrapper.assets; import net.minecraft.util.ResourceLocation; import nova.core.nativewrapper.NativeConverter; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaFileResourcePack.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaFileResourcePack.java similarity index 97% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaFileResourcePack.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaFileResourcePack.java index 9e5d087c5..c619e46cf 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/assets/NovaFileResourcePack.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaFileResourcePack.java @@ -18,12 +18,12 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_8.wrapper.assets; import com.google.common.base.Charsets; import net.minecraft.client.resources.FileResourcePack; import net.minecraft.util.ResourceLocation; -import nova.core.wrapper.mc.forge.v17.NovaMinecraftPreloader; +import nova.core.wrapper.mc.forge.v1_8.NovaMinecraftPreloader; import java.io.ByteArrayInputStream; import java.io.File; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaFolderResourcePack.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaFolderResourcePack.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaFolderResourcePack.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaFolderResourcePack.java index 95a47ea96..9789affd6 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaFolderResourcePack.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaFolderResourcePack.java @@ -18,12 +18,12 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_8.wrapper.assets; import com.google.common.base.Charsets; import net.minecraft.client.resources.FolderResourcePack; import net.minecraft.util.ResourceLocation; -import nova.core.wrapper.mc.forge.v18.NovaMinecraftPreloader; +import nova.core.wrapper.mc.forge.v1_8.NovaMinecraftPreloader; import java.io.ByteArrayInputStream; import java.io.File; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaResourcePack.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaResourcePack.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaResourcePack.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaResourcePack.java index b41ac8865..fe144b229 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/NovaResourcePack.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/NovaResourcePack.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_8.wrapper.assets; import net.minecraft.client.resources.IResourcePack; import net.minecraft.util.ResourceLocation; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/BlockConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/BlockConverter.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/BlockConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/BlockConverter.java index f40bef205..ed930a3fc 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/BlockConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/BlockConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block; import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; @@ -33,13 +33,13 @@ import nova.core.event.BlockEvent; import nova.core.loader.Mod; import nova.core.nativewrapper.NativeConverter; -import nova.core.wrapper.mc.forge.v18.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v18.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v18.wrapper.block.backward.BWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.CategoryConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.backward.BWBlockFactory; -import nova.core.wrapper.mc.forge.v18.wrapper.item.FWItemBlock; +import nova.core.wrapper.mc.forge.v1_8.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_8.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.backward.BWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.CategoryConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.backward.BWBlockFactory; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.FWItemBlock; import nova.internal.core.Game; import nova.internal.core.launch.NovaLauncher; @@ -97,7 +97,7 @@ public net.minecraft.block.Block toNative(BlockFactory blockFactory) { /** * Register all Nova blocks * - * @param evt The Minecraft Forge pre-initialization event + * @param evt {@inheritDoc} */ @Override public void preInit(FMLPreInitializationEvent evt) { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlock.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlock.java similarity index 92% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlock.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlock.java index a8c34fc54..68200e0e5 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlock.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlock.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.backward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.backward; import net.minecraft.block.BlockSnow; import net.minecraft.block.state.IBlockState; @@ -44,14 +44,14 @@ import nova.core.sound.Sound; import nova.core.util.shape.Cuboid; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.cuboid.CuboidConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.data.DataConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.render.backward.BWBakedModel; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.cuboid.CuboidConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.render.backward.BWBakedModel; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlockFactory.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlockFactory.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlockFactory.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlockFactory.java index bda71dd7d..bf3dc818f 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlockFactory.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlockFactory.java @@ -18,7 +18,7 @@ * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.backward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.backward; import net.minecraft.block.Block; import nova.core.block.BlockFactory; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlockTransform.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlockTransform.java similarity index 94% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlockTransform.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlockTransform.java index 7ccfa2781..54bf5bcf2 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/backward/BWBlockTransform.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/backward/BWBlockTransform.java @@ -17,7 +17,7 @@ * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.backward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.backward; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; @@ -25,8 +25,8 @@ import net.minecraft.world.IBlockAccess; import nova.core.component.transform.BlockTransform; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/BlockPosition.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/BlockPosition.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/BlockPosition.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/BlockPosition.java index 9be5ef340..8785155f4 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/BlockPosition.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/BlockPosition.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.world.World; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWBlock.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWBlock.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWBlock.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWBlock.java index 1417d0e38..996af32d2 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWBlock.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWBlock.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; @@ -47,13 +47,13 @@ import nova.core.util.Direction; import nova.core.util.math.MathUtil; import nova.core.util.shape.Cuboid; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v18.wrapper.DirectionConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.cuboid.CuboidConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.wrapper.DirectionConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.cuboid.CuboidConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWBlockSound.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWBlockSound.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWBlockSound.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWBlockSound.java index 072c8e599..5c36dcd69 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWBlockSound.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWBlockSound.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.block.Block; import nova.core.block.component.BlockProperty; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTile.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTile.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTile.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTile.java index 296a79561..1442b1b6a 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTile.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTile.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.Packet; @@ -28,8 +28,8 @@ import nova.core.network.Syncable; import nova.core.retention.Data; import nova.core.retention.Storable; -import nova.core.wrapper.mc.forge.v18.network.netty.MCNetworkManager; -import nova.core.wrapper.mc.forge.v18.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_8.network.netty.MCNetworkManager; +import nova.core.wrapper.mc.forge.v1_8.wrapper.data.DataConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileLoader.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileLoader.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileLoader.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileLoader.java index bd375d28b..3cc8a71b3 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileLoader.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileLoader.java @@ -18,14 +18,14 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.nbt.NBTTagCompound; import nova.core.block.Block; import nova.core.block.BlockFactory; import nova.core.component.Updater; -import nova.core.wrapper.mc.forge.v18.asm.lib.ComponentInjector; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.asm.lib.ComponentInjector; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; import nova.internal.core.Game; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileRenderer.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileRenderer.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileRenderer.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileRenderer.java index d470b2d9e..e463a841d 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileRenderer.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileRenderer.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.texture.TextureMap; @@ -26,8 +26,8 @@ import net.minecraft.tileentity.TileEntity; import nova.core.block.Block; import nova.core.component.renderer.DynamicRenderer; -import nova.core.wrapper.mc.forge.v18.render.RenderUtility; -import nova.core.wrapper.mc.forge.v18.wrapper.render.BWModel; +import nova.core.wrapper.mc.forge.v1_8.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_8.wrapper.render.BWModel; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileUpdater.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileUpdater.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileUpdater.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileUpdater.java index f0a46a1a9..453bfed93 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWTileUpdater.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/FWTileUpdater.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.server.gui.IUpdatePlayerListBox; import nova.core.component.Updater; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/MCBlockTransform.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/MCBlockTransform.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/MCBlockTransform.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/MCBlockTransform.java index cc5eaf0be..d2d436a9c 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/MCBlockTransform.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/MCBlockTransform.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.BlockPos; @@ -28,8 +28,8 @@ import nova.core.retention.Data; import nova.core.retention.Storable; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/ProxyMaterial.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/ProxyMaterial.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/ProxyMaterial.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/ProxyMaterial.java index f47888372..953865812 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/ProxyMaterial.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/ProxyMaterial.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/TEBlockTransform.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/TEBlockTransform.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/TEBlockTransform.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/TEBlockTransform.java index 0d93251b4..e26301fd6 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/TEBlockTransform.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/forward/TEBlockTransform.java @@ -17,15 +17,15 @@ * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward; import net.minecraft.util.BlockPos; import net.minecraft.world.IBlockAccess; import nova.core.block.Block; import nova.core.component.transform.BlockTransform; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/world/BWWorld.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/world/BWWorld.java similarity index 86% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/world/BWWorld.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/world/BWWorld.java index 766fbac7e..8f58d916c 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/world/BWWorld.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/world/BWWorld.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.block.world; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.world; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.item.EntityItem; @@ -34,16 +34,16 @@ import nova.core.sound.Sound; import nova.core.util.shape.Cuboid; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v18.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.BlockConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.backward.BWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.MCBlockTransform; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.EntityConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.MCEntityTransform; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.BlockConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.backward.BWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.MCBlockTransform; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.EntityConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.MCEntityTransform; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; @@ -129,8 +129,8 @@ public Entity addClientEntity(EntityFactory factory) { @Override @SuppressWarnings("unchecked") - public Entity addClientEntity(Entity entity) { - return NovaMinecraft.proxy.spawnParticle(world(), entity); + public T addClientEntity(T entity) { + return (T) NovaMinecraft.proxy.spawnParticle(world(), entity); } @Override diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/world/WorldConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/world/WorldConverter.java similarity index 96% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/world/WorldConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/world/WorldConverter.java index 9ad7e6d46..d12977ad6 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/block/world/WorldConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/block/world/WorldConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.block.world; +package nova.core.wrapper.mc.forge.v1_8.wrapper.block.world; import net.minecraft.world.IBlockAccess; import nova.core.nativewrapper.NativeConverter; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/cuboid/CuboidConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/cuboid/CuboidConverter.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/cuboid/CuboidConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/cuboid/CuboidConverter.java index 3d897944e..84f5d24eb 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/cuboid/CuboidConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/cuboid/CuboidConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.cuboid; +package nova.core.wrapper.mc.forge.v1_8.wrapper.cuboid; import net.minecraft.util.AxisAlignedBB; import nova.core.nativewrapper.NativeConverter; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/data/DataConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/data/DataConverter.java similarity index 99% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/data/DataConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/data/DataConverter.java index 9b0a7a85c..0cd81e4d3 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/data/DataConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/data/DataConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.data; +package nova.core.wrapper.mc.forge.v1_8.wrapper.data; import net.minecraft.nbt.NBTBase; import net.minecraft.nbt.NBTTagByte; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/EntityConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/EntityConverter.java similarity index 87% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/EntityConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/EntityConverter.java index a3c727132..f88d98c99 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/EntityConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/EntityConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.entity; +package nova.core.wrapper.mc.forge.v1_8.wrapper.entity; import net.minecraft.util.EnumParticleTypes; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @@ -27,11 +27,11 @@ import nova.core.entity.Entity; import nova.core.entity.EntityFactory; import nova.core.nativewrapper.NativeConverter; -import nova.core.wrapper.mc.forge.v18.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.backward.BWEntity; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.backward.BWEntityFX; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.FWEntity; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.MCEntityTransform; +import nova.core.wrapper.mc.forge.v1_8.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward.BWEntity; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward.BWEntityFX; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.FWEntity; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.MCEntityTransform; import nova.internal.core.Game; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/backward/BWEntity.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/backward/BWEntity.java similarity index 92% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/backward/BWEntity.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/backward/BWEntity.java index 73bc918fb..a3f03babb 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/backward/BWEntity.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/backward/BWEntity.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.entity.backward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; @@ -28,9 +28,9 @@ import nova.core.entity.Entity; import nova.core.entity.component.Living; import nova.core.entity.component.Player; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.forward.MCEntityTransform; -import nova.core.wrapper.mc.forge.v18.wrapper.inventory.BWInventory; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward.MCEntityTransform; +import nova.core.wrapper.mc.forge.v1_8.wrapper.inventory.BWInventory; import nova.internal.core.Game; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/backward/BWEntityFX.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/backward/BWEntityFX.java similarity index 98% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/backward/BWEntityFX.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/backward/BWEntityFX.java index bffc6268c..4aac482a6 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/backward/BWEntityFX.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/backward/BWEntityFX.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.entity.backward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward; import com.google.common.collect.HashBiMap; import net.minecraft.client.particle.Barrier; @@ -56,7 +56,7 @@ import net.minecraft.client.particle.MobAppearance; import net.minecraft.util.EnumParticleTypes; import net.minecraftforge.fml.client.FMLClientHandler; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; import nova.internal.core.Game; import java.util.HashMap; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/BWRigidBody.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/BWRigidBody.java similarity index 98% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/BWRigidBody.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/BWRigidBody.java index 5572a62fd..6fa215c8b 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/BWRigidBody.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/BWRigidBody.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward; import nova.core.entity.Entity; import nova.core.entity.component.RigidBody; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntity.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntity.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntity.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntity.java index 0a72773ad..e8c375e70 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntity.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntity.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward; import io.netty.buffer.ByteBuf; import net.minecraft.nbt.NBTTagCompound; @@ -33,9 +33,9 @@ import nova.core.retention.Data; import nova.core.retention.Storable; import nova.core.util.shape.Cuboid; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v18.wrapper.cuboid.CuboidConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.wrapper.cuboid.CuboidConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.data.DataConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntityFX.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntityFX.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntityFX.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntityFX.java index c5ed00c67..c2b4dae65 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntityFX.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntityFX.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; @@ -34,8 +34,8 @@ import nova.core.entity.Entity; import nova.core.entity.EntityFactory; import nova.core.util.shape.Cuboid; -import nova.core.wrapper.mc.forge.v18.render.RenderUtility; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; import nova.internal.core.Game; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntityRenderer.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntityRenderer.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntityRenderer.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntityRenderer.java index 75a85749a..230c22924 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/FWEntityRenderer.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/FWEntityRenderer.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.Tessellator; @@ -27,8 +27,8 @@ import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.client.FMLClientHandler; import nova.core.component.renderer.DynamicRenderer; -import nova.core.wrapper.mc.forge.v18.render.RenderUtility; -import nova.core.wrapper.mc.forge.v18.wrapper.render.BWModel; +import nova.core.wrapper.mc.forge.v1_8.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_8.wrapper.render.BWModel; import org.lwjgl.opengl.GL11; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/MCEntityTransform.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/MCEntityTransform.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/MCEntityTransform.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/MCEntityTransform.java index 0fc8e5469..90d834c82 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/entity/forward/MCEntityTransform.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/entity/forward/MCEntityTransform.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.entity.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.entity.forward; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraftforge.common.DimensionManager; @@ -27,7 +27,7 @@ import nova.core.util.math.RotationUtil; import nova.core.util.math.Vector3DUtil; import nova.core.world.World; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; import org.apache.commons.math3.geometry.euclidean.threed.Rotation; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/BWInventory.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/BWInventory.java similarity index 94% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/BWInventory.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/BWInventory.java index 68c8ee5a8..ac3922731 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/inventory/BWInventory.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/BWInventory.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.inventory; +package nova.core.wrapper.mc.forge.v1_8.wrapper.inventory; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import nova.core.component.inventory.Inventory; import nova.core.item.Item; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/FWInventory.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/FWInventory.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/FWInventory.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/FWInventory.java index c3f6dcf54..3377365f0 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/FWInventory.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/FWInventory.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.inventory; +package nova.core.wrapper.mc.forge.v1_8.wrapper.inventory; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; @@ -26,7 +26,7 @@ import net.minecraft.util.IChatComponent; import nova.core.component.inventory.Inventory; import nova.core.component.inventory.InventorySimple; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import java.util.Optional; @@ -108,10 +108,12 @@ public boolean isUseableByPlayer(EntityPlayer player) { } @Override - public void openInventory(EntityPlayer playerIn) {} + public void openInventory(EntityPlayer playerIn) { + } @Override - public void closeInventory(EntityPlayer playerIn) {} + public void closeInventory(EntityPlayer playerIn) { + } @Override public boolean isItemValidForSlot(int slot, ItemStack item) { @@ -127,7 +129,8 @@ public int getField(int id) { } @Override - public void setField(int id, int value) {} + public void setField(int id, int value) { + } @Override public int getFieldCount() { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/InventoryConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/InventoryConverter.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/InventoryConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/InventoryConverter.java index 716459ef8..32ce5bd85 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/inventory/InventoryConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/inventory/InventoryConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.inventory; +package nova.core.wrapper.mc.forge.v1_8.wrapper.inventory; import net.minecraft.inventory.IInventory; import nova.core.component.inventory.Inventory; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/BWItem.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/BWItem.java similarity index 94% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/BWItem.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/BWItem.java index 44f79f05d..b852e312a 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/BWItem.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/BWItem.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.item; +package nova.core.wrapper.mc.forge.v1_8.wrapper.item; import net.minecraft.client.Minecraft; import net.minecraft.item.ItemStack; @@ -26,7 +26,7 @@ import nova.core.component.renderer.StaticRenderer; import nova.core.item.Item; import nova.core.retention.Storable; -import nova.core.wrapper.mc.forge.v18.wrapper.render.backward.BWBakedModel; +import nova.core.wrapper.mc.forge.v1_8.wrapper.render.backward.BWBakedModel; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/BWItemFactory.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/BWItemFactory.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/BWItemFactory.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/BWItemFactory.java index 9c8b5c0af..3dcc268f0 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/BWItemFactory.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/BWItemFactory.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.item; +package nova.core.wrapper.mc.forge.v1_8.wrapper.item; import net.minecraft.nbt.NBTTagCompound; import nova.core.component.misc.FactoryProvider; import nova.core.item.Item; import nova.core.item.ItemFactory; import nova.core.retention.Data; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v18.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.wrapper.data.DataConverter; import nova.internal.core.Game; /** diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWItem.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWItem.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWItem.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWItem.java index 98959ee54..7c4132c51 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWItem.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWItem.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.item; +package nova.core.wrapper.mc.forge.v1_8.wrapper.item; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; @@ -47,8 +47,9 @@ public ItemFactory getItemFactory() { } @Override - public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean p_77624_4_) { - ItemWrapperMethods.super.addInformation(itemStack, player, list, p_77624_4_); + @SuppressWarnings({"unchecked", "rawtypes"}) + public void addInformation(ItemStack itemStack, EntityPlayer player, List tooltip, boolean advanced) { + ItemWrapperMethods.super.addInformation(itemStack, player, tooltip, advanced); } @Override diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWItemBlock.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWItemBlock.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWItemBlock.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWItemBlock.java index 8c35f97e3..8d7705381 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWItemBlock.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWItemBlock.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.item; +package nova.core.wrapper.mc.forge.v1_8.wrapper.item; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; @@ -26,7 +26,7 @@ import net.minecraft.util.EnumFacing; import net.minecraft.world.World; import nova.core.item.ItemFactory; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWBlock; import java.util.List; @@ -45,8 +45,9 @@ public ItemFactory getItemFactory() { } @Override - public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean p_77624_4_) { - ItemWrapperMethods.super.addInformation(itemStack, player, list, p_77624_4_); + @SuppressWarnings({"unchecked", "rawtypes"}) + public void addInformation(ItemStack itemStack, EntityPlayer player, List tooltip, boolean advanced) { + ItemWrapperMethods.super.addInformation(itemStack, player, tooltip, advanced); } @Override diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWNBTTagCompound.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWNBTTagCompound.java similarity index 88% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWNBTTagCompound.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWNBTTagCompound.java index 477ed78cc..026bac59e 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/FWNBTTagCompound.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/FWNBTTagCompound.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.item; +package nova.core.wrapper.mc.forge.v1_8.wrapper.item; import net.minecraft.nbt.NBTBase; import net.minecraft.nbt.NBTTagCompound; @@ -41,9 +41,10 @@ public Item getItem() { } @Override + @SuppressWarnings("unchecked") public NBTBase copy() { FWNBTTagCompound result = new FWNBTTagCompound(item); - getKeySet().forEach(s -> result.setTag((String) s, getTag((String) s).copy())); + ((Iterable) getKeySet()).forEach(s -> result.setTag(s, getTag(s).copy())); return result; } } diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/ItemConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/ItemConverter.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/ItemConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/ItemConverter.java index c070f49f7..e42c75294 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/ItemConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/ItemConverter.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.item; +package nova.core.wrapper.mc.forge.v1_8.wrapper.item; import com.google.common.collect.HashBiMap; import net.minecraft.item.ItemStack; @@ -35,13 +35,13 @@ import nova.core.loader.Mod; import nova.core.nativewrapper.NativeConverter; import nova.core.retention.Data; -import nova.core.wrapper.mc.forge.v18.launcher.ForgeLoadable; -import nova.core.wrapper.mc.forge.v18.launcher.NovaMinecraft; -import nova.core.wrapper.mc.forge.v18.util.WrapUtility; -import nova.core.wrapper.mc.forge.v18.util.WrapperEvent; -import nova.core.wrapper.mc.forge.v18.wrapper.CategoryConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.BlockConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.data.DataConverter; +import nova.core.wrapper.mc.forge.v1_8.launcher.ForgeLoadable; +import nova.core.wrapper.mc.forge.v1_8.launcher.NovaMinecraft; +import nova.core.wrapper.mc.forge.v1_8.util.WrapUtility; +import nova.core.wrapper.mc.forge.v1_8.util.WrapperEvent; +import nova.core.wrapper.mc.forge.v1_8.wrapper.CategoryConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.BlockConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.data.DataConverter; import nova.internal.core.Game; import nova.internal.core.launch.InitializationException; import nova.internal.core.launch.NovaLauncher; @@ -150,6 +150,10 @@ public ItemFactory get(MinecraftItemMapping minecraftItem) { /** * Saves NOVA item into a Minecraft ItemStack. + * + * @param itemStack the Minecraft ItemStack instance + * @param item The NOVA item. + * @return The updated ItemStack instance */ public ItemStack updateMCItemStack(ItemStack itemStack, Item item) { itemStack.stackSize = item.count(); @@ -164,7 +168,9 @@ public ItemStack updateMCItemStack(ItemStack itemStack, Item item) { } /** - * Register all Nova blocks + * Register all Nova items + * + * @param evt {@inheritDoc} */ @Override public void preInit(FMLPreInitializationEvent evt) { diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/ItemWrapperMethods.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/ItemWrapperMethods.java similarity index 81% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/ItemWrapperMethods.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/ItemWrapperMethods.java index 62434be0b..25ea68c18 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/ItemWrapperMethods.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/ItemWrapperMethods.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.item; +package nova.core.wrapper.mc.forge.v1_8.wrapper.item; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; @@ -26,8 +26,7 @@ import nova.core.item.Item; import nova.core.item.ItemFactory; import nova.core.util.Direction; -import nova.core.wrapper.mc.forge.v18.wrapper.entity.backward.BWEntity; -import nova.internal.core.Game; +import nova.core.wrapper.mc.forge.v1_8.wrapper.entity.backward.BWEntity; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.List; @@ -41,10 +40,17 @@ public interface ItemWrapperMethods { ItemFactory getItemFactory(); - @SuppressWarnings({"unchecked", "rawtypes"}) - default void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean p_77624_4_) { + /** + * Allows items to add custom lines of information to the mouseover description + * + * @param itemStack The ItemStack instance + * @param player The player entity + * @param tooltip All lines to display in the Item's tooltip. This is a List of Strings. + * @param advanced Whether the setting "Advanced tooltips" is enabled + */ + default void addInformation(ItemStack itemStack, EntityPlayer player, List tooltip, boolean advanced) { Item item = ItemConverter.instance().toNova(itemStack); - item.setCount(itemStack.stackSize).events.publish(new Item.TooltipEvent(Optional.of(new BWEntity(player)), list)); + item.setCount(itemStack.stackSize).events.publish(new Item.TooltipEvent(Optional.of(new BWEntity(player)), tooltip)); getItemFactory().save(item); } diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/OreDictionaryIntegration.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/OreDictionaryIntegration.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/OreDictionaryIntegration.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/OreDictionaryIntegration.java index 108766422..24ca1d645 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/item/OreDictionaryIntegration.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/item/OreDictionaryIntegration.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.item; +package nova.core.wrapper.mc.forge.v1_8.wrapper.item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; @@ -27,7 +27,7 @@ import nova.core.event.DictionaryEvent; import nova.core.item.Item; import nova.core.item.ItemDictionary; -import nova.core.wrapper.mc.forge.v18.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_8.util.ReflectionUtil; import nova.internal.core.Game; import java.util.ArrayList; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/MinecraftRecipeRegistry.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/MinecraftRecipeRegistry.java similarity index 98% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/MinecraftRecipeRegistry.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/MinecraftRecipeRegistry.java index 5a5ae8598..c4b74cb51 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/MinecraftRecipeRegistry.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/MinecraftRecipeRegistry.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; @@ -30,8 +30,8 @@ import nova.core.recipes.crafting.CraftingRecipe; import nova.core.recipes.ingredient.ItemIngredient; import nova.core.recipes.smelting.SmeltingRecipe; -import nova.core.wrapper.mc.forge.v18.util.ReflectionUtil; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import nova.internal.core.Game; import java.util.AbstractList; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/RecipeConverter.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/RecipeConverter.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/RecipeConverter.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/RecipeConverter.java index 87aa9ddfe..027cc1453 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/RecipeConverter.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/RecipeConverter.java @@ -18,10 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.backward.MCCraftingRecipe; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward.NovaCraftingGrid; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.backward.MCCraftingRecipe; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward.NovaCraftingGrid; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.item.crafting.ShapedRecipes; @@ -37,13 +37,13 @@ import nova.core.recipes.ingredient.ItemIngredient; import nova.core.recipes.ingredient.OreItemIngredient; import nova.core.recipes.ingredient.SpecificItemIngredient; -import nova.core.wrapper.mc.forge.v18.util.ReflectionUtil; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward.NovaCraftingRecipe; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward.ShapedRecipeBasic; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward.ShapedRecipeOre; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward.ShapelessRecipeBasic; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward.ShapelessRecipeOre; +import nova.core.wrapper.mc.forge.v1_8.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward.NovaCraftingRecipe; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward.ShapedRecipeBasic; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward.ShapedRecipeOre; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward.ShapelessRecipeBasic; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward.ShapelessRecipeOre; import nova.internal.core.Game; import java.util.ArrayList; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/backward/MCCraftingGrid.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/backward/MCCraftingGrid.java similarity index 96% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/backward/MCCraftingGrid.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/backward/MCCraftingGrid.java index bb21ed62e..52ca19295 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/backward/MCCraftingGrid.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/backward/MCCraftingGrid.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.backward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.backward; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; @@ -29,9 +29,9 @@ import net.minecraft.item.ItemStack; import nova.core.entity.component.Player; import nova.core.recipes.crafting.CraftingGrid; -import nova.core.wrapper.mc.forge.v18.util.ReflectionUtil; -import nova.core.wrapper.mc.forge.v18.util.WrapUtility; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.util.ReflectionUtil; +import nova.core.wrapper.mc.forge.v1_8.util.WrapUtility; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import java.util.List; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/backward/MCCraftingRecipe.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/backward/MCCraftingRecipe.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/backward/MCCraftingRecipe.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/backward/MCCraftingRecipe.java index 218983c90..29fdf45ee 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/backward/MCCraftingRecipe.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/backward/MCCraftingRecipe.java @@ -18,9 +18,9 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.backward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.backward; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward.NovaCraftingGrid; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward.NovaCraftingGrid; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import nova.core.entity.Entity; @@ -28,8 +28,8 @@ import nova.core.item.Item; import nova.core.recipes.crafting.CraftingGrid; import nova.core.recipes.crafting.CraftingRecipe; -import nova.core.wrapper.mc.forge.v18.wrapper.block.world.WorldConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.world.WorldConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingGrid.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingGrid.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingGrid.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingGrid.java index 9c054d1be..5afcf7d35 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingGrid.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingGrid.java @@ -18,13 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import nova.core.item.Item; import nova.core.recipes.crafting.CraftingGrid; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import java.util.Optional; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingGridContainer.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingGridContainer.java similarity index 95% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingGridContainer.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingGridContainer.java index 2529df1c7..69e847471 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingGridContainer.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingGridContainer.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingRecipe.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingRecipe.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingRecipe.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingRecipe.java index 43006d424..19d4df589 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/NovaCraftingRecipe.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/NovaCraftingRecipe.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.world.World; import nova.core.recipes.crafting.CraftingRecipe; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.backward.MCCraftingGrid; public class NovaCraftingRecipe implements IRecipe { private final CraftingRecipe recipe; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapedRecipeBasic.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapedRecipeBasic.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapedRecipeBasic.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapedRecipeBasic.java index 81baadc80..641473101 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapedRecipeBasic.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapedRecipeBasic.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.ShapedRecipes; import net.minecraft.world.World; import nova.core.recipes.crafting.ShapedCraftingRecipe; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.backward.MCCraftingGrid; /** * @author Stan Hebben diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapedRecipeOre.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapedRecipeOre.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapedRecipeOre.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapedRecipeOre.java index 7f3e64e0b..a36db7a79 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapedRecipeOre.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapedRecipeOre.java @@ -24,15 +24,15 @@ * and open the template in the editor. */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.oredict.ShapedOreRecipe; import nova.core.recipes.crafting.ShapedCraftingRecipe; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.backward.MCCraftingGrid; /** * @author Stan diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapelessRecipeBasic.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapelessRecipeBasic.java similarity index 89% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapelessRecipeBasic.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapelessRecipeBasic.java index 24a362d3b..7ee510d6e 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/recipes/forward/ShapelessRecipeBasic.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapelessRecipeBasic.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.ShapelessRecipes; import net.minecraft.world.World; import nova.core.recipes.crafting.ShapelessCraftingRecipe; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.backward.MCCraftingGrid; import java.util.Arrays; diff --git a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapelessRecipeOre.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapelessRecipeOre.java similarity index 89% rename from minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapelessRecipeOre.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapelessRecipeOre.java index e86dc6a29..b0a4cbed6 100644 --- a/minecraft/1.7/src/main/java/nova/core/wrapper/mc/forge/v17/wrapper/recipes/forward/ShapelessRecipeOre.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/recipes/forward/ShapelessRecipeOre.java @@ -18,15 +18,15 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper.recipes.forward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.forward; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.oredict.ShapelessOreRecipe; import nova.core.recipes.crafting.ShapelessCraftingRecipe; -import nova.core.wrapper.mc.forge.v17.wrapper.item.ItemConverter; -import nova.core.wrapper.mc.forge.v17.wrapper.recipes.backward.MCCraftingGrid; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.recipes.backward.MCCraftingGrid; /** * @author Stan Hebben diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/BWModel.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/BWModel.java similarity index 94% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/BWModel.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/BWModel.java index d8abf65f4..591c76c09 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/BWModel.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/BWModel.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.render; +package nova.core.wrapper.mc.forge.v1_8.wrapper.render; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.WorldRenderer; @@ -29,8 +29,8 @@ import nova.core.render.model.MeshModel; import nova.core.render.texture.EntityTexture; import nova.core.render.texture.Texture; -import nova.core.wrapper.mc.forge.v18.render.RenderUtility; -import nova.core.wrapper.mc.forge.v18.wrapper.assets.AssetConverter; +import nova.core.wrapper.mc.forge.v1_8.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_8.wrapper.assets.AssetConverter; import java.util.Optional; @@ -42,6 +42,9 @@ public class BWModel extends MeshModel { /** * Completes this rendering for a block. + * + * @param blockAccess The {@link IBlockAccess} instance. + * @throws NullPointerException If {@code blockAccess} is {@code null} */ public void render(IBlockAccess blockAccess) { render(Optional.of(blockAccess), Optional.empty()); diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWEmptyModel.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWEmptyModel.java similarity index 97% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWEmptyModel.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWEmptyModel.java index 2ba60ef6e..5cdff9445 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWEmptyModel.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWEmptyModel.java @@ -18,7 +18,7 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.render; +package nova.core.wrapper.mc.forge.v1_8.wrapper.render; import net.minecraft.block.state.IBlockState; import net.minecraft.client.renderer.block.model.BakedQuad; diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartBlockModel.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartBlockModel.java similarity index 80% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartBlockModel.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartBlockModel.java index 0c9da02c2..73d820112 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartBlockModel.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartBlockModel.java @@ -18,12 +18,10 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.render; +package nova.core.wrapper.mc.forge.v1_8.wrapper.render; import net.minecraft.block.state.IBlockState; import net.minecraft.client.renderer.block.model.BakedQuad; -import net.minecraft.client.renderer.block.model.ItemCameraTransforms; -import net.minecraft.client.renderer.block.model.ItemTransformVec3f; import net.minecraft.item.ItemStack; import net.minecraftforge.client.model.IFlexibleBakedModel; import net.minecraftforge.client.model.ISmartBlockModel; @@ -32,12 +30,13 @@ import nova.core.component.renderer.Renderer; import nova.core.component.renderer.StaticRenderer; import nova.core.item.Item; -import nova.core.wrapper.mc.forge.v18.wrapper.VectorConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.block.forward.FWBlock; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.block.forward.FWBlock; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import java.util.List; import java.util.Optional; + import javax.vecmath.Vector3f; /** @@ -63,9 +62,12 @@ public FWSmartBlockModel(Block block, Optional item) { this.block = block; this.item = item; // Change the default transforms to the default full Block transforms - this.itemCameraTransforms = new ItemCameraTransforms( - new ItemTransformVec3f(new Vector3f(10, -45, 170), new Vector3f(0, 0.09375f, -0.171875f), new Vector3f(0.375f, 0.375f, 0.375f)), // Third Person - ItemTransformVec3f.DEFAULT, ItemTransformVec3f.DEFAULT, ItemTransformVec3f.DEFAULT); + this.itemCameraTransforms = new net.minecraft.client.renderer.block.model.ItemCameraTransforms( + new net.minecraft.client.renderer.block.model.ItemTransformVec3f( + new Vector3f(10, -45, 170), new Vector3f(0, 0.09375f, -0.171875f), new Vector3f(0.375f, 0.375f, 0.375f)), // Third Person + net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT, + net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT, + net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT); } //Block rendering diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartItemModel.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartItemModel.java similarity index 71% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartItemModel.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartItemModel.java index 4c7108957..d93dbcada 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartItemModel.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartItemModel.java @@ -18,19 +18,18 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.render; +package nova.core.wrapper.mc.forge.v1_8.wrapper.render; import net.minecraft.client.renderer.block.model.BakedQuad; -import net.minecraft.client.renderer.block.model.ItemCameraTransforms; -import net.minecraft.client.renderer.block.model.ItemTransformVec3f; import net.minecraft.item.ItemStack; import net.minecraftforge.client.model.IFlexibleBakedModel; import net.minecraftforge.client.model.ISmartItemModel; import nova.core.component.renderer.Renderer; import nova.core.item.Item; -import nova.core.wrapper.mc.forge.v18.wrapper.item.ItemConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.item.ItemConverter; import java.util.List; + import javax.vecmath.Vector3f; /** @@ -46,11 +45,14 @@ public FWSmartItemModel(Item item) { super(); this.item = item; // Change the default transforms to the default Item transforms - this.itemCameraTransforms = new ItemCameraTransforms( - new ItemTransformVec3f(new Vector3f(0, -90, 130), new Vector3f(0, 1f / 24f, -2.75f / 16f), new Vector3f(0.9f, 0.9f, 0.9f)), // Third Person - new ItemTransformVec3f(new Vector3f(0, -135, 25/*-135/*-25*/), new Vector3f(0, 0.25f, 0.125f/*0.5f, 0.25f*/), new Vector3f(1.7f, 1.7f, 1.7f)), // First Person - ItemTransformVec3f.DEFAULT, // Head - new ItemTransformVec3f(new Vector3f(-30, 135, 0), new Vector3f(), new Vector3f(1.6F, 1.6F, 1.6F))); // GUI + this.itemCameraTransforms = new net.minecraft.client.renderer.block.model.ItemCameraTransforms( + new net.minecraft.client.renderer.block.model.ItemTransformVec3f( + new Vector3f(0, -90, 130), new Vector3f(0, 1f / 24f, -2.75f / 16f), new Vector3f(0.9f, 0.9f, 0.9f)), // Third Person + new net.minecraft.client.renderer.block.model.ItemTransformVec3f( + new Vector3f(0, -135, 25/*-135/*-25*/), new Vector3f(0, 0.25f, 0.125f/*0.5f, 0.25f*/), new Vector3f(1.7f, 1.7f, 1.7f)), // First Person + net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT, // Head + new net.minecraft.client.renderer.block.model.ItemTransformVec3f( + new Vector3f(-30, 135, 0), new Vector3f(), new Vector3f(1.6F, 1.6F, 1.6F))); // GUI } //Item rendering diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartModel.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartModel.java similarity index 91% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartModel.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartModel.java index f69d0f247..4dc8a3a47 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/FWSmartModel.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/FWSmartModel.java @@ -18,12 +18,11 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.render; +package nova.core.wrapper.mc.forge.v1_8.wrapper.render; import com.google.common.primitives.Ints; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.BakedQuad; -import net.minecraft.client.renderer.block.model.ItemCameraTransforms; import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.client.renderer.vertex.DefaultVertexFormats; import net.minecraft.client.renderer.vertex.VertexFormat; @@ -34,8 +33,8 @@ import nova.core.render.model.Vertex; import nova.core.util.Direction; import nova.core.util.math.MathUtil; -import nova.core.wrapper.mc.forge.v18.render.RenderUtility; -import nova.core.wrapper.mc.forge.v18.wrapper.DirectionConverter; +import nova.core.wrapper.mc.forge.v1_8.render.RenderUtility; +import nova.core.wrapper.mc.forge.v1_8.wrapper.DirectionConverter; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import java.util.Arrays; @@ -55,7 +54,8 @@ public abstract class FWSmartModel implements IFlexibleBakedModel { protected final VertexFormat format; // Default item transforms. Can be changed in subclasses. @SuppressWarnings("deprecation") - protected ItemCameraTransforms itemCameraTransforms = ItemCameraTransforms.DEFAULT; + protected net.minecraft.client.renderer.block.model.ItemCameraTransforms itemCameraTransforms + = net.minecraft.client.renderer.block.model.ItemCameraTransforms.DEFAULT; protected FWSmartModel(VertexFormat format) { this.format = format; @@ -153,7 +153,7 @@ public TextureAtlasSprite getTexture() { @Override @SuppressWarnings("deprecation") - public ItemCameraTransforms getItemCameraTransforms() { + public net.minecraft.client.renderer.block.model.ItemCameraTransforms getItemCameraTransforms() { return itemCameraTransforms; } } diff --git a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/backward/BWBakedModel.java b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/backward/BWBakedModel.java similarity index 93% rename from minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/backward/BWBakedModel.java rename to minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/backward/BWBakedModel.java index 38e89a224..9bcf528ea 100644 --- a/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/render/backward/BWBakedModel.java +++ b/minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v1_8/wrapper/render/backward/BWBakedModel.java @@ -18,14 +18,13 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.render.backward; +package nova.core.wrapper.mc.forge.v1_8.wrapper.render.backward; import net.minecraft.client.renderer.block.model.BakedQuad; import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.client.renderer.vertex.DefaultVertexFormats; import net.minecraft.client.renderer.vertex.VertexFormat; import net.minecraft.client.renderer.vertex.VertexFormatElement; -import net.minecraft.client.resources.model.IBakedModel; import net.minecraft.util.EnumFacing; import net.minecraft.util.ResourceLocation; import nova.core.render.Color; @@ -37,8 +36,8 @@ import nova.core.util.math.MatrixStack; import nova.core.util.math.TransformUtil; import nova.core.util.math.Vector3DUtil; -import nova.core.wrapper.mc.forge.v18.wrapper.DirectionConverter; -import nova.core.wrapper.mc.forge.v18.wrapper.assets.AssetConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.DirectionConverter; +import nova.core.wrapper.mc.forge.v1_8.wrapper.assets.AssetConverter; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; import org.apache.commons.math3.linear.LUDecomposition; @@ -59,16 +58,16 @@ public class BWBakedModel extends MeshModel { @SuppressWarnings("deprecation") - public final IBakedModel wrapped; + public final net.minecraft.client.resources.model.IBakedModel wrapped; public final VertexFormat format; - public BWBakedModel(@SuppressWarnings("deprecation") IBakedModel wrapped) { + public BWBakedModel(@SuppressWarnings("deprecation") net.minecraft.client.resources.model.IBakedModel wrapped) { this(wrapped, DefaultVertexFormats.ITEM); } @SuppressWarnings("unchecked") - public BWBakedModel(@SuppressWarnings("deprecation") IBakedModel wrapped, VertexFormat format) { + public BWBakedModel(@SuppressWarnings("deprecation") net.minecraft.client.resources.model.IBakedModel wrapped, VertexFormat format) { this.wrapped = wrapped; this.format = format; this.matrix.translate(-0.5, -0.5, -0.5); diff --git a/minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/launcher/NovaLauncherTest.java b/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/launcher/NovaLauncherTest.java similarity index 81% rename from minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/launcher/NovaLauncherTest.java rename to minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/launcher/NovaLauncherTest.java index ba977ff23..c58ecdbd7 100644 --- a/minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/launcher/NovaLauncherTest.java +++ b/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/launcher/NovaLauncherTest.java @@ -18,14 +18,14 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.launcher; +package nova.core.wrapper.mc.forge.v1_8.launcher; -import nova.core.wrapper.mc.forge.v17.depmodules.ClientModule; -import nova.core.wrapper.mc.forge.v17.depmodules.GameInfoModule; -import nova.core.wrapper.mc.forge.v17.depmodules.KeyModule; -import nova.core.wrapper.mc.forge.v17.depmodules.LanguageModule; -import nova.core.wrapper.mc.forge.v17.depmodules.SaveModule; -import nova.core.wrapper.mc.forge.v17.depmodules.TickerModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.ClientModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.GameInfoModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.KeyModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.LanguageModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.SaveModule; +import nova.core.wrapper.mc.forge.v1_8.depmodules.TickerModule; import nova.internal.core.Game; import nova.internal.core.bootstrap.DependencyInjectionEntryPoint; import nova.wrappertests.AbstractNovaLauncherTest; diff --git a/minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/wrapper/DirectionConverterTest.java b/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/DirectionConverterTest.java similarity index 95% rename from minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/wrapper/DirectionConverterTest.java rename to minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/DirectionConverterTest.java index 0a08fa08f..a92624628 100644 --- a/minecraft/1.7/src/test/java/nova/core/wrapper/mc/forge/v17/wrapper/DirectionConverterTest.java +++ b/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/DirectionConverterTest.java @@ -18,11 +18,11 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v17.wrapper; +package nova.core.wrapper.mc.forge.v1_8.wrapper; +import nova.core.wrapper.mc.forge.v1_8.wrapper.DirectionConverter; import net.minecraft.util.EnumFacing; import nova.core.util.Direction; -import nova.internal.core.Game; import org.junit.Before; import org.junit.Test; diff --git a/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/VectorConverterTest.java b/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/VectorConverterTest.java similarity index 94% rename from minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/VectorConverterTest.java rename to minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/VectorConverterTest.java index 88c68d734..946a82d77 100644 --- a/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/VectorConverterTest.java +++ b/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/VectorConverterTest.java @@ -18,8 +18,9 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper; +package nova.core.wrapper.mc.forge.v1_8.wrapper; +import nova.core.wrapper.mc.forge.v1_8.wrapper.VectorConverter; import net.minecraft.util.BlockPos; import net.minecraft.util.Vec3; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; diff --git a/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/AssetConverterTest.java b/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/AssetConverterTest.java similarity index 96% rename from minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/AssetConverterTest.java rename to minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/AssetConverterTest.java index 24a7a04cb..f8df4f84b 100644 --- a/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v18/wrapper/assets/AssetConverterTest.java +++ b/minecraft/1.8/src/test/java/nova/core/wrapper/mc/forge/v1_8/wrapper/assets/AssetConverterTest.java @@ -18,8 +18,9 @@ * along with NOVA. If not, see . */ -package nova.core.wrapper.mc.forge.v18.wrapper.assets; +package nova.core.wrapper.mc.forge.v1_8.wrapper.assets; +import nova.core.wrapper.mc.forge.v1_8.wrapper.assets.AssetConverter; import net.minecraft.util.ResourceLocation; import nova.core.render.texture.Texture; import nova.core.util.Asset; diff --git a/minecraft/build.gradle b/minecraft/build.gradle index 2f4e0648d..4b5a53779 100644 --- a/minecraft/build.gradle +++ b/minecraft/build.gradle @@ -1,16 +1,20 @@ -buildscript{ - repositories{ - mavenCentral() - maven { - name "forge" - url "http://files.minecraftforge.net/maven" +subprojects { + buildscript { + repositories { + mavenCentral() + maven { + name "forge" + url "http://files.minecraftforge.net/maven" + } + maven { + name "sonatype" + url "https://oss.sonatype.org/content/repositories/snapshots/" + } } - maven { - name "sonatype" - url "https://oss.sonatype.org/content/repositories/snapshots/" + dependencies { + // Minecraft Forge 11.14.3.1503 and newer requires ForgeGradle 2.x, + // whereas Minecraft Forge 11.14.3.1502 or older requires ForgeGradle 1.x. + classpath 'net.minecraftforge.gradle:ForgeGradle:' + property('forgeGradleVersion') } } - dependencies { - classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' - } } diff --git a/settings.gradle b/settings.gradle index 5880535a0..ddb6052d4 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,4 +1,4 @@ -rootProject.name = 'NOVA-Core' +rootProject.name = "NOVA-Core" include "minecraft:1.8" -include "minecraft:1.7" +include "minecraft:1.7.10" diff --git a/src/main/java/nova/core/component/ComponentManager.java b/src/main/java/nova/core/component/ComponentManager.java index b0913a538..9d6722c80 100755 --- a/src/main/java/nova/core/component/ComponentManager.java +++ b/src/main/java/nova/core/component/ComponentManager.java @@ -70,6 +70,10 @@ public void registerNativePassthrough(Class componentClass) /** * Internal + * + * @deprecated Internal + * @param nativeObject The native object + * @return The pass-through components */ @Deprecated public Set> getPassthroughtComponents(Object nativeObject) { diff --git a/src/main/java/nova/core/component/ComponentMap.java b/src/main/java/nova/core/component/ComponentMap.java index 5ed0aad91..58e751642 100644 --- a/src/main/java/nova/core/component/ComponentMap.java +++ b/src/main/java/nova/core/component/ComponentMap.java @@ -20,7 +20,6 @@ package nova.core.component; import nova.core.component.ComponentProvider.ComponentAdded; -import nova.core.component.ComponentProvider.ComponentRemoved; import nova.core.component.exception.ComponentException; import nova.internal.core.Game; import se.jbee.inject.Dependency; @@ -47,9 +46,9 @@ public ComponentMap(ComponentProvider provider) { /** * Adds a new component based on its superclass or interface using dependency injection. + * @param The component type. * @param componentType The interface or abstract class associated with the new component. - * @param The node type. - * @return A new node of N type. + * @return The added component. */ public final C add(Class componentType) { return add(Game.injector().resolve(Dependency.dependency(componentType))); @@ -57,8 +56,9 @@ public final C add(Class componentType) { /** * Adds a component to the provider. + * @param The component type. * @param component The component to add. - * @return the component. + * @return The added component. * @throws ComponentException when the component already exists on the block. */ @SuppressWarnings("unchecked") @@ -80,16 +80,14 @@ public final C add(C component) { /** * Adds a component to the block if it is not present. + * @param The component type. * @param component The component to add. - * @return the component. + * @return The component present on this interface */ @SuppressWarnings("unchecked") public final C getOrAdd(C component) { - if (has(component.getClass())) { - return get((Class) component.getClass()); - } - - return add(component); + return getOp((Class) component.getClass()) + .orElseGet(() -> add(component)); } /** @@ -103,6 +101,7 @@ public final boolean has(Class componentType) { /** * Removes a component from the block. + * @param The component type. * @param component The component to remove. * @return the component removed. * @throws ComponentException when the component does not exist. @@ -121,6 +120,7 @@ public final C remove(C component) { /** * Removes the component from the provider. + * @param The component type. * @param componentType the component type. * @return the component removed. * @throws ComponentException when the component does not exist. @@ -143,6 +143,7 @@ public final C remove(Class componentType) { /** * Gets an optional of the component with the specified type. + * @param The component type. * @param componentType the type to get. * @return the optional of the component found or {@code Optional.empty()}. * if the component was not found. @@ -167,6 +168,7 @@ public final Optional getOp(Class componentType) { /** * Gets the component with the specified type. + * @param The component type. * @param componentType the type to get. * @return the component. * @throws ComponentException if the component doesn't exist. @@ -177,6 +179,7 @@ public final C get(Class componentType) { /** * Gets the set of the components with the specified type. + * @param The component type. * @param componentType the type to get. * @return the set of the components. */ diff --git a/src/main/java/nova/core/component/SidedComponentMap.java b/src/main/java/nova/core/component/SidedComponentMap.java index 1d5412ca7..27ab4f214 100644 --- a/src/main/java/nova/core/component/SidedComponentMap.java +++ b/src/main/java/nova/core/component/SidedComponentMap.java @@ -34,6 +34,11 @@ /** * A class that contains all sided components. + * + * This was implemented horribly poorly, so I intend to re‑implement + * it in a better way, which will also break backwards compatibility + * for the most part. + * * @author ExE Boss */ public class SidedComponentMap extends ComponentMap { @@ -102,6 +107,7 @@ public final C add(Class componentType, Direction... di /** * Adds a component to the provider. + * @param The component type. * @param direction The direction to add the component to. * @param component The component to add. * @return the component. @@ -113,6 +119,7 @@ public final C add(C component, Direction direction) { /** * Adds a component to the provider. + * @param The component type. * @param component The component to add. * @param directions The directions to add the component to. * @return the component. @@ -126,6 +133,7 @@ public final C add(C component, Direction... directions) { /** * Adds a component to the block if it is not present. + * @param The component type. * @param component The component to add. * @param direction The direction to get or add the component to. * @return the component. @@ -156,6 +164,7 @@ public final boolean canRemove(Class componentType, Direction direction) { /** * Removes the component from the block. + * @param The component type. * @param component the component type. * @param direction The direction to remove the component from. * @return the component removed. @@ -167,6 +176,7 @@ public final C remove(C component, Direction direction) { /** * Removes the component from the provider. + * @param The component type. * @param componentType the component type. * @param direction The direction to remove the component from. * @return the component removed. @@ -179,6 +189,7 @@ public final C remove(Class componentType, Direction di /** * Gets an optional of the component with the specified type. + * @param The component type. * @param componentType the type to get. * @param direction The direction to get the component from. * @return the optional of the component found or {@code Optional.empty()}. @@ -194,6 +205,7 @@ public final Optional getOp(Class componentType, Direction direction) /** * Gets the component with the specified type. + * @param The component type. * @param componentType the type to get. * @param direction The direction to get the component from. * @return the component. @@ -205,6 +217,7 @@ public final C get(Class componentType, Direction direction) { /** * Gets the set of the components with the specified type. + * @param The component type. * @param componentType the type to get. * @param direction The direction to get the component from. * @return the set of the components. diff --git a/src/main/java/nova/core/component/Updater.java b/src/main/java/nova/core/component/Updater.java index 8700da3a5..4aa0a5008 100644 --- a/src/main/java/nova/core/component/Updater.java +++ b/src/main/java/nova/core/component/Updater.java @@ -33,7 +33,7 @@ default void update(double deltaTime) { * Update components */ if (this instanceof ComponentProvider) { - ((ComponentProvider) this).components() + ((ComponentProvider) this).components() .stream() .filter(component -> component instanceof Updater) .forEach(component -> ((Updater) component).update(deltaTime)); diff --git a/src/main/java/nova/core/component/fluid/Fluid.java b/src/main/java/nova/core/component/fluid/Fluid.java index 809e968ca..65b850919 100644 --- a/src/main/java/nova/core/component/fluid/Fluid.java +++ b/src/main/java/nova/core/component/fluid/Fluid.java @@ -54,6 +54,7 @@ public int amount() { * Sets new size of this FluidStack * Note that there can never be fluid with "zero" amount. Use Optional.empty() instead. * @param amount New size + * @return {@code this} instance */ public Fluid setAmount(int amount) { this.amount = Math.max(amount, 1); diff --git a/src/main/java/nova/core/component/fluid/FluidBlock.java b/src/main/java/nova/core/component/fluid/FluidBlock.java index f9113d0aa..cae374ab4 100644 --- a/src/main/java/nova/core/component/fluid/FluidBlock.java +++ b/src/main/java/nova/core/component/fluid/FluidBlock.java @@ -29,6 +29,7 @@ public interface FluidBlock { /** * Returns the Fluid associated with this Block. + * @return The Fluid associated with this Block. */ Optional getFluid(); @@ -38,7 +39,7 @@ public interface FluidBlock { * NOTE: The block is intended to handle its own state changes. * * @param doDrain If false, the drain will only be simulated. - * @return + * @return The drained fluid amount. */ Optional drain(boolean doDrain); } diff --git a/src/main/java/nova/core/component/inventory/InventoryException.java b/src/main/java/nova/core/component/inventory/InventoryException.java index eb81bb8e3..6ce95f9ee 100644 --- a/src/main/java/nova/core/component/inventory/InventoryException.java +++ b/src/main/java/nova/core/component/inventory/InventoryException.java @@ -23,6 +23,8 @@ import nova.core.util.exception.NovaException; public class InventoryException extends NovaException { + private static final long serialVersionUID = 1L; + public InventoryException() { super(); } diff --git a/src/main/java/nova/core/component/inventory/ItemFilter.java b/src/main/java/nova/core/component/inventory/ItemFilter.java index 02447c66c..6569a73ec 100644 --- a/src/main/java/nova/core/component/inventory/ItemFilter.java +++ b/src/main/java/nova/core/component/inventory/ItemFilter.java @@ -34,10 +34,10 @@ public interface ItemFilter extends Predicate { /** * Returns an {@link ItemFilter} that accepts an {@link Item} of the same - * type as the provided. + * type as provided. * - * @param item - * @return ItemFilter + * @param item The item type + * @return The ItemFilter instance checking the item type */ static ItemFilter of(Item item) { return item::sameItemType; @@ -47,8 +47,8 @@ static ItemFilter of(Item item) { * Returns an {@link ItemFilter} that accepts an {@link Item} of the same * type as provided. * - * @param id - * @return ItemFilter + * @param id The item ID + * @return The ItemFilter instance checking the item ID */ static ItemFilter of(String id) { return (other) -> id.equals(other.getID()); @@ -57,8 +57,8 @@ static ItemFilter of(String id) { /** * Accepts any {@link Item} that has a >= stack size than provided. * - * @param amount - * @return + * @param amount The amount + * @return The ItemFilter instance checking the amount */ static ItemFilter of(int amount) { return (other) -> other.count() >= amount; diff --git a/src/main/java/nova/core/component/misc/Collider.java b/src/main/java/nova/core/component/misc/Collider.java index af7c1fd18..c84314a5b 100644 --- a/src/main/java/nova/core/component/misc/Collider.java +++ b/src/main/java/nova/core/component/misc/Collider.java @@ -40,7 +40,7 @@ @UnsidedComponent public class Collider extends Component { - public final ComponentProvider provider; + public final ComponentProvider provider; /** * A general cuboid that represents the bounds of this object. @@ -66,7 +66,7 @@ public class Collider extends Component { */ public Supplier isOpaqueCube = isCube; - public Collider(ComponentProvider provider) { + public Collider(ComponentProvider provider) { this.provider = provider; } diff --git a/src/main/java/nova/core/component/transform/Orientation.java b/src/main/java/nova/core/component/transform/Orientation.java index 1d9f21ab2..adf9ba132 100644 --- a/src/main/java/nova/core/component/transform/Orientation.java +++ b/src/main/java/nova/core/component/transform/Orientation.java @@ -43,7 +43,6 @@ import org.apache.commons.math3.util.FastMath; import java.util.Arrays; -import java.util.Optional; import java.util.function.Predicate; /** @@ -259,6 +258,10 @@ public boolean canRotate(Direction side) { /** * Rotatable Block + * + * @param side The hit side + * @param hit The hit vector + * @return If rotation is possible from this side */ public boolean rotate(int side, Vector3D hit) { int result = getSideToRotate(side, hit); @@ -274,6 +277,10 @@ public boolean rotate(int side, Vector3D hit) { /** * Determines the side to rotate based on the hit vector on the block. + * + * @param hitSide The hit side + * @param hit The hit vector + * @return The rotation axis */ public int getSideToRotate(int hitSide, Vector3D hit) { int tBack = hitSide ^ 1; diff --git a/src/main/java/nova/core/config/ConfigException.java b/src/main/java/nova/core/config/ConfigException.java index c8828caed..7fdee443a 100644 --- a/src/main/java/nova/core/config/ConfigException.java +++ b/src/main/java/nova/core/config/ConfigException.java @@ -23,6 +23,8 @@ import nova.core.util.exception.NovaException; public class ConfigException extends NovaException { + private static final long serialVersionUID = 1L; + public ConfigException() { super(); } diff --git a/src/main/java/nova/core/deps/DependencyException.java b/src/main/java/nova/core/deps/DependencyException.java index f6df616b5..f5f399288 100644 --- a/src/main/java/nova/core/deps/DependencyException.java +++ b/src/main/java/nova/core/deps/DependencyException.java @@ -23,6 +23,8 @@ import nova.core.util.exception.NovaException; public class DependencyException extends NovaException { + private static final long serialVersionUID = 1L; + public DependencyException() { super(); } diff --git a/src/main/java/nova/core/entity/component/RigidBody.java b/src/main/java/nova/core/entity/component/RigidBody.java index a7ca3817e..89e1e69ac 100644 --- a/src/main/java/nova/core/entity/component/RigidBody.java +++ b/src/main/java/nova/core/entity/component/RigidBody.java @@ -34,6 +34,8 @@ public abstract class RigidBody extends Component implements Updater { /** * Mass in kilograms. Default is 1 kg. + * + * @return The mass of this rigid body. */ public abstract double getMass(); @@ -41,6 +43,8 @@ public abstract class RigidBody extends Component implements Updater { /** * Velocity is how fast the body is moving + * + * @return The velocity vector of this rigid body. */ public abstract Vector3D getVelocity(); @@ -52,6 +56,8 @@ public abstract class RigidBody extends Component implements Updater { /** * Gravity is an acceleration. + * + * @return The gravity vector of this rigid body. */ public abstract Vector3D getGravity(); @@ -59,6 +65,8 @@ public abstract class RigidBody extends Component implements Updater { /** * Rotation Methods + * + * @return The angular drag of this rigid body. */ public abstract double getAngularDrag(); @@ -70,6 +78,8 @@ public abstract class RigidBody extends Component implements Updater { /** * Forces + * + * @param force The force to apply. */ public abstract void addForce(Vector3D force); @@ -78,28 +88,61 @@ public abstract class RigidBody extends Component implements Updater { public abstract void addTorque(Vector3D torque); /** - * Scala sugar coating + * Alias for {@link #getMass()}. + * + * @return The mass of this rigid body. + * @see #getMass() */ public final double mass() { return getMass(); } + /** + * Alias for {@link #getVelocity()}. + * + * @return The velocity vector of this rigid body. + * @see #getVelocity() + */ public final Vector3D velocity() { return getVelocity(); } + /** + * Alias for {@link #getDrag()}. + * + * @return The drag of this rigid body. + * @see #getDrag() + */ public final double drag() { return getDrag(); } + /** + * Alias for {@link #getGravity()}. + * + * @return The gravity vector of this rigid body. + * @see #getGravity() + */ public final Vector3D gravity() { return getGravity(); } + /** + * Alias for {@link #getAngularDrag()}. + * + * @return The angular drag of this rigid body. + * @see #getAngularDrag() + */ public final double angularDrag() { return getAngularDrag(); } + /** + * Alias for {@link #getAngularVelocity()}. + * + * @return The angular velocity of this rigid body. + * @see #getAngularVelocity() + */ public final Rotation angularVelocity() { return getAngularVelocity(); } diff --git a/src/main/java/nova/core/event/bus/EventBus.java b/src/main/java/nova/core/event/bus/EventBus.java index 41688decc..b399f2c7b 100644 --- a/src/main/java/nova/core/event/bus/EventBus.java +++ b/src/main/java/nova/core/event/bus/EventBus.java @@ -216,6 +216,7 @@ public EventBinder after(String name) { * @return The event handler */ public synchronized EventListenerHandle bind(EventListener list) { + @SuppressWarnings("unchecked") EventListener listener = clazz.isPresent() ? new TypedEventListener<>(list, clazz.get()) : (EventListener) list; if (name != null && unsortedListeners.stream().filter(node -> node.name != null).anyMatch(node -> node.name.equals(name))) { diff --git a/src/main/java/nova/core/event/bus/EventCancelException.java b/src/main/java/nova/core/event/bus/EventCancelException.java index 0a2be6967..234c0394f 100644 --- a/src/main/java/nova/core/event/bus/EventCancelException.java +++ b/src/main/java/nova/core/event/bus/EventCancelException.java @@ -21,6 +21,8 @@ package nova.core.event.bus; public class EventCancelException extends EventException { + private static final long serialVersionUID = 1L; + public EventCancelException(String message, Class event) { super(message, event); } diff --git a/src/main/java/nova/core/event/bus/EventException.java b/src/main/java/nova/core/event/bus/EventException.java index 34e6a97e1..9cc423ebe 100644 --- a/src/main/java/nova/core/event/bus/EventException.java +++ b/src/main/java/nova/core/event/bus/EventException.java @@ -23,6 +23,8 @@ import nova.core.util.exception.NovaException; public class EventException extends NovaException { + private static final long serialVersionUID = 1L; + public EventException() { super(); } diff --git a/src/main/java/nova/core/game/InputManager.java b/src/main/java/nova/core/game/InputManager.java index 80920b29a..66aace24b 100644 --- a/src/main/java/nova/core/game/InputManager.java +++ b/src/main/java/nova/core/game/InputManager.java @@ -57,7 +57,8 @@ public int getNativeKeyCode(Key key) { /** * Is the key current down? * - * @return + * @param key The {@link Key key} to check. + * @return The pressed state of the key. */ public abstract boolean isKeyDown(Key key); diff --git a/src/main/java/nova/core/item/Item.java b/src/main/java/nova/core/item/Item.java index fd5ac2301..da7bffe0a 100644 --- a/src/main/java/nova/core/item/Item.java +++ b/src/main/java/nova/core/item/Item.java @@ -82,7 +82,7 @@ public int count() { /** * Sets new size of this ItemStack * @param size New size - * @return this instance + * @return {@code this} instance */ public Item setCount(int size) { count = MathUtil.clamp(size, 0, getMaxCount()); diff --git a/src/main/java/nova/core/nativewrapper/NativeManager.java b/src/main/java/nova/core/nativewrapper/NativeManager.java index df844740f..3cb100f8f 100644 --- a/src/main/java/nova/core/nativewrapper/NativeManager.java +++ b/src/main/java/nova/core/nativewrapper/NativeManager.java @@ -113,6 +113,7 @@ private > CONVERTE * Converts a native object to a nova object. This method has autocast, is DANGEROUS and may crash. * * @param nativeObject A game implementation object. + * @param The NOVA equivalent type. * @return The NOVA equivalent object. */ public T toNova(Object nativeObject) { @@ -129,6 +130,7 @@ public T toNova(Object nativeObject) { * Converts a nova object to a native object. This method has autocast, is DANGEROUS and may crash. * * @param novaObject A NOVA implementation object. + * @param The game equivalent type. * @return The game equivalent object. */ public T toNative(Object novaObject) { diff --git a/src/main/java/nova/core/network/NetworkException.java b/src/main/java/nova/core/network/NetworkException.java index d96aca679..96ba9a71f 100644 --- a/src/main/java/nova/core/network/NetworkException.java +++ b/src/main/java/nova/core/network/NetworkException.java @@ -22,7 +22,10 @@ import nova.core.util.exception.NovaException; + public class NetworkException extends NovaException { + private static final long serialVersionUID = 1L; + public NetworkException() { super(); } diff --git a/src/main/java/nova/core/network/NetworkManager.java b/src/main/java/nova/core/network/NetworkManager.java index 4adb356ce..86c663f7d 100644 --- a/src/main/java/nova/core/network/NetworkManager.java +++ b/src/main/java/nova/core/network/NetworkManager.java @@ -46,7 +46,8 @@ public NetworkManager() { * Register a packet type. A packet type handles * a specific packet handler type. * - * @param type An ID is assigned to the packet handler + * @param type The packet handler to register + * @return The ID of the packet handler */ public int register(PacketHandler type) { handlers.add(type); @@ -104,11 +105,12 @@ public void sendPacket(Object sender, Packet packet) { */ public abstract void sendPacket(Packet packet); + @SuppressWarnings("unchecked") public Packet writePacket(Object sender, Packet packet) { int packetTypeID = getPacketTypeID(getPacketType(sender)); packet.writeInt(packetTypeID); packet.writeInt(packet.getID()); - ((PacketHandler) getPacketType(sender)).write(sender, packet); + ((PacketHandler) getPacketType(sender)).write(sender, packet); return packet; } diff --git a/src/main/java/nova/core/network/NetworkTarget.java b/src/main/java/nova/core/network/NetworkTarget.java index 6e57ae613..fb16d12e1 100755 --- a/src/main/java/nova/core/network/NetworkTarget.java +++ b/src/main/java/nova/core/network/NetworkTarget.java @@ -52,7 +52,8 @@ * A side specifies the current scope of the execution environment. Use * {@link #get()} to check your current side in order to react differently * on the server or client side. Some methods may only be run on a specific - * side, see {@link #assertSide(Side)}. + * side, see {@link #assertSide(nova.core.network.NetworkTarget.Side) + * assertSide(Side)}. *

* *

@@ -195,7 +196,7 @@ public Side reduce() { /** * Shorthand for {@code Side.assertSide(this)} * - * @see #assertSide(Side) + * @see #assertSide(nova.core.network.NetworkTarget.Side) */ public void assertSide() { Side current = get(); diff --git a/src/main/java/nova/core/network/Packet.java b/src/main/java/nova/core/network/Packet.java index 2ad0c0484..16bf40ec1 100644 --- a/src/main/java/nova/core/network/Packet.java +++ b/src/main/java/nova/core/network/Packet.java @@ -47,12 +47,14 @@ public interface Packet { /** * Sets the ID of this packet, allowing it to be sent accordingly. + * @param id The packet ID * @return The packet itself. */ Packet setID(int id); /** * The player sending the packet + * @return The player sending the packet */ Player player(); @@ -193,7 +195,7 @@ default Packet write(Object data) { Packet writeString(String value); //TODO: Packet handler is bad at reading/writing enums for unknown reasons - default Packet writeEnum(Enum data) { + default Packet writeEnum(Enum data) { writeString(data.getClass().getName()); writeString(data.name()); return this; @@ -232,7 +234,7 @@ default Packet writeStorable(Storable storable) { return this; } - default Packet writeCollection(Collection col) { + default Packet writeCollection(Collection col) { writeInt(col.size()); col.forEach(obj -> { writeShort(getType(obj.getClass())); @@ -241,7 +243,7 @@ default Packet writeCollection(Collection col) { return this; } - default Packet writeOptional(Optional optional) { + default Packet writeOptional(Optional optional) { if (optional.isPresent()) { writeShort(getType(optional.get().getClass())); write(optional.get()); @@ -337,17 +339,18 @@ default Packet writeOptional(Optional optional) { String readString(); - default Enum readEnum() { + default > E readEnum() { try { String enumClassName = readString(); - Class className = (Class) Class.forName(enumClassName); + @SuppressWarnings("unchecked") + Class className = (Class) Class.forName(enumClassName); return readEnum(className); } catch (Exception e) { throw new NetworkException("Failed to read enum.", e); } } - default Enum readEnum(Class type) { + default > E readEnum(Class type) { return Enum.valueOf(type, readString()); } @@ -358,6 +361,7 @@ default Syncable readPacketHandler(Syncable handler) { /** * Reads a {@link Data} type. + * @return The data type */ default Data readData() { Data readData = new Data(); @@ -380,13 +384,14 @@ default Object readStorable() { } default List readList() { - ArrayList arrayList = new ArrayList(); + ArrayList arrayList = new ArrayList<>(); int size = readInt(); IntStream .range(0, size) .forEach(i -> { short type = readShort(); + @SuppressWarnings("unchecked") T value = (T) read(Data.dataTypes[type]); arrayList.add(value); }); @@ -402,6 +407,7 @@ default Set readSet() { .range(0, size) .forEach(i -> { short type = readShort(); + @SuppressWarnings("unchecked") T value = (T) read(Data.dataTypes[type]); set.add(value); }); @@ -409,6 +415,7 @@ default Set readSet() { return set; } + @SuppressWarnings("unchecked") default Optional readOptional() { short type = readShort(); if (type != -1) { @@ -426,6 +433,7 @@ default Vector3D readVector3D() { return new Vector3D(readDouble(), readDouble(), readDouble()); } + @SuppressWarnings("unchecked") default T read(Class clazz) { if (clazz == Boolean.class || clazz == boolean.class) { return (T) Boolean.valueOf(readBoolean()); diff --git a/src/main/java/nova/core/recipes/ingredient/ItemIngredient.java b/src/main/java/nova/core/recipes/ingredient/ItemIngredient.java index 9c37547f1..a86c320d4 100755 --- a/src/main/java/nova/core/recipes/ingredient/ItemIngredient.java +++ b/src/main/java/nova/core/recipes/ingredient/ItemIngredient.java @@ -118,8 +118,10 @@ static ItemIngredient forDictionary(String id) { Optional getTag(); /** - * Sets the ingredient tag. Ingredients can be tagged to make them easy to read from recipe functions. + * Sets the ingredient tag. Ingredients can be tagged to make them + * easy to read from recipe functions. * + * @param tag The ingredient tag * @return this instance */ public ItemIngredient withTag(String tag); diff --git a/src/main/java/nova/core/render/RenderException.java b/src/main/java/nova/core/render/RenderException.java index 8c6302c5e..a2c02138e 100644 --- a/src/main/java/nova/core/render/RenderException.java +++ b/src/main/java/nova/core/render/RenderException.java @@ -23,6 +23,8 @@ import nova.core.util.exception.NovaException; public class RenderException extends NovaException { + private static final long serialVersionUID = 1L; + public RenderException() { super(); } diff --git a/src/main/java/nova/core/render/pipeline/BlockRenderPipeline.java b/src/main/java/nova/core/render/pipeline/BlockRenderPipeline.java index 2873a8909..a6f4f7d6a 100644 --- a/src/main/java/nova/core/render/pipeline/BlockRenderPipeline.java +++ b/src/main/java/nova/core/render/pipeline/BlockRenderPipeline.java @@ -138,7 +138,7 @@ public BlockRenderPipeline withBounds(Cuboid bounds) { * * @param renderSide A predicate that takes a {@link nova.core.util.Direction} * and returns a boolean specifying whether or not the side should render. - * @return + * @return this */ public BlockRenderPipeline filter(Predicate renderSide) { this.renderSide = renderSide; diff --git a/src/main/java/nova/core/render/pipeline/ItemRenderPipeline.java b/src/main/java/nova/core/render/pipeline/ItemRenderPipeline.java index a1f915d4e..9af5a1ee4 100644 --- a/src/main/java/nova/core/render/pipeline/ItemRenderPipeline.java +++ b/src/main/java/nova/core/render/pipeline/ItemRenderPipeline.java @@ -43,7 +43,7 @@ */ public class ItemRenderPipeline extends RenderPipeline { - public final ComponentProvider componentProvider; + public final ComponentProvider componentProvider; /** * Called to get the texture of this item. @@ -64,7 +64,7 @@ public class ItemRenderPipeline extends RenderPipeline { */ public Supplier colorMultiplier = () -> Color.white; - public ItemRenderPipeline(ComponentProvider componentProvider) { + public ItemRenderPipeline(ComponentProvider componentProvider) { this.componentProvider = componentProvider; size = () -> new Vector2D(1, 1); consumer = model -> model.addChild(draw(new MeshModel())); diff --git a/src/main/java/nova/core/retention/Data.java b/src/main/java/nova/core/retention/Data.java index 1429771ff..a93fbeb02 100755 --- a/src/main/java/nova/core/retention/Data.java +++ b/src/main/java/nova/core/retention/Data.java @@ -219,11 +219,12 @@ public static T unserialize(Data data) { * Loads an object from its stored data, given its class. * @param clazz - The class to load * @param data - The data + * @param - The type * @return The object loaded with given data. */ public static T unserialize(Class clazz, Data data) { try { - T storable = clazz.newInstance(); + T storable = clazz.getDeclaredConstructor().newInstance(); storable.load(data); return storable; } catch (Exception e) { @@ -324,7 +325,7 @@ public T getStorable(String key) { try { @SuppressWarnings("unchecked") Class storableClass = (Class) Class.forName(storableData.className); - T obj = storableClass.newInstance(); + T obj = storableClass.getDeclaredConstructor().newInstance(); obj.load(storableData); return obj; } catch (Exception e) { diff --git a/src/main/java/nova/core/retention/Storable.java b/src/main/java/nova/core/retention/Storable.java index 3efa05639..28a0e3a7a 100644 --- a/src/main/java/nova/core/retention/Storable.java +++ b/src/main/java/nova/core/retention/Storable.java @@ -88,7 +88,7 @@ default void load(Data data) { if (List.class.isAssignableFrom(type)) { field.set(this, Data.unserialize((Data) value)); } else { - Collection collection = (Collection) type.newInstance(); + Collection collection = (Collection) type.getDeclaredConstructor().newInstance(); field.set(this, collection.addAll(Data.unserialize((Data) value))); } } else { diff --git a/src/main/java/nova/core/util/ClassLoaderUtil.java b/src/main/java/nova/core/util/ClassLoaderUtil.java index c3e4a8e1b..b9dffb23a 100644 --- a/src/main/java/nova/core/util/ClassLoaderUtil.java +++ b/src/main/java/nova/core/util/ClassLoaderUtil.java @@ -61,6 +61,8 @@ private static synchronized void setAddURL() { } public static class ClassLoaderException extends NovaException { + private static final long serialVersionUID = 1L; + public ClassLoaderException() { super(); } diff --git a/src/main/java/nova/core/util/EnumSelector.java b/src/main/java/nova/core/util/EnumSelector.java index a557110b8..40ca597b2 100644 --- a/src/main/java/nova/core/util/EnumSelector.java +++ b/src/main/java/nova/core/util/EnumSelector.java @@ -52,6 +52,8 @@ private EnumSelector(Class enumClass) { /** * Creates a new instance of EnumSelector for the given type. * + * @param The enum type + * @param enumClass The enum class for which to create an EnumSelector. * @return an instance of EnumSelector for the given type. */ public static > EnumSelector of(Class enumClass) { diff --git a/src/main/java/nova/core/util/Pipeline.java b/src/main/java/nova/core/util/Pipeline.java index dd8da422e..18cfc390a 100644 --- a/src/main/java/nova/core/util/Pipeline.java +++ b/src/main/java/nova/core/util/Pipeline.java @@ -6,6 +6,7 @@ /** * A series of methods that transform an object as it is passed through the {@link Pipeline}. * @author Calclavia + * @param The pipeline type. */ public class Pipeline { protected Optional> prev = Optional.empty(); @@ -29,6 +30,7 @@ public Pipeline(Consumer consumer) { /** * Sets the given pipeline to be piped after this render stream. * This method essentially allow you to switch between processes in the pipeline. + * @param The new pipeline type. * @param stream The stream to apply. * @return The new RenderStream */ diff --git a/src/main/java/nova/core/util/ProgressBar.java b/src/main/java/nova/core/util/ProgressBar.java index 6d5b68c9e..12239f69a 100644 --- a/src/main/java/nova/core/util/ProgressBar.java +++ b/src/main/java/nova/core/util/ProgressBar.java @@ -58,6 +58,8 @@ protected void stepImpl(String message) {} /** * Check if the progress bar has been finished. + * + * @return If the progress bar has finished. */ boolean isFinished(); diff --git a/src/main/java/nova/core/util/RayTracer.java b/src/main/java/nova/core/util/RayTracer.java index 79ac4d66e..69e4312f5 100644 --- a/src/main/java/nova/core/util/RayTracer.java +++ b/src/main/java/nova/core/util/RayTracer.java @@ -89,6 +89,7 @@ public Stream rayTraceAll(World world) { /** * Check all blocks that are in a line + * @param world The world to perform the ray trace in. * @return The blocks ray traced in the order from closest to furthest. */ public Stream rayTraceBlocks(World world) { @@ -171,7 +172,9 @@ public Optional rayTrace(Cuboid cuboid) { /** * Ray traces a cuboid + * @param the result type * @param cuboid The cuboid in absolute world coordinates + * @param resultMapper the {@link RayTraceResult} converter * @return The ray trace result if the ray intersects the cuboid */ public Optional rayTrace(Cuboid cuboid, BiFunction resultMapper) { diff --git a/src/main/java/nova/core/util/ReflectionUtil.java b/src/main/java/nova/core/util/ReflectionUtil.java index 4ffb81317..47c7a104c 100644 --- a/src/main/java/nova/core/util/ReflectionUtil.java +++ b/src/main/java/nova/core/util/ReflectionUtil.java @@ -267,7 +267,7 @@ public static T newInstanceMatching(Class clazz, Object... args) { if (args != null && args.length > 0) { return newInstanceMatching(findMatchingConstructor(clazz, types(args)).get(), args); } else { - return clazz.newInstance(); + return clazz.getDeclaredConstructor().newInstance(); } } catch (Exception e) { throw new ReflectionException(e); @@ -279,7 +279,7 @@ public static T newInstance(Class clazz, Object... args) { if (args != null && args.length > 0) { return clazz.getConstructor(types(args)).newInstance(args); } - return clazz.newInstance(); + return clazz.getDeclaredConstructor().newInstance(); } catch (Exception e) { throw new ReflectionException(e); } @@ -304,6 +304,7 @@ public static void forEachAnnotatedField(Class The annotation type * @param annotation Your annotation class. * @param clazz Class to search through. * @return An ordered map of annotated fields and their annotations from the @@ -329,6 +330,8 @@ public static void forEachRecursiveAnnotatedField(Class Type contained in the list */ public class EvictingList extends LinkedList { + private static final long serialVersionUID = 1L; + private final int limit; /** diff --git a/src/main/java/nova/core/util/collection/TreeNode.java b/src/main/java/nova/core/util/collection/TreeNode.java index 3a7b610cd..b63839889 100644 --- a/src/main/java/nova/core/util/collection/TreeNode.java +++ b/src/main/java/nova/core/util/collection/TreeNode.java @@ -36,7 +36,7 @@ * * @param - Self type */ -public class TreeNode implements Iterable { +public class TreeNode> implements Iterable { /** * The children of the node. @@ -71,9 +71,10 @@ public void setParent(Optional parent) { * @param node The childnode to add * @return The merged node */ + @SuppressWarnings("unchecked") public S addChild(S node) { children.add(node); - node.parent = Optional.of(this); + node.parent = Optional.of((S) this); return node; } diff --git a/src/main/java/nova/core/util/exception/RegistrationException.java b/src/main/java/nova/core/util/exception/RegistrationException.java index 320470054..6daa8bc63 100644 --- a/src/main/java/nova/core/util/exception/RegistrationException.java +++ b/src/main/java/nova/core/util/exception/RegistrationException.java @@ -24,6 +24,8 @@ * An exception thrown when registration in a manager, dictionary or registry fails. */ public class RegistrationException extends NovaException { + private static final long serialVersionUID = 1L; + public RegistrationException() { super(); } diff --git a/src/main/java/nova/core/util/math/MatrixStack.java b/src/main/java/nova/core/util/math/MatrixStack.java index de9db256f..addd37d89 100755 --- a/src/main/java/nova/core/util/math/MatrixStack.java +++ b/src/main/java/nova/core/util/math/MatrixStack.java @@ -42,8 +42,8 @@ public MatrixStack() { * Clone construcotr of MatrixStack * @param clone instance to be cloned */ + @SuppressWarnings("unchecked") public MatrixStack(MatrixStack clone) { - //noinspection unchecked this.stack = (Stack) clone.stack.clone(); this.current = clone.current.copy(); } diff --git a/src/main/java/nova/core/util/math/MatrixUtil.java b/src/main/java/nova/core/util/math/MatrixUtil.java index a4fbbeea7..8bf86032e 100755 --- a/src/main/java/nova/core/util/math/MatrixUtil.java +++ b/src/main/java/nova/core/util/math/MatrixUtil.java @@ -55,6 +55,8 @@ public static RealMatrix augmentWithIdentity(RealMatrix matrix, int dimensions) // Little cheat. private static Localizable of(String string) { return new Localizable() { + private static final long serialVersionUID = 1L; + @Override public String getSourceString() { return string; diff --git a/src/main/java/nova/core/util/math/RotationUtil.java b/src/main/java/nova/core/util/math/RotationUtil.java index eac0e92b4..45e9b1359 100755 --- a/src/main/java/nova/core/util/math/RotationUtil.java +++ b/src/main/java/nova/core/util/math/RotationUtil.java @@ -79,7 +79,10 @@ public static int rotateSide(int s, int r) { } /** - * Reverse of rotateSide + * Rotates a Direction global size into a relative side. + * @param s1 Side 1 + * @param s2 Side 2 + * @return The Direction ordinal from 0-5. */ public static int rotationTo(int s1, int s2) { if ((s1 & 6) == (s2 & 6)) { @@ -106,6 +109,11 @@ public static Direction getRelativeSide(Direction front, Direction side) { * Wrapper function that simply calls {@code slerp(a, b, t, true)}. *

* See {@link #slerp(Rotation, Rotation, double, boolean)} for details. + * + * @param a the first Rotation + * @param b the second Rotation + * @param t the temporal interpolation parameter + * @return The slerp interpolation of Rotations {@code a} and {@code b}, at time {@code t}. */ public static Rotation slerp(Rotation a, Rotation b, double t) { return slerp(a, b, t, true); @@ -123,11 +131,12 @@ public static Rotation slerp(Rotation a, Rotation b, double t) { * "flipping" the source Rotation if needed. * @param a the first Rotation * @param b the second Rotation - * @param t the t interpolation parameter + * @param t the temporal interpolation parameter * @param allowFlip tells whether or not the interpolation allows axis flip + * @return The slerp interpolation of Rotations {@code a} and {@code b}, at time {@code t}. */ public static Rotation slerp(Rotation a, Rotation b, double t, boolean allowFlip) { - // Warning: this method should not normalize the Rotation + // TODO: this method should not normalize the Rotation double cosAngle = dotProduct(a, b); double c1, c2; @@ -156,7 +165,9 @@ public static Rotation slerp(Rotation a, Rotation b, double t, boolean allowFlip * Returns the "dot" product of this Quaternion and {@code b}: *

* {@code this.x * b.x + this.y * b.y + this.z * b.z + this.w * b.w} + * @param a This * @param b the Quaternion + * @return The dot product */ public static double dotProduct(Rotation a, Rotation b) { return a.getQ0() * b.getQ0() + a.getQ1() * b.getQ1() + a.getQ2() * b.getQ2() + a.getQ3() * b.getQ3(); diff --git a/src/main/java/nova/core/util/registry/Factory.java b/src/main/java/nova/core/util/registry/Factory.java index fd615b168..66c21e51c 100644 --- a/src/main/java/nova/core/util/registry/Factory.java +++ b/src/main/java/nova/core/util/registry/Factory.java @@ -22,9 +22,7 @@ import net.jodah.typetools.TypeResolver; import nova.core.util.Identifiable; -import nova.internal.core.Game; import nova.internal.core.util.InjectionUtil; -import se.jbee.inject.Dependency; import java.util.Optional; import java.util.function.Function; diff --git a/src/main/java/nova/core/world/World.java b/src/main/java/nova/core/world/World.java index d89565221..8b551f576 100644 --- a/src/main/java/nova/core/world/World.java +++ b/src/main/java/nova/core/world/World.java @@ -77,29 +77,45 @@ public boolean removeBlock(Vector3D position) { /** * Creates an entity * @param factory The entity factory + * @return The added entity */ public abstract Entity addEntity(EntityFactory factory); /** * Creates an entity that holds an item + * @param position The position to add the item to * @param item The item + * @return The added entity */ public abstract Entity addEntity(Vector3D position, Item item); /** * Creates an entity only on the client side. * For example, particle effects. + *

+ * TODO: Replace this with an actual particle system. + *

+ * @param factory The entity factory + * @return The added entity */ public abstract Entity addClientEntity(EntityFactory factory); /** * Creates an entity only on the client side. * For example, particle effects. + *

+ * TODO: Replace this with an actual particle system. + *

+ * @param The entity type + * @param entity The entity to add + * @return The added entity */ public abstract T addClientEntity(T entity); /** * Destroys an entity, removing it from the world. + * + * @param entity The entity to remove */ public abstract void removeEntity(Entity entity); diff --git a/src/main/java/nova/internal/core/Game.java b/src/main/java/nova/internal/core/Game.java index 68485291f..e2abc6b5d 100644 --- a/src/main/java/nova/internal/core/Game.java +++ b/src/main/java/nova/internal/core/Game.java @@ -75,15 +75,11 @@ public class Game { /** * The synchronized ticker that uses the same thread as the game. - * - * This is @deprecated, use syncTicker() instead. */ private final UpdateTicker.SynchronizedTicker syncTicker; /** * The thread ticker that runs on NOVA's thread. - * - * This is @deprecated, use threadTicker() instead. */ private final UpdateTicker.ThreadTicker threadTicker; @@ -224,6 +220,11 @@ public static FluidManager fluids() { /** * The synchronized ticker that uses the same thread as the game. + * + * @return The synchronous game ticker, which is synchronized + * with the game’s tick speed. + *

+ * For Minecraft, this is 20hz. */ public static UpdateTicker.SynchronizedTicker syncTicker() { return instance.syncTicker; @@ -231,6 +232,9 @@ public static UpdateTicker.SynchronizedTicker syncTicker() { /** * The thread ticker that runs on NOVA's thread. + * + * @return The asynchronous NOVA ticker, + * which runs as fast as possible. */ public static UpdateTicker.ThreadTicker threadTicker() { return instance.threadTicker; diff --git a/src/main/java/nova/internal/core/di/DICoreModule.java b/src/main/java/nova/internal/core/di/DICoreModule.java index 0ecefbfc9..fb8a77d82 100644 --- a/src/main/java/nova/internal/core/di/DICoreModule.java +++ b/src/main/java/nova/internal/core/di/DICoreModule.java @@ -25,13 +25,9 @@ import java.util.function.Supplier; public class DICoreModule extends BinderModule { - - @Override protected void declare() { - //install(BuildinBundle.PROVIDER); //To allow injection of providers - starbind(Supplier.class).to(new SupplierSupplier()); + starbind(Supplier.class).to(new SupplierModule.SupplierSupplier()); } - } diff --git a/src/main/java/nova/internal/core/di/SupplierModule.java b/src/main/java/nova/internal/core/di/SupplierModule.java index 8887984b0..0ebcd1b89 100644 --- a/src/main/java/nova/internal/core/di/SupplierModule.java +++ b/src/main/java/nova/internal/core/di/SupplierModule.java @@ -16,7 +16,9 @@ * * You should have received a copy of the GNU General Public License * along with NOVA. If not, see . - */package nova.internal.core.di; + */ + +package nova.internal.core.di; import se.jbee.inject.Dependency; import se.jbee.inject.Injector; @@ -25,20 +27,28 @@ import static se.jbee.inject.util.ToString.describe; -final class SupplierSupplier implements Supplier> { +/** + * A dummy class containing the {@link SupplierSupplier} to match + * the rest of the NOVA Dependency Injection setup. + * + * @author ExE Boss + */ +public final class SupplierModule { - @Override - public java.util.function.Supplier supply( Dependency> dependency, Injector injector ) { - Dependency providedType = dependency.onTypeParameter(); - if ( !dependency.getName().isDefault() ) { - providedType = providedType.named( dependency.getName() ); + public static final class SupplierSupplier implements Supplier> { + @Override + public java.util.function.Supplier supply(Dependency> dependency, Injector injector) { + Dependency providedType = dependency.onTypeParameter(); + if (!dependency.getName().isDefault()) { + providedType = providedType.named(dependency.getName()); + } + final Dependency finalProvidedType = providedType; + return () -> SuppliedBy.lazyProvider(finalProvidedType.uninject().ignoredExpiry(), injector).provide(); } - final Dependency finalProvidedType = providedType; - return () -> SuppliedBy.lazyProvider(finalProvidedType.uninject().ignoredExpiry(), injector).provide(); - } - @Override - public String toString() { - return describe( "supplies", java.util.function.Supplier.class ); + @Override + public String toString() { + return describe("supplies", java.util.function.Supplier.class); + } } } diff --git a/src/main/java/nova/internal/core/launch/InitializationException.java b/src/main/java/nova/internal/core/launch/InitializationException.java index 5c5676315..abc80a853 100644 --- a/src/main/java/nova/internal/core/launch/InitializationException.java +++ b/src/main/java/nova/internal/core/launch/InitializationException.java @@ -21,6 +21,8 @@ import nova.core.util.exception.NovaException; public class InitializationException extends NovaException { + private static final long serialVersionUID = 1L; + public InitializationException() { super(); } diff --git a/src/main/java/nova/internal/core/util/InjectionUtil.java b/src/main/java/nova/internal/core/util/InjectionUtil.java index 2340f891a..3deaea4ad 100644 --- a/src/main/java/nova/internal/core/util/InjectionUtil.java +++ b/src/main/java/nova/internal/core/util/InjectionUtil.java @@ -185,9 +185,9 @@ public static T newInstance(Class classToConstruct, boolean printStackTra * @param The object type * @param classToConstruct The class to construct * @return A new instance of the class - * @throws InstantiationException - * @throws IllegalAccessException - * @throws InvocationTargetException + * @throws InstantiationException If an {@link InstantiationException} occurs + * @throws IllegalAccessException If an {@link IllegalAccessException} occurs + * @throws InvocationTargetException If an {@link InvocationTargetException} occurs * @see Constructor#newInstance(java.lang.Object...) */ @SuppressWarnings("unchecked") @@ -204,9 +204,9 @@ public static T newInstanceOrThrow(Class classToConstruct) throws Instant * @param classToConstruct The class to construct * @param mapping Custom DI mapping * @return A new instance of the class - * @throws InstantiationException - * @throws IllegalAccessException - * @throws InvocationTargetException + * @throws InstantiationException If an {@link InstantiationException} occurs + * @throws IllegalAccessException If an {@link IllegalAccessException} occurs + * @throws InvocationTargetException If an {@link InvocationTargetException} occurs * @see Constructor#newInstance(java.lang.Object...) */ @SuppressWarnings("unchecked") diff --git a/src/main/java/nova/internal/core/util/TopologicalSort.java b/src/main/java/nova/internal/core/util/TopologicalSort.java index e1c65c78a..d6abcffe9 100644 --- a/src/main/java/nova/internal/core/util/TopologicalSort.java +++ b/src/main/java/nova/internal/core/util/TopologicalSort.java @@ -21,7 +21,8 @@ public class TopologicalSort { * Sort the input graph into a topologically sorted list * * Uses the reverse depth first search as outlined in ... - * @param graph + * @param The type + * @param graph The graph to sort * @return The sorted list. */ public static List topologicalSort(DirectedGraph graph) { @@ -64,6 +65,7 @@ public static void explore(T node, DirectedGraph graph, List sortedRes } throw new NovaException("There was a cycle detected in the input graph, sorting is not possible", node) { + private static final long serialVersionUID = 1L; }; }