inital commit
175
.gitignore
vendored
Normal file
@@ -0,0 +1,175 @@
|
|||||||
|
|
||||||
|
# Created by https://www.gitignore.io/api/windows,linux,eclipse,java,intellij,gradle
|
||||||
|
|
||||||
|
### Windows ###
|
||||||
|
# Windows image file caches
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
|
||||||
|
# Folder config file
|
||||||
|
Desktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Windows Installer files
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# Windows shortcuts
|
||||||
|
*.lnk
|
||||||
|
|
||||||
|
|
||||||
|
### Linux ###
|
||||||
|
*~
|
||||||
|
|
||||||
|
# temporary files which can be created if a process still has a handle open of a deleted file
|
||||||
|
.fuse_hidden*
|
||||||
|
|
||||||
|
# KDE directory preferences
|
||||||
|
.directory
|
||||||
|
|
||||||
|
# Linux trash folder which might appear on any partition or disk
|
||||||
|
.Trash-*
|
||||||
|
|
||||||
|
|
||||||
|
### Eclipse ###
|
||||||
|
|
||||||
|
.metadata
|
||||||
|
bin/
|
||||||
|
tmp/
|
||||||
|
*.tmp
|
||||||
|
*.bak
|
||||||
|
*.swp
|
||||||
|
*~.nib
|
||||||
|
local.properties
|
||||||
|
.settings/
|
||||||
|
.loadpath
|
||||||
|
.recommenders
|
||||||
|
|
||||||
|
# Eclipse Core
|
||||||
|
.project
|
||||||
|
|
||||||
|
# External tool builders
|
||||||
|
.externalToolBuilders/
|
||||||
|
|
||||||
|
# Locally stored "Eclipse launch configurations"
|
||||||
|
*.launch
|
||||||
|
|
||||||
|
# PyDev specific (Python IDE for Eclipse)
|
||||||
|
*.pydevproject
|
||||||
|
|
||||||
|
# CDT-specific (C/C++ Development Tooling)
|
||||||
|
.cproject
|
||||||
|
|
||||||
|
# JDT-specific (Eclipse Java Development Tools)
|
||||||
|
.classpath
|
||||||
|
|
||||||
|
# Java annotation processor (APT)
|
||||||
|
.factorypath
|
||||||
|
|
||||||
|
# PDT-specific (PHP Development Tools)
|
||||||
|
.buildpath
|
||||||
|
|
||||||
|
# sbteclipse plugin
|
||||||
|
.target
|
||||||
|
|
||||||
|
# Tern plugin
|
||||||
|
.tern-project
|
||||||
|
|
||||||
|
# TeXlipse plugin
|
||||||
|
.texlipse
|
||||||
|
|
||||||
|
# STS (Spring Tool Suite)
|
||||||
|
.springBeans
|
||||||
|
|
||||||
|
# Code Recommenders
|
||||||
|
.recommenders/
|
||||||
|
|
||||||
|
|
||||||
|
### Intellij ###
|
||||||
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
|
||||||
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
# User-specific stuff:
|
||||||
|
.idea/workspace.xml
|
||||||
|
.idea/tasks.xml
|
||||||
|
.idea/dictionaries
|
||||||
|
.idea/vcs.xml
|
||||||
|
.idea/jsLibraryMappings.xml
|
||||||
|
|
||||||
|
# Sensitive or high-churn files:
|
||||||
|
.idea/dataSources.ids
|
||||||
|
.idea/dataSources.xml
|
||||||
|
.idea/dataSources.local.xml
|
||||||
|
.idea/sqlDataSources.xml
|
||||||
|
.idea/dynamic.xml
|
||||||
|
.idea/uiDesigner.xml
|
||||||
|
|
||||||
|
# Gradle:
|
||||||
|
.idea/gradle.xml
|
||||||
|
.idea/libraries
|
||||||
|
|
||||||
|
# Mongo Explorer plugin:
|
||||||
|
.idea/mongoSettings.xml
|
||||||
|
|
||||||
|
## File-based project format:
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
## Plugin-specific files:
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
/out/
|
||||||
|
|
||||||
|
# mpeltonen/sbt-idea plugin
|
||||||
|
.idea_modules/
|
||||||
|
|
||||||
|
# JIRA plugin
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|
||||||
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
crashlytics.properties
|
||||||
|
crashlytics-build.properties
|
||||||
|
fabric.properties
|
||||||
|
|
||||||
|
### Intellij Patch ###
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
|
||||||
|
### Java ###
|
||||||
|
*.class
|
||||||
|
|
||||||
|
# Mobile Tools for Java (J2ME)
|
||||||
|
.mtj.tmp/
|
||||||
|
|
||||||
|
# Package Files #
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
|
||||||
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
|
hs_err_pid*
|
||||||
|
|
||||||
|
|
||||||
|
### Gradle ###
|
||||||
|
.gradle
|
||||||
|
build/
|
||||||
|
|
||||||
|
# Ignore Gradle GUI config
|
||||||
|
gradle-app.setting
|
||||||
|
|
||||||
|
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
|
||||||
|
!gradle-wrapper.jar
|
||||||
|
|
||||||
|
# Cache of project
|
||||||
|
.gradletasknamecache
|
||||||
|
|
||||||
|
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
|
||||||
|
# gradle/wrapper/gradle-wrapper.properties
|
||||||
|
|
||||||
|
|
||||||
|
# Forge
|
||||||
|
run/
|
88
build.gradle
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
|
||||||
|
// For those who want the bleeding edge
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
maven {
|
||||||
|
name = "forge"
|
||||||
|
url = "http://files.minecraftforge.net/maven"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name "DVS1 Maven FS'"
|
||||||
|
url 'http://dvs1.progwml6.com/files/maven'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot
|
||||||
|
//plugins {
|
||||||
|
// id "net.minecraftforge.gradle.forge" version "2.0.2"
|
||||||
|
//}
|
||||||
|
*/
|
||||||
|
version = "0.1"
|
||||||
|
group= "com.sosnitzka.zcompression" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
archivesBaseName = "zcompression"
|
||||||
|
|
||||||
|
minecraft {
|
||||||
|
version = "1.9-12.16.0.1865-1.9"
|
||||||
|
runDir = "run"
|
||||||
|
|
||||||
|
// the mappings can be changed at any time, and must be in the following format.
|
||||||
|
// snapshot_YYYYMMDD snapshot are built nightly.
|
||||||
|
// stable_# stables are built at the discretion of the MCP team.
|
||||||
|
// Use non-default mappings at your own risk. they may not allways work.
|
||||||
|
// simply re-run your setup task after changing the mappings to update your workspace.
|
||||||
|
mappings = "snapshot_20160428"
|
||||||
|
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
// you may put jars on which you depend on in ./libs
|
||||||
|
// or you may define them like so..
|
||||||
|
//compile "some.group:artifact:version:classifier"
|
||||||
|
//compile "some.group:artifact:version"
|
||||||
|
|
||||||
|
// real examples
|
||||||
|
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
|
||||||
|
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
|
||||||
|
|
||||||
|
// the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
|
||||||
|
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
||||||
|
|
||||||
|
// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
|
||||||
|
// except that these dependencies get remapped to your current MCP mappings
|
||||||
|
//deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
||||||
|
//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
||||||
|
|
||||||
|
// for more info...
|
||||||
|
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
||||||
|
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
||||||
|
compile "tconstruct:TConstruct:1.9-2.2.2.jenkins159:deobf"
|
||||||
|
}
|
||||||
|
|
||||||
|
processResources
|
||||||
|
{
|
||||||
|
// this will ensure that this task is redone when the versions change.
|
||||||
|
inputs.property "version", project.version
|
||||||
|
inputs.property "mcversion", project.minecraft.version
|
||||||
|
|
||||||
|
// replace stuff in mcmod.info, nothing else
|
||||||
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
|
include 'mcmod.info'
|
||||||
|
|
||||||
|
// replace version and mcversion
|
||||||
|
expand 'version':project.version, 'mcversion':project.minecraft.version
|
||||||
|
}
|
||||||
|
|
||||||
|
// copy everything else, thats not the mcmod.info
|
||||||
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
|
exclude 'mcmod.info'
|
||||||
|
}
|
||||||
|
}
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -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-2.7-bin.zip
|
164
gradlew
vendored
Normal file
@@ -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 "$@"
|
90
gradlew.bat
vendored
Normal file
@@ -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
|
16
src/main/java/blocks/BasicBlock.java
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BasicBlock extends Block{
|
||||||
|
|
||||||
|
public BasicBlock(String name, Material material, float hardness, float resistance) {
|
||||||
|
super(material);
|
||||||
|
setUnlocalizedName(name);
|
||||||
|
setRegistryName(name);
|
||||||
|
setHardness(hardness);
|
||||||
|
setResistance(resistance);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockAdamantiteOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockAdamantiteOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockAdamantiteOre() {
|
||||||
|
super("adamantite_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockArcaniteOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockArcaniteOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockArcaniteOre() {
|
||||||
|
super("arcanite_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockBasalt.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockBasalt extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockBasalt() {
|
||||||
|
super("basalt", Material.ROCK, 12.0f, 2.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockBismuthOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockBismuthOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockBismuthOre() {
|
||||||
|
super("bismuth_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockEterniteOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockEterniteOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockEterniteOre() {
|
||||||
|
super("eternite_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockKarmesineOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockKarmesineOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockKarmesineOre() {
|
||||||
|
super("karmesine_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockLigniteOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockLigniteOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockLigniteOre() {
|
||||||
|
super("lignite_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockMeteoriteOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockMeteoriteOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockMeteoriteOre() {
|
||||||
|
super("meteorite_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockMindoriteOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockMindoriteOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockMindoriteOre() {
|
||||||
|
super("mindorite_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockMythrilOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockMythrilOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockMythrilOre() {
|
||||||
|
super("mythril_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockPalladiumOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockPalladiumOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockPalladiumOre() {
|
||||||
|
super("palladium_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockPrometheumOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockPrometheumOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockPrometheumOre() {
|
||||||
|
super("prometheum_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockRottenGround.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockRottenGround extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockRottenGround() {
|
||||||
|
super("rotten_ground", Material.GROUND, 1.0f, 1.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockSlagironOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockSlagironOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockSlagironOre() {
|
||||||
|
super("slagiron_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockTiberiumOre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockTiberiumOre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockTiberiumOre() {
|
||||||
|
super("tiberium_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
13
src/main/java/blocks/BlockVibraniumre.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package blocks;
|
||||||
|
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
|
||||||
|
public class BlockVibraniumre extends BasicBlock{
|
||||||
|
|
||||||
|
public BlockVibraniumre() {
|
||||||
|
super("vibranium_ore", Material.ROCK, 3.0f, 5.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
12
src/main/java/items/BasicItem.java
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
package items;
|
||||||
|
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
public class BasicItem extends Item{
|
||||||
|
|
||||||
|
public BasicItem(String name) {
|
||||||
|
setUnlocalizedName(name);
|
||||||
|
setRegistryName(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
10
src/main/java/items/ItemSlagiron.java
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
package items;
|
||||||
|
|
||||||
|
public class ItemSlagiron extends BasicItem{
|
||||||
|
|
||||||
|
public ItemSlagiron() {
|
||||||
|
super("slagiron");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
114
src/main/java/main/ZCompression.java
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
package main;
|
||||||
|
|
||||||
|
import blocks.BasicBlock;
|
||||||
|
import blocks.BlockAdamantiteOre;
|
||||||
|
import blocks.BlockArcaniteOre;
|
||||||
|
import blocks.BlockBasalt;
|
||||||
|
import blocks.BlockBismuthOre;
|
||||||
|
import blocks.BlockEterniteOre;
|
||||||
|
import blocks.BlockKarmesineOre;
|
||||||
|
import blocks.BlockLigniteOre;
|
||||||
|
import blocks.BlockMeteoriteOre;
|
||||||
|
import blocks.BlockMindoriteOre;
|
||||||
|
import blocks.BlockMythrilOre;
|
||||||
|
import blocks.BlockPalladiumOre;
|
||||||
|
import blocks.BlockPrometheumOre;
|
||||||
|
import blocks.BlockRottenGround;
|
||||||
|
import blocks.BlockSlagironOre;
|
||||||
|
import blocks.BlockTiberiumOre;
|
||||||
|
import blocks.BlockVibraniumre;
|
||||||
|
import items.ItemSlagiron;
|
||||||
|
import main.world.ZWorldGen;
|
||||||
|
import net.minecraft.item.ItemBlock;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.fml.common.Mod.EventHandler;
|
||||||
|
import net.minecraftforge.fml.common.SidedProxy;
|
||||||
|
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||||||
|
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
||||||
|
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||||
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||||
|
import proxy.ServerProxy;
|
||||||
|
|
||||||
|
@Mod(modid = ZCompression.MODID, version = ZCompression.VERSION)
|
||||||
|
public class ZCompression {
|
||||||
|
|
||||||
|
public static final String MODID = "zcompression";
|
||||||
|
public static final String VERSION = "1.0";
|
||||||
|
|
||||||
|
@SidedProxy(clientSide = "proxy.ClientProxy", serverSide = "proxy.ServerProxy")
|
||||||
|
public static ServerProxy proxy;
|
||||||
|
|
||||||
|
// Items
|
||||||
|
public static ItemSlagiron slagiron = new ItemSlagiron();
|
||||||
|
|
||||||
|
|
||||||
|
//Blocks, esp. for tconstruct
|
||||||
|
public static BlockAdamantiteOre adamantiteOre = new BlockAdamantiteOre();
|
||||||
|
public static BlockArcaniteOre arcaniteOre = new BlockArcaniteOre();
|
||||||
|
public static BlockBasalt basalt = new BlockBasalt();
|
||||||
|
public static BlockBismuthOre bismuthOre = new BlockBismuthOre();
|
||||||
|
public static BlockEterniteOre eterniteOre = new BlockEterniteOre();
|
||||||
|
public static BlockKarmesineOre karmesineOre = new BlockKarmesineOre();
|
||||||
|
public static BlockLigniteOre ligniteOre = new BlockLigniteOre();
|
||||||
|
public static BlockMeteoriteOre meteoriteOre = new BlockMeteoriteOre();
|
||||||
|
public static BlockMindoriteOre mindoriteOre = new BlockMindoriteOre();
|
||||||
|
public static BlockMythrilOre mythrilOre = new BlockMythrilOre();
|
||||||
|
public static BlockPalladiumOre palladiumOre = new BlockPalladiumOre();
|
||||||
|
public static BlockPrometheumOre prometheumOre = new BlockPrometheumOre();
|
||||||
|
public static BlockRottenGround rottenGround = new BlockRottenGround();
|
||||||
|
public static BlockSlagironOre slagironOre = new BlockSlagironOre();
|
||||||
|
public static BlockTiberiumOre tiberiumOre = new BlockTiberiumOre();
|
||||||
|
public static BlockVibraniumre vibraniumOre = new BlockVibraniumre();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void preInit(FMLPreInitializationEvent e){
|
||||||
|
GameRegistry.register(slagiron);
|
||||||
|
registerBlock(adamantiteOre);
|
||||||
|
registerBlock(arcaniteOre);
|
||||||
|
registerBlock(basalt);
|
||||||
|
registerBlock(bismuthOre);
|
||||||
|
registerBlock(eterniteOre);
|
||||||
|
registerBlock(karmesineOre);
|
||||||
|
registerBlock(ligniteOre);
|
||||||
|
registerBlock(meteoriteOre);
|
||||||
|
registerBlock(mindoriteOre);
|
||||||
|
registerBlock(mythrilOre);
|
||||||
|
registerBlock(palladiumOre);
|
||||||
|
registerBlock(prometheumOre);
|
||||||
|
registerBlock(rottenGround);
|
||||||
|
registerBlock(slagironOre);
|
||||||
|
registerBlock(tiberiumOre);
|
||||||
|
registerBlock(vibraniumOre);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void init(FMLInitializationEvent e){
|
||||||
|
proxy.registerClientStuff();
|
||||||
|
GameRegistry.registerWorldGenerator(new ZWorldGen(), 100);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void postInit(FMLPostInitializationEvent e){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void registerBlock(BasicBlock block){
|
||||||
|
GameRegistry.register(block);
|
||||||
|
GameRegistry.register(new ItemBlock(block).setRegistryName(block.getRegistryName()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
39
src/main/java/main/util/Generator.java
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
package main.util;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
import com.google.common.base.Predicate;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.block.state.pattern.BlockMatcher;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||||
|
|
||||||
|
public class Generator {
|
||||||
|
|
||||||
|
public static void generateOre(IBlockState state, Random random, int x, int z, World world, int chance, int minY, int maxY, int minSize, int maxSize){
|
||||||
|
generateOre(state, Blocks.STONE, random, x, z, world, chance, minY, maxY, minSize, maxSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void generateNetherOre(IBlockState state, Random random, int x, int z, World world, int chance, int minY, int maxY, int minSize, int maxSize){
|
||||||
|
generateOre(state, Blocks.NETHERRACK, random, x, z, world, chance, minY, maxY, minSize, maxSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void generateOre(IBlockState state, Block replace, Random random, int chunkX, int chunkZ, World world, int chance, int minY, int maxY, int minSize, int maxSize){
|
||||||
|
int size = minSize + random.nextInt(maxSize - minSize);
|
||||||
|
int height = maxY - minY;
|
||||||
|
|
||||||
|
for(int i = 0; i < chance; i++) {
|
||||||
|
int posX = chunkX + random.nextInt(16);
|
||||||
|
int posY = random.nextInt(height) + minY;
|
||||||
|
int posZ = chunkZ + random.nextInt(16);
|
||||||
|
new WorldGenMinable(state, size, BlockMatcher.forBlock(replace)).generate(world, random, new BlockPos(posX, posY, posZ));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
65
src/main/java/main/world/ZWorldGen.java
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
package main.world;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
import com.google.common.base.Predicates;
|
||||||
|
|
||||||
|
import main.ZCompression;
|
||||||
|
import main.util.Generator;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.chunk.IChunkGenerator;
|
||||||
|
import net.minecraft.world.chunk.IChunkProvider;
|
||||||
|
import net.minecraftforge.fml.common.IWorldGenerator;
|
||||||
|
|
||||||
|
public class ZWorldGen implements IWorldGenerator {
|
||||||
|
|
||||||
|
|
||||||
|
private void nether(Random random, int x, int z, World world){
|
||||||
|
Generator.generateNetherOre(ZCompression.adamantiteOre.getDefaultState(), random, x, z, world, 24, 1, 32, 2, 5);
|
||||||
|
Generator.generateNetherOre(ZCompression.tiberiumOre.getDefaultState(), random, x, z, world, 60, 1, 128, 2, 10);
|
||||||
|
Generator.generateNetherOre(ZCompression.palladiumOre.getDefaultState(), random, x, z, world, 15, 32, 64, 3, 6);
|
||||||
|
Generator.generateOre(ZCompression.prometheumOre.getDefaultState(), random, x, z, world, 20, 48, 64, 2, 4);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void world(Random random, int x, int z, World world){
|
||||||
|
// Regular
|
||||||
|
Generator.generateOre(ZCompression.slagironOre.getDefaultState(), random, x, z, world, 40, 8, 96, 5, 16);
|
||||||
|
Generator.generateOre(ZCompression.ligniteOre.getDefaultState(), random, x, z, world, 40, 8, 96, 5, 15);
|
||||||
|
Generator.generateOre(Blocks.IRON_ORE.getDefaultState(),random, x, z, world, 40, 8, 96, 2, 10);
|
||||||
|
Generator.generateOre(ZCompression.basalt.getDefaultState(), Blocks.LAVA, random, x, z, world, 20, 8, 24, 2, 5);
|
||||||
|
Generator.generateOre(ZCompression.rottenGround.getDefaultState(), Blocks.DIRT, random, x, z, world, 25, 50, 70, 2, 15);
|
||||||
|
|
||||||
|
Generator.generateOre(ZCompression.vibraniumOre.getDefaultState(), random, x, z, world, 16, 48, 64, 2, 4);
|
||||||
|
Generator.generateOre(ZCompression.mythrilOre.getDefaultState(), random, x, z, world, 16, 16, 32, 2, 4);
|
||||||
|
Generator.generateOre(ZCompression.meteoriteOre.getDefaultState(), random, x, z, world, 25, 0, 32, 3, 6);
|
||||||
|
Generator.generateOre(ZCompression.mindoriteOre.getDefaultState(), Blocks.STONE, random, x, z, world, 450, 32, 96, 3, 6);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void end(Random random, int x, int z, World world){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator,
|
||||||
|
IChunkProvider chunkProvider) {
|
||||||
|
int x = chunkX * 16;
|
||||||
|
int z = chunkZ * 16;
|
||||||
|
switch(world.provider.getDimension()) {
|
||||||
|
case -1:
|
||||||
|
nether(random, x, z, world);
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
world(random, x, z, world);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
end(random, x, z, world);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
46
src/main/java/proxy/ClientProxy.java
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
package proxy;
|
||||||
|
|
||||||
|
import blocks.BasicBlock;
|
||||||
|
import items.BasicItem;
|
||||||
|
import main.ZCompression;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
public class ClientProxy extends ServerProxy{
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void registerClientStuff() {
|
||||||
|
// Items
|
||||||
|
registerItemModel(ZCompression.slagiron);
|
||||||
|
|
||||||
|
// Blocks
|
||||||
|
registerBlockModel(ZCompression.adamantiteOre);
|
||||||
|
registerBlockModel(ZCompression.arcaniteOre);
|
||||||
|
registerBlockModel(ZCompression.basalt);
|
||||||
|
registerBlockModel(ZCompression.bismuthOre);
|
||||||
|
registerBlockModel(ZCompression.eterniteOre);
|
||||||
|
registerBlockModel(ZCompression.karmesineOre);
|
||||||
|
registerBlockModel(ZCompression.ligniteOre);
|
||||||
|
registerBlockModel(ZCompression.meteoriteOre);
|
||||||
|
registerBlockModel(ZCompression.mindoriteOre);
|
||||||
|
registerBlockModel(ZCompression.mythrilOre);
|
||||||
|
registerBlockModel(ZCompression.palladiumOre);
|
||||||
|
registerBlockModel(ZCompression.prometheumOre);
|
||||||
|
registerBlockModel(ZCompression.rottenGround);
|
||||||
|
registerBlockModel(ZCompression.slagironOre);
|
||||||
|
registerBlockModel(ZCompression.tiberiumOre);
|
||||||
|
registerBlockModel(ZCompression.vibraniumOre);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void registerItemModel(Item item){
|
||||||
|
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void registerBlockModel(Block block){
|
||||||
|
registerItemModel(Item.getItemFromBlock(block));
|
||||||
|
}
|
||||||
|
}
|
7
src/main/java/proxy/ServerProxy.java
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package proxy;
|
||||||
|
|
||||||
|
public class ServerProxy {
|
||||||
|
|
||||||
|
public void registerClientStuff() {}
|
||||||
|
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:adamantite_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:arcanite_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:basalt" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:bismuth_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:eternite_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:karmesite_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:lignite_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:meteorite_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:mindorite_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:mythril_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:palladium_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:prometheum_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:rotten_ground" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:slagiron_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:tiberium_ore" }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"normal": { "model": "zcompression:vibranium_ore" }
|
||||||
|
}
|
||||||
|
}
|
18
src/main/resources/assets/zcompression/lang/de_DE.lang
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
item.slagiron.name=Unreiner Eisenbarren
|
||||||
|
tile.adamantite_ore.name=Adamantiterz
|
||||||
|
tile.arcanite_ore.name=Arcaniterz
|
||||||
|
tile.basalt.name=Basalt
|
||||||
|
tile.bismuth_ore.name=Bismutherz
|
||||||
|
tile.eternite_ore.name=Eterniterz
|
||||||
|
tile.karmesine_ore.name=Karmesinerz
|
||||||
|
tile.lignite_ore.name=Braunkohleerz
|
||||||
|
tile.meteorite_ore.name=Meteoriterz
|
||||||
|
tile.mindorite_ore.name=Mindoriterz
|
||||||
|
tile.mythril_ore.name=Mythrilerz
|
||||||
|
tile.palladium_ore.name=Palladiumerz
|
||||||
|
tile.prometheum_ore.name=Prometheumerz
|
||||||
|
tile.rotten_ground.name=Verrottete Erde
|
||||||
|
tile.slagiron_ore.name=Unreines Eisenerz
|
||||||
|
tile.tiberium_ore.name=Tiberiumerz
|
||||||
|
tile.vibranium_ore.name=Vibraniumerz
|
||||||
|
|
17
src/main/resources/assets/zcompression/lang/en_US.lang
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
item.slagiron.name=Slagiron Bar
|
||||||
|
tile.adamantite_ore.name=Adamantite Ore
|
||||||
|
tile.arcanite_ore.name=Arcanite Ore
|
||||||
|
tile.basalt.name=Basalt
|
||||||
|
tile.bismuth_ore.name=Bismuth Ore
|
||||||
|
tile.eternite_ore.name=Eternite Ore
|
||||||
|
tile.karmesine_ore.name=Karmesine Ore
|
||||||
|
tile.lignite_ore.name=Lignite Ore
|
||||||
|
tile.meteorite_ore.name=Meteorite Ore
|
||||||
|
tile.mindorite_ore.name=Mindorite Ore
|
||||||
|
tile.mythril_ore.name=Mythril Ore
|
||||||
|
tile.palladium_ore.name=Palladium Ore
|
||||||
|
tile.prometheum_ore.name=Prometheum Ore
|
||||||
|
tile.rotten_ground.name=Rotten Ground
|
||||||
|
tile.slagiron_ore.name=Slagiron Ore
|
||||||
|
tile.tiberium_ore.name=Tiberium Ore
|
||||||
|
tile.vibranium_ore.name=Vibranium Ore
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/adamantite_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/arcanite_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/basalt"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/bismuth_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/eternite_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/karmesine_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/lignite_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/meteorite_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/mindorite_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/mythril_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/palladium_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/prometheum_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/rotten_ground"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/slagiron_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/tiberium_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "zcompression:blocks/vibranium_ore"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/adamantite_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/arcanite_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/basalt",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/bismuth_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/eternite_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/karmesine_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/lignite_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/meteorite_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/mindorite_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/mythril_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/palladium_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/prometheum_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/rotten_ground",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "zcompression:items/slagiron"
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/slagiron_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/tiberium_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "zcompression:block/vibranium_ore",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 904 B |
After Width: | Height: | Size: 684 B |
After Width: | Height: | Size: 555 B |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |