diff --git a/.gradle/4.0/fileChanges/last-build.bin b/.gradle/4.0/fileChanges/last-build.bin
new file mode 100644
index 0000000..f76dd23
Binary files /dev/null and b/.gradle/4.0/fileChanges/last-build.bin differ
diff --git a/.gradle/4.0/fileContent/annotation-processors.bin b/.gradle/4.0/fileContent/annotation-processors.bin
new file mode 100644
index 0000000..7d1efb0
Binary files /dev/null and b/.gradle/4.0/fileContent/annotation-processors.bin differ
diff --git a/.gradle/4.0/fileContent/fileContent.lock b/.gradle/4.0/fileContent/fileContent.lock
new file mode 100644
index 0000000..55b54bb
Binary files /dev/null and b/.gradle/4.0/fileContent/fileContent.lock differ
diff --git a/.gradle/4.0/fileHashes/fileHashes.bin b/.gradle/4.0/fileHashes/fileHashes.bin
new file mode 100644
index 0000000..75ca2e9
Binary files /dev/null and b/.gradle/4.0/fileHashes/fileHashes.bin differ
diff --git a/.gradle/4.0/fileHashes/fileHashes.lock b/.gradle/4.0/fileHashes/fileHashes.lock
new file mode 100644
index 0000000..fd0d802
Binary files /dev/null and b/.gradle/4.0/fileHashes/fileHashes.lock differ
diff --git a/.gradle/4.0/fileHashes/resourceHashesCache.bin b/.gradle/4.0/fileHashes/resourceHashesCache.bin
new file mode 100644
index 0000000..9293a58
Binary files /dev/null and b/.gradle/4.0/fileHashes/resourceHashesCache.bin differ
diff --git a/.gradle/4.0/taskHistory/fileSnapshots.bin b/.gradle/4.0/taskHistory/fileSnapshots.bin
new file mode 100644
index 0000000..f1457c3
Binary files /dev/null and b/.gradle/4.0/taskHistory/fileSnapshots.bin differ
diff --git a/.gradle/4.0/taskHistory/taskHistory.bin b/.gradle/4.0/taskHistory/taskHistory.bin
new file mode 100644
index 0000000..cf8345d
Binary files /dev/null and b/.gradle/4.0/taskHistory/taskHistory.bin differ
diff --git a/.gradle/4.0/taskHistory/taskHistory.lock b/.gradle/4.0/taskHistory/taskHistory.lock
new file mode 100644
index 0000000..87aa60b
Binary files /dev/null and b/.gradle/4.0/taskHistory/taskHistory.lock differ
diff --git a/.gradle/buildOutputCleanup/built.bin b/.gradle/buildOutputCleanup/built.bin
new file mode 100644
index 0000000..e69de29
diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties
new file mode 100644
index 0000000..ccc2133
--- /dev/null
+++ b/.gradle/buildOutputCleanup/cache.properties
@@ -0,0 +1,2 @@
+#Tue Mar 31 09:22:45 AEDT 2020
+gradle.version=4.0
diff --git a/.gradle/buildOutputCleanup/cache.properties.lock b/.gradle/buildOutputCleanup/cache.properties.lock
new file mode 100644
index 0000000..40fdece
--- /dev/null
+++ b/.gradle/buildOutputCleanup/cache.properties.lock
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/.gradle/gradle.log b/.gradle/gradle.log
new file mode 100644
index 0000000..8f9a754
--- /dev/null
+++ b/.gradle/gradle.log
@@ -0,0 +1 @@
+This mapping 'stable_20' was designed for MC 1.8.8! Use at your own peril.
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..62e6831
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..174f163
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..0897f38
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 0000000..e96534f
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..074d010
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1585606742781
+
+
+ 1585606742781
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..71882fd
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,106 @@
+buildscript {
+ repositories {
+ jcenter()
+ maven { url = "https://files.minecraftforge.net/maven" }
+ maven { url = "https://repo.spongepowered.org/maven" }
+ }
+ dependencies {
+ classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
+ classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
+ classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
+ }
+}
+
+apply plugin: 'java'
+apply plugin: 'net.minecraftforge.gradle.forge'
+apply plugin: 'org.spongepowered.mixin'
+apply plugin: 'com.github.johnrengelman.shadow'
+
+sourceCompatibility = 1.8
+targetCompatibility = 1.8
+
+version = "1.0"
+group= "io.github.moulberry"
+archivesBaseName = "SBCustomMobTex"
+String modid = "sbcustommobtex"
+String mixinClassifier = "dep"
+
+minecraft {
+ version = "1.8.9-11.15.1.2318-1.8.9"
+ runDir = "run"
+ mappings = "stable_20"
+}
+
+repositories {
+ jcenter()
+ maven { url 'https://repo.spongepowered.org/maven/' }
+}
+
+dependencies {
+ compile('org.spongepowered:mixin:0.7.11-SNAPSHOT')
+ compile('org.kohsuke:github-api:1.108')
+ compile('com.fasterxml.jackson.core:jackson-core:2.10.2')
+}
+
+mixin {
+ add sourceSets.main, "mixins.${modid}.refmap.json"
+}
+
+jar {
+ manifest.attributes(
+ 'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
+ 'MixinConfigs': "mixins.${modid}.json",
+ 'FMLCorePluginContainsFMLMod': true,
+ "ForceLoadAsMod": true
+ )
+}
+
+shadowJar {
+ dependencies {
+ include(dependency('org.spongepowered:mixin:0.7.11-SNAPSHOT'))
+ }
+
+ exclude 'module-info.class'
+ exclude 'dummyThing'
+ exclude 'LICENSE.txt'
+
+ classifier = mixinClassifier
+}
+
+reobf {
+ shadowJar {
+ mappingType = 'SEARGE'
+ }
+}
+
+
+task runClientFix {
+ doLast {
+ String fileName = "${archivesBaseName}-${version}-${mixinClassifier}.jar"
+ ant.move file: "${buildDir}/libs/${fileName}", tofile: "${projectDir}/run/mods/${fileName}"
+ ant.delete file: "${buildDir}/libs/${archivesBaseName}-${version}.jar"
+ }
+}
+
+runClient {
+ standardInput = System.in
+}
+
+build.dependsOn(shadowJar)
+runClient.dependsOn(build)
+runClient.dependsOn(runClientFix)
+
+processResources
+{
+ inputs.property "version", project.version
+ inputs.property "mcversion", project.minecraft.version
+
+ from(sourceSets.main.resources.srcDirs) {
+ include 'mcmod.info'
+ expand 'version':project.version, 'mcversion':project.minecraft.version
+ }
+
+ from(sourceSets.main.resources.srcDirs) {
+ exclude 'mcmod.info'
+ }
+}
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.resources/.projects/MDKExample/.location b/eclipse/.metadata/.plugins/org.eclipse.core.resources/.projects/MDKExample/.location
new file mode 100644
index 0000000..e69de29
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.resources/.root/0.tree b/eclipse/.metadata/.plugins/org.eclipse.core.resources/.root/0.tree
new file mode 100644
index 0000000..c64a62a
Binary files /dev/null and b/eclipse/.metadata/.plugins/org.eclipse.core.resources/.root/0.tree differ
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..466d7f9
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+#Sun Jun 05 18:58:07 CEST 2011
+version=1
+eclipse.preferences.version=1
+refresh.enabled=true
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
new file mode 100644
index 0000000..94c5676
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
@@ -0,0 +1,7 @@
+#Sun Jun 05 19:03:53 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.debug.ui.UseContextualLaunch=false
+Console.highWaterMark=88000
+org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=\r\n\r\n
+org.eclipse.debug.ui.user_view_bindings=\r\n\r\n\r\n\r\n\r\n\r\n
+StringVariablePreferencePage=130,107,107,86,
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.usagedata.gathering.prefs b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.usagedata.gathering.prefs
new file mode 100644
index 0000000..333b991
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.usagedata.gathering.prefs
@@ -0,0 +1,3 @@
+#Sun Jun 05 18:58:07 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.epp.usagedata.gathering.enabled=false
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..12ec368
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,14 @@
+#Sun Sep 18 16:44:39 NZST 2011
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=ignore
+org.eclipse.jdt.core.compiler.problem.deprecation=ignore
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
+org.eclipse.jdt.core.compiler.problem.unusedImport=ignore
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs
new file mode 100644
index 0000000..316ef6f
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs
@@ -0,0 +1,4 @@
+#Sun Jun 05 18:58:05 CEST 2011
+spacesForTabs=true
+eclipse.preferences.version=1
+overviewRuler_migration=migrated_3.1
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
new file mode 100644
index 0000000..ae368ab
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
@@ -0,0 +1,9 @@
+#Sun Jun 05 18:58:07 CEST 2011
+IMPORT_FILES_AND_FOLDERS_MODE=prompt
+IMPORT_FILES_AND_FOLDERS_VIRTUAL_FOLDER_MODE=prompt
+SAVE_ALL_BEFORE_BUILD=true
+eclipse.preferences.version=1
+tipsAndTricks=true
+platformState=1287081747687
+quickStart=false
+PROBLEMS_FILTERS_MIGRATE=true
diff --git a/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
new file mode 100644
index 0000000..cbc5953
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
@@ -0,0 +1,3 @@
+#Sun Jun 05 18:50:08 CEST 2011
+eclipse.preferences.version=1
+showIntro=false
diff --git a/eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Client.launch b/eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Client.launch
new file mode 100644
index 0000000..61b8b47
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Client.launch
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Server.launch b/eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Server.launch
new file mode 100644
index 0000000..c34d27a
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Server.launch
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/eclipse/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml b/eclipse/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml
new file mode 100644
index 0000000..1208f60
--- /dev/null
+++ b/eclipse/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..30d399d
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..671daab
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Sep 14 12:28:28 PDT 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000..91a7e26
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ 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=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz 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.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+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
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/src/main/java/io/github/moulberry/SBCustomMobTex.java b/src/main/java/io/github/moulberry/SBCustomMobTex.java
new file mode 100644
index 0000000..f758405
--- /dev/null
+++ b/src/main/java/io/github/moulberry/SBCustomMobTex.java
@@ -0,0 +1,109 @@
+package io.github.moulberry;
+
+import com.google.common.collect.Sets;
+import com.mojang.authlib.Agent;
+import com.mojang.authlib.exceptions.AuthenticationException;
+import com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService;
+import com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication;
+import net.minecraft.client.Minecraft;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityArmorStand;
+import net.minecraft.init.Blocks;
+import net.minecraft.scoreboard.ScoreObjective;
+import net.minecraft.scoreboard.Scoreboard;
+import net.minecraft.util.Session;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import net.minecraftforge.fml.common.Mod;
+import net.minecraftforge.fml.common.Mod.EventHandler;
+import net.minecraftforge.fml.common.event.FMLInitializationEvent;
+import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
+import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
+import net.minecraftforge.fml.common.gameevent.TickEvent;
+import org.apache.commons.lang3.tuple.MutablePair;
+import org.apache.commons.lang3.tuple.Pair;
+
+import javax.swing.*;
+import java.lang.reflect.Field;
+import java.lang.reflect.Modifier;
+import java.net.Proxy;
+import java.util.*;
+
+@Mod(modid = SBCustomMobTex.MODID, version = SBCustomMobTex.VERSION)
+public class SBCustomMobTex {
+ public static final String MODID = "sbcustommobtex";
+ public static final String VERSION = "1.0";
+
+ public static SBCustomMobTex INSTANCE;
+ private HashMap> permMap = new HashMap<>();
+ private boolean isOnSkyblock = false;
+
+ //Stolen from Biscut and used for detecting whether in skyblock
+ private static final Set SKYBLOCK_IN_ALL_LANGUAGES = Sets.newHashSet("SKYBLOCK","\u7A7A\u5C9B\u751F\u5B58");
+
+ @EventHandler
+ public void preinit(FMLPreInitializationEvent event) {
+ MinecraftForge.EVENT_BUS.register(this);
+ INSTANCE = this;
+ }
+
+ @SubscribeEvent
+ public void tick(TickEvent event) {
+ System.out.println(permMap.size());
+ updateIsOnSkyblock();
+ cleanMap();
+ }
+
+ public void cleanMap() {
+ World w = Minecraft.getMinecraft().theWorld;
+ if(w != null) {
+ Set toRemove = new HashSet<>();
+ for(EntityLivingBase key : permMap.keySet()) {
+ if(!w.loadedEntityList.contains(key)) {
+ toRemove.add(key);
+ }
+ }
+ for(EntityLivingBase key : toRemove) {
+ permMap.remove(key);
+ }
+ }
+ }
+
+ public Pair getPermPair(EntityLivingBase key) {
+ Pair pair = permMap.get(key);
+ if(pair == null) {
+ pair = new MutablePair(null, 0);
+ permMap.put(key, pair);
+ }
+ return pair;
+ }
+
+ public void setPermPair(EntityLivingBase key, Pair pair) {
+ permMap.put(key, pair);
+ }
+
+ public boolean isOnSkyblock() {
+ return isOnSkyblock;
+ }
+
+ //Stolen from Biscut's SkyblockAddons
+ private void updateIsOnSkyblock() {
+ Minecraft mc = Minecraft.getMinecraft();
+
+ if (mc != null && mc.theWorld != null) {
+ Scoreboard scoreboard = mc.theWorld.getScoreboard();
+ ScoreObjective sidebarObjective = scoreboard.getObjectiveInDisplaySlot(1);
+ if (sidebarObjective != null) {
+ String objectiveName = sidebarObjective.getDisplayName().replaceAll("(?i)\\u00A7.", "");
+ for (String skyblock : SKYBLOCK_IN_ALL_LANGUAGES) {
+ if (objectiveName.startsWith(skyblock)) {
+ isOnSkyblock = true;
+ return;
+ }
+ }
+ }
+ }
+
+ isOnSkyblock = false;
+ }
+}
diff --git a/src/main/java/io/github/moulberry/mixins/MixinEntity.java b/src/main/java/io/github/moulberry/mixins/MixinEntity.java
new file mode 100644
index 0000000..5438d2d
--- /dev/null
+++ b/src/main/java/io/github/moulberry/mixins/MixinEntity.java
@@ -0,0 +1,145 @@
+package io.github.moulberry.mixins;
+
+import io.github.moulberry.SBCustomMobTex;
+import net.minecraft.client.Minecraft;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityArmorStand;
+import net.minecraft.world.World;
+import org.apache.commons.lang3.tuple.MutablePair;
+import org.apache.commons.lang3.tuple.Pair;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.Shadow;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
+
+import java.util.HashMap;
+
+@Mixin(Entity.class)
+public abstract class MixinEntity {
+
+ @Shadow
+ public double posX;
+ @Shadow
+ public double posY;
+ @Shadow
+ public double posZ;
+
+ @Shadow
+ public World worldObj;
+ @Shadow
+ public int ticksExisted;
+
+ private boolean shouldReplace() {
+ //TODO: Skyblock check
+ if(!SBCustomMobTex.INSTANCE.isOnSkyblock()) return false;
+ if(getThis() instanceof EntityLivingBase && !(getThis() instanceof EntityArmorStand)
+ && getThis() != Minecraft.getMinecraft().thePlayer) {
+ return true;
+ }
+ return false;
+ }
+
+ private Entity getThis() {
+ return ((Entity)(Object)this);
+ }
+
+ private double distSq(double x1, double y1, double z1, double x2, double y2, double z2) {
+ return (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) + (z1-z2)*(z1-z2);
+ }
+
+
+ @Inject(method = "getCustomNameTag", at = @At("HEAD"), cancellable = true)
+ public void getCustomNameTag(CallbackInfoReturnable cir) {
+ int bindTicks = 60;
+ int deltaThreshold = 10;
+ if(shouldReplace()) {
+ EntityArmorStand bound = null;
+ Pair pair = SBCustomMobTex.INSTANCE.getPermPair((EntityLivingBase) getThis());
+
+ if(pair.getLeft() != null && pair.getRight() >= bindTicks) {
+ EntityArmorStand stand = pair.getLeft();
+ double distSq = distSq(posX, posY, posZ, stand.posX, stand.posY, stand.posZ);
+ if(distSq > 16) {
+ pair = new MutablePair<>(null, 0);
+ SBCustomMobTex.INSTANCE.setPermPair((EntityLivingBase) getThis(), pair);
+ } else {
+ bound = pair.getLeft();
+ }
+ }
+
+ if(bound == null) {
+ int sDelta = 99999;
+ double smallestDist = 16;
+ EntityArmorStand closest = null;
+ for(Entity entity : worldObj.loadedEntityList) {
+ if(entity instanceof EntityArmorStand) {
+ EntityArmorStand stand = (EntityArmorStand) entity;
+
+ int delta = Math.abs(stand.ticksExisted - ticksExisted);// && delta >= 0 && delta <= 10
+ if((stand.isInvisible() || stand.func_181026_s()) && stand.hasCustomName()) {
+ double distSq = distSq(posX, posY, posZ, stand.posX, stand.posY, stand.posZ);
+
+ boolean update = false;
+
+ if(distSq < smallestDist) {
+ if(sDelta <= deltaThreshold) {
+ if(delta <= deltaThreshold) {
+ update = true;
+ }
+ } else {
+ update = true;
+ }
+ } else if(sDelta > deltaThreshold && delta <= deltaThreshold && distSq < 1) {
+ update = true;
+ }
+
+ if(update) {
+ smallestDist = distSq;
+ sDelta = delta;
+ closest = stand;
+ }
+ }
+ }
+ }
+ if(closest != null) {
+ if(pair.getLeft() == closest) {
+ if(pair.getValue() < bindTicks) {
+ pair.setValue(pair.getValue()+1);
+ }
+ } else {
+ pair = new MutablePair<>(closest, 0);
+ SBCustomMobTex.INSTANCE.setPermPair((EntityLivingBase) getThis(), pair);
+ }
+
+ bound = closest;
+ }
+ }
+
+ if(bound != null) {
+ String name = bound.getName().replaceAll("(?i)\\u00A7.", "");
+ if(cir.getReturnValue() == null) {
+ cir.setReturnValue(";" + name);
+ } else {
+ cir.setReturnValue(cir.getReturnValue() + ";" + name);
+ }
+ }
+ }
+ }
+
+ @Inject(method = "hasCustomName", at = @At("HEAD"), cancellable = true)
+ public void hasCustomName(CallbackInfoReturnable cir) {
+ if(shouldReplace()) {
+ cir.setReturnValue(true);
+ }
+ }
+
+ @Inject(method = "getAlwaysRenderNameTag", at = @At("HEAD"), cancellable = true)
+ public void getAlwaysRenderNameTag(CallbackInfoReturnable cir) {
+ if(shouldReplace()) {
+ cir.setReturnValue(true);
+ }
+ }
+
+}
diff --git a/src/main/java/io/github/moulberry/mixins/MixinRender.java b/src/main/java/io/github/moulberry/mixins/MixinRender.java
new file mode 100644
index 0000000..fd2d0df
--- /dev/null
+++ b/src/main/java/io/github/moulberry/mixins/MixinRender.java
@@ -0,0 +1,30 @@
+package io.github.moulberry.mixins;
+
+import io.github.moulberry.SBCustomMobTex;
+import net.minecraft.client.renderer.entity.Render;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityArmorStand;
+import net.minecraft.entity.passive.EntityPig;
+import org.apache.commons.lang3.tuple.Pair;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
+
+@Mixin(Render.class)
+public class MixinRender {
+
+ @Inject(method = "renderLivingLabel", at = @At("HEAD"), cancellable = true)
+ public void renderLivingLabel(Entity entityIn, String str, double x, double y, double z, int maxDistance, CallbackInfo ci) {
+ if(SBCustomMobTex.INSTANCE.isOnSkyblock()) {
+ if(entityIn instanceof EntityLivingBase) {
+ Pair pair = SBCustomMobTex.INSTANCE.getPermPair((EntityLivingBase) entityIn);
+ if(pair.getLeft() != null) {
+ ci.cancel();
+ }
+ }
+ }
+ }
+}
diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info
new file mode 100644
index 0000000..f480667
--- /dev/null
+++ b/src/main/resources/mcmod.info
@@ -0,0 +1,16 @@
+[
+{
+ "modid": "examplemod",
+ "name": "Example Mod",
+ "description": "Example placeholder mod.",
+ "version": "${version}",
+ "mcversion": "${mcversion}",
+ "url": "",
+ "updateUrl": "",
+ "authorList": ["ExampleDude"],
+ "credits": "The Forge and FML guys, for making this example",
+ "logoFile": "",
+ "screenshots": [],
+ "dependencies": []
+}
+]
diff --git a/src/main/resources/mixins.sbcustommobtex.json b/src/main/resources/mixins.sbcustommobtex.json
new file mode 100644
index 0000000..7c2a74a
--- /dev/null
+++ b/src/main/resources/mixins.sbcustommobtex.json
@@ -0,0 +1,9 @@
+{
+ "package": "io.github.moulberry.mixins",
+ "refmap": "mixins.sbcustommobtex.refmap.json",
+ "compatibilityLevel": "JAVA_8",
+ "mixins": [
+ "MixinEntity",
+ "MixinRender"
+ ]
+}
\ No newline at end of file