mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-26 23:13:07 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11b6142320 | ||
|
|
de264540d2 | ||
|
|
bc3542efd2 | ||
|
|
ad7a1d3cea | ||
|
|
1bd4ef4a0f | ||
|
|
439243b00a | ||
|
|
38a2bf629f | ||
|
|
2abb775696 | ||
|
|
b60993f39b | ||
|
|
76a1df6eff | ||
|
|
25b74b4bbc | ||
|
|
f4a9610e22 | ||
|
|
3a01a5bd21 | ||
|
|
83feeeec8e | ||
|
|
901dfcb5a0 | ||
|
|
794c3ca030 | ||
|
|
ee37e779fd | ||
|
|
5039fb8984 | ||
|
|
cb276d92f5 |
No files matched your search
+2
-1607
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("com.github.GTNewHorizons:CodeChickenLib:1.1.8:dev")
|
|
||||||
devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.4.13-GTNH:dev")
|
devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.7.18-GTNH:dev")
|
||||||
}
|
}
|
||||||
+173
-29
@@ -1,59 +1,203 @@
|
|||||||
|
# ExampleMod tag to use as Blowdryer (Spotless, etc.) settings version, leave empty to disable.
|
||||||
|
# LOCAL to test local config updates.
|
||||||
|
gtnh.settings.blowdryerTag = 0.2.0
|
||||||
|
|
||||||
|
# Human-readable mod name, available for mcmod.info population.
|
||||||
modName = Forge Multipart
|
modName = Forge Multipart
|
||||||
|
|
||||||
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
|
# Case-sensitive identifier string, available for mcmod.info population and used for automatic mixin JSON generation.
|
||||||
|
# Conventionally lowercase.
|
||||||
modId = ForgeMultipart
|
modId = ForgeMultipart
|
||||||
|
|
||||||
|
# Root package of the mod, used to find various classes in other properties,
|
||||||
|
# mcmod.info substitution, enabling assertions in run tasks, etc.
|
||||||
modGroup = codechicken
|
modGroup = codechicken
|
||||||
|
|
||||||
# WHY is there no version field?
|
# Whether to use modGroup as the maven publishing group.
|
||||||
# The build script relies on git to provide a version via tags. It is super easy and will enable you to always know the
|
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
||||||
# code base or your binary. Check out this tutorial: https://blog.mattclemente.com/2017/10/13/versioning-with-git-tags/
|
useModGroupForPublishing = false
|
||||||
# Will update your build.gradle automatically whenever an update is available
|
|
||||||
|
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||||
autoUpdateBuildScript = false
|
autoUpdateBuildScript = false
|
||||||
|
|
||||||
|
# Version of Minecraft to target
|
||||||
minecraftVersion = 1.7.10
|
minecraftVersion = 1.7.10
|
||||||
|
|
||||||
|
# Version of Minecraft Forge to target
|
||||||
forgeVersion = 10.13.4.1614
|
forgeVersion = 10.13.4.1614
|
||||||
|
|
||||||
# Select a username for testing your mod with breakpoints. You may leave this empty for a random user name each time you
|
# Specify an MCP channel for dependency deobfuscation and the deobfParams task.
|
||||||
# restart Minecraft in development. Choose this dependent on your mod:
|
channel = stable
|
||||||
# Do you need consistent player progressing (for example Thaumcraft)? -> Select a name
|
|
||||||
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
|
# Specify an MCP mappings version for dependency deobfuscation and the deobfParams task.
|
||||||
|
mappingsVersion = 12
|
||||||
|
|
||||||
|
# Defines other MCP mappings for dependency deobfuscation.
|
||||||
|
remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
|
||||||
|
|
||||||
|
# Select a default username for testing your mod. You can always override this per-run by running
|
||||||
|
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
|
||||||
developmentEnvironmentUserName = Developer
|
developmentEnvironmentUserName = Developer
|
||||||
|
|
||||||
# Define a source file of your project with:
|
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
|
||||||
# public static final String VERSION = "GRADLETOKEN_VERSION";
|
# See https://github.com/bsideup/jabel for details on how this works.
|
||||||
# The string's content will be replaced with your mods version when compiled. You should use this to specify your mod's
|
enableModernJavaSyntax = false
|
||||||
# version in @Mod([...], version = VERSION, [...])
|
|
||||||
# Leave these properties empty to skip individual token replacements
|
|
||||||
replaceGradleTokenInFile = Tags.java
|
|
||||||
gradleTokenModId = GRADLETOKEN_MODID
|
|
||||||
gradleTokenModName = GRADLETOKEN_MODNAME
|
|
||||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
|
||||||
gradleTokenGroupName = GRADLETOKEN_GROUPNAME
|
|
||||||
|
|
||||||
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise you can
|
# Enables injecting missing generics into the decompiled source code for a better coding experience.
|
||||||
|
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
|
||||||
|
enableGenericInjection = false
|
||||||
|
|
||||||
|
# Generate a class with a String field for the mod version named as defined below.
|
||||||
|
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
|
||||||
|
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
|
||||||
|
generateGradleTokenClass = codechicken.multipart.Tags
|
||||||
|
|
||||||
|
# Name of the token containing the project's current version to generate/replace.
|
||||||
|
gradleTokenVersion = VERSION
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod ID replacement token.
|
||||||
|
gradleTokenModId =
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod name replacement token.
|
||||||
|
gradleTokenModName =
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod Group replacement token.
|
||||||
|
gradleTokenGroupName =
|
||||||
|
|
||||||
|
# [DEPRECATED]
|
||||||
|
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
|
||||||
|
# public static final String VERSION = "GRADLETOKEN_VERSION";
|
||||||
|
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
|
||||||
|
# version in @Mod([...], version = VERSION, [...]).
|
||||||
|
# Leave these properties empty to skip individual token replacements.
|
||||||
|
replaceGradleTokenInFile =
|
||||||
|
|
||||||
|
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
|
||||||
# leave this property empty.
|
# leave this property empty.
|
||||||
# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api
|
# Example value: (apiPackage = api) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.api
|
||||||
apiPackage =
|
apiPackage =
|
||||||
|
|
||||||
# Specify the configuration file for Forge's access transformers here. I must be placed into /src/main/resources/META-INF/
|
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
|
||||||
# Example value: mymodid_at.cfg
|
# There can be multiple files in a space-separated list.
|
||||||
|
# Example value: mymodid_at.cfg nei_at.cfg
|
||||||
accessTransformersFile = multipart_at.cfg
|
accessTransformersFile = multipart_at.cfg
|
||||||
|
|
||||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||||
usesMixins = false
|
usesMixins = false
|
||||||
# Specify the location of your implementation of IMixinPlugin. Leave it empty otherwise.
|
|
||||||
|
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
|
||||||
|
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
|
||||||
|
# Mixin classes will have access to "main" classes, but not the other way around.
|
||||||
|
separateMixinSourceSet =
|
||||||
|
|
||||||
|
# Adds some debug arguments like verbose output and class export.
|
||||||
|
usesMixinDebug = false
|
||||||
|
|
||||||
|
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
||||||
mixinPlugin =
|
mixinPlugin =
|
||||||
|
|
||||||
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
|
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
|
||||||
mixinsPackage =
|
mixinsPackage =
|
||||||
|
|
||||||
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
||||||
# This parameter is for legacy compatability only
|
# This parameter is for legacy compatibility only
|
||||||
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
|
# Example value: (coreModClass = asm.FMLPlugin) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.asm.FMLPlugin
|
||||||
coreModClass = core.launch.DepLoader
|
coreModClass = core.launch.DepLoader
|
||||||
|
|
||||||
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
|
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
|
||||||
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
|
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
|
||||||
containsMixinsAndOrCoreModOnly = false
|
containsMixinsAndOrCoreModOnly = false
|
||||||
|
|
||||||
# If enabled, you may use 'shadowImplementation' for dependencies. They will be integrated in your jar. It is your
|
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
|
||||||
# responsibility check the licence and request permission for distribution, if required.
|
forceEnableMixins = false
|
||||||
usesShadowedDependencies = false
|
|
||||||
|
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated into your jar. It is your
|
||||||
|
# responsibility to check the license and request permission for distribution if required.
|
||||||
|
usesShadowedDependencies = false
|
||||||
|
|
||||||
|
# If disabled, won't remove unused classes from shadowed dependencies. Some libraries use reflection to access
|
||||||
|
# their own classes, making the minimization unreliable.
|
||||||
|
minimizeShadowedDependencies = true
|
||||||
|
|
||||||
|
# If disabled, won't rename the shadowed classes.
|
||||||
|
relocateShadowedDependencies = true
|
||||||
|
|
||||||
|
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||||
|
includeWellKnownRepositories = true
|
||||||
|
|
||||||
|
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
|
||||||
|
# list of strings, with the acceptable keys being(case does not matter):
|
||||||
|
# cursemaven
|
||||||
|
# modrinth
|
||||||
|
excludeWellKnownRepositories =
|
||||||
|
|
||||||
|
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||||
|
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||||
|
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||||
|
usesMavenPublishing = true
|
||||||
|
|
||||||
|
# Maven repository to publish the mod to.
|
||||||
|
# mavenPublishUrl = https\://nexus.gtnewhorizons.com/repository/releases/
|
||||||
|
|
||||||
|
# Publishing to Modrinth requires you to set the MODRINTH_TOKEN environment variable to your current Modrinth API token.
|
||||||
|
#
|
||||||
|
# The project's ID on Modrinth. Can be either the slug or the ID.
|
||||||
|
# Leave this empty if you don't want to publish to Modrinth.
|
||||||
|
modrinthProjectId =
|
||||||
|
|
||||||
|
# The project's relations on Modrinth. You can use this to refer to other projects on Modrinth.
|
||||||
|
# Syntax: scope1-type1:name1;scope2-type2:name2;...
|
||||||
|
# Where scope can be one of [required, optional, incompatible, embedded],
|
||||||
|
# type can be one of [project, version],
|
||||||
|
# and the name is the Modrinth project or version slug/id of the other mod.
|
||||||
|
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
|
||||||
|
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
|
||||||
|
modrinthRelations =
|
||||||
|
|
||||||
|
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
|
||||||
|
#
|
||||||
|
# The project's numeric ID on CurseForge. You can find this in the About Project box.
|
||||||
|
# Leave this empty if you don't want to publish on CurseForge.
|
||||||
|
curseForgeProjectId =
|
||||||
|
|
||||||
|
# The project's relations on CurseForge. You can use this to refer to other projects on CurseForge.
|
||||||
|
# Syntax: type1:name1;type2:name2;...
|
||||||
|
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
|
||||||
|
# and the name is the CurseForge project slug of the other mod.
|
||||||
|
# Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft
|
||||||
|
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
|
||||||
|
curseForgeRelations =
|
||||||
|
|
||||||
|
# Optional parameter to customize the produced artifacts. Use this to preserve artifact naming when migrating older
|
||||||
|
# projects. New projects should not use this parameter.
|
||||||
|
# customArchiveBaseName =
|
||||||
|
|
||||||
|
# Optional parameter to have the build automatically fail if an illegal version is used.
|
||||||
|
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
|
||||||
|
# The check is ONLY performed if the version is a git tag.
|
||||||
|
# Note: the specified string must be escaped, so e.g. 1\\.1\\.\\d+ instead of 1\.1\.\d+
|
||||||
|
# versionPattern =
|
||||||
|
|
||||||
|
# Uncomment to prevent the source code from being published.
|
||||||
|
# noPublishedSources = true
|
||||||
|
|
||||||
|
# Uncomment this to disable Spotless checks.
|
||||||
|
# This should only be uncommented to keep it easier to sync with upstream/other forks.
|
||||||
|
# That is, if there is no other active fork/upstream, NEVER change this.
|
||||||
|
# disableSpotless = true
|
||||||
|
|
||||||
|
# Uncomment this to disable Checkstyle checks (currently wildcard import check).
|
||||||
|
# disableCheckstyle = true
|
||||||
|
|
||||||
|
# Override the IDEA build type. Valid values are: "" (leave blank, do not override), "idea" (force use native IDEA build), "gradle"
|
||||||
|
# (force use delegated build).
|
||||||
|
# This is meant to be set in $HOME/.gradle/gradle.properties.
|
||||||
|
# e.g. add "systemProp.org.gradle.project.ideaOverrideBuildType=idea" will override the build type to be native build.
|
||||||
|
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
|
||||||
|
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
|
||||||
|
# ideaOverrideBuildType = idea
|
||||||
|
|
||||||
|
# Whether IDEA should run spotless checks when pressing the Build button.
|
||||||
|
# This is meant to be set in $HOME/.gradle/gradle.properties.
|
||||||
|
# ideaCheckSpotlessOnBuild = true
|
||||||
|
|
||||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
@@ -55,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
@@ -83,7 +85,9 @@ done
|
|||||||
# This is normally unused
|
# This is normally unused
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||||
|
' "$PWD" ) || exit
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
@@ -144,7 +148,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|||||||
case $MAX_FD in #(
|
case $MAX_FD in #(
|
||||||
max*)
|
max*)
|
||||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||||
# shellcheck disable=SC3045
|
# shellcheck disable=SC2039,SC3045
|
||||||
MAX_FD=$( ulimit -H -n ) ||
|
MAX_FD=$( ulimit -H -n ) ||
|
||||||
warn "Could not query maximum file descriptor limit"
|
warn "Could not query maximum file descriptor limit"
|
||||||
esac
|
esac
|
||||||
@@ -152,7 +156,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|||||||
'' | soft) :;; #(
|
'' | soft) :;; #(
|
||||||
*)
|
*)
|
||||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||||
# shellcheck disable=SC3045
|
# shellcheck disable=SC2039,SC3045
|
||||||
ulimit -n "$MAX_FD" ||
|
ulimit -n "$MAX_FD" ||
|
||||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||||
esac
|
esac
|
||||||
@@ -201,11 +205,11 @@ fi
|
|||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Collect all arguments for the java command;
|
# Collect all arguments for the java command:
|
||||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
# shell script including quotes and variable substitutions, so put them in
|
# and any embedded shellness will be escaped.
|
||||||
# double quotes to make sure that they get re-expanded; and
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
# * put everything else in single quotes, so that it's not re-expanded.
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|
||||||
set -- \
|
set -- \
|
||||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
|
|||||||
Vendored
+12
-10
@@ -13,6 +13,8 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
|
|||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if %ERRORLEVEL% equ 0 goto execute
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation.
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
@@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|||||||
|
|
||||||
if exist "%JAVA_EXE%" goto execute
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation.
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
|
|||||||
+5
-10
@@ -4,10 +4,10 @@ pluginManagement {
|
|||||||
maven {
|
maven {
|
||||||
// RetroFuturaGradle
|
// RetroFuturaGradle
|
||||||
name "GTNH Maven"
|
name "GTNH Maven"
|
||||||
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
|
url "https://nexus.gtnewhorizons.com/repository/public/"
|
||||||
allowInsecureProtocol = true
|
|
||||||
mavenContent {
|
mavenContent {
|
||||||
includeGroup("com.gtnewhorizons.retrofuturagradle")
|
includeGroup("com.gtnewhorizons")
|
||||||
|
includeGroupByRegex("com\\.gtnewhorizons\\..+")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
@@ -17,12 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.diffplug.blowdryerSetup' version '1.6.0'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.31'
|
||||||
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.4.0' // Provides java toolchains
|
|
||||||
}
|
}
|
||||||
|
|
||||||
blowdryerSetup {
|
|
||||||
repoSubfolder 'gtnhShared'
|
|
||||||
github('GTNewHorizons/ExampleMod1.7.10', 'tag', '0.2.0')
|
|
||||||
//devLocal '.' // Use this when testing config updates locally
|
|
||||||
}
|
|
||||||
@@ -6,6 +6,8 @@ item.microblock:sawIron.name=Iron Saw
|
|||||||
item.microblock:sawDiamond.name=Diamond Saw
|
item.microblock:sawDiamond.name=Diamond Saw
|
||||||
item.microblock:stoneRod.name=Stone Rod
|
item.microblock:stoneRod.name=Stone Rod
|
||||||
|
|
||||||
|
item.microblock.name=Microblock
|
||||||
|
|
||||||
mcr_face.1.name=%s Cover
|
mcr_face.1.name=%s Cover
|
||||||
mcr_face.1.subset=Cover
|
mcr_face.1.subset=Cover
|
||||||
mcr_face.2.name=%s Panel
|
mcr_face.2.name=%s Panel
|
||||||
@@ -36,4 +38,4 @@ mcr_cnr.4.subset=Notch
|
|||||||
|
|
||||||
nei.subsets.Microblocks=Microblocks
|
nei.subsets.Microblocks=Microblocks
|
||||||
|
|
||||||
key.control=Switch block disposition
|
key.control=Switch block disposition
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"repo": "https://github.com/GTNewHorizons/CodeChickenLib/releases/download/1.1.5.5/",
|
"repo": "https://github.com/GTNewHorizons/CodeChickenLib/releases/download/1.2.0/",
|
||||||
"file": "CodeChickenLib-1.7.10-1.1.5.5.jar",
|
"file": "CodeChickenLib-1.2.0.jar",
|
||||||
"dev": "https://github.com/GTNewHorizons/CodeChickenLib/releases/download/1.1.5.5/CodeChickenLib-1.7.10-1.1.5.5-dev.jar",
|
"dev": "CodeChickenLib-1.2.0-dev.jar",
|
||||||
"class": "codechicken.lib.asm.ASMHelper",
|
"class": "codechicken.lib.asm.ASMHelper",
|
||||||
"coreLib": true
|
"coreLib": true
|
||||||
}
|
}
|
||||||
@@ -10,21 +10,35 @@ import codechicken.lib.vec.{Cuboid6, Vector3}
|
|||||||
import net.minecraft.entity.player.EntityPlayer
|
import net.minecraft.entity.player.EntityPlayer
|
||||||
import codechicken.lib.render.{
|
import codechicken.lib.render.{
|
||||||
CCRenderPipeline,
|
CCRenderPipeline,
|
||||||
ColourMultiplier,
|
CCRenderState,
|
||||||
CCRenderState
|
ColourMultiplier
|
||||||
}
|
}
|
||||||
import codechicken.microblock.handler.MicroblockProxy
|
import codechicken.microblock.handler.MicroblockProxy
|
||||||
import net.minecraft.entity.Entity
|
import net.minecraft.entity.Entity
|
||||||
import codechicken.lib.render.uv.{UVTransformation, MultiIconTransformation}
|
import codechicken.lib.render.uv.{UVTransformation, MultiIconTransformation}
|
||||||
import cpw.mods.fml.common.registry.{GameRegistry, GameData}
|
import cpw.mods.fml.common.registry.{GameRegistry, GameData}
|
||||||
|
|
||||||
|
import java.util.function.Supplier
|
||||||
|
|
||||||
|
private class ThreadState {
|
||||||
|
var pass = 0
|
||||||
|
var builder: CCRenderPipeline#PipelineBuilder = _
|
||||||
|
}
|
||||||
|
|
||||||
object MaterialRenderHelper {
|
object MaterialRenderHelper {
|
||||||
private var pass = 0
|
private val threadState =
|
||||||
private var builder: CCRenderPipeline#PipelineBuilder = _
|
ThreadLocal.withInitial[ThreadState](new Supplier[ThreadState]() {
|
||||||
|
override def get(): ThreadState = new ThreadState()
|
||||||
|
})
|
||||||
|
def pass = threadState.get().pass
|
||||||
|
def pass_=(pass: Int) = threadState.get().pass = pass
|
||||||
|
def builder = threadState.get().builder
|
||||||
|
def builder_=(builder: CCRenderPipeline#PipelineBuilder) =
|
||||||
|
threadState.get().builder = builder
|
||||||
|
|
||||||
def start(pos: Vector3, pass: Int, uvt: UVTransformation) = {
|
def start(pos: Vector3, pass: Int, uvt: UVTransformation) = {
|
||||||
this.pass = pass
|
this.pass = pass
|
||||||
builder = CCRenderState.pipeline.builder()
|
builder = CCRenderState.instance().pipeline.builder()
|
||||||
builder.add(pos.translation()).add(uvt)
|
builder.add(pos.translation()).add(uvt)
|
||||||
this
|
this
|
||||||
}
|
}
|
||||||
@@ -36,7 +50,7 @@ object MaterialRenderHelper {
|
|||||||
|
|
||||||
def lighting() = {
|
def lighting() = {
|
||||||
if (pass != -1)
|
if (pass != -1)
|
||||||
builder.add(CCRenderState.lightMatrix)
|
builder.add(CCRenderState.instance().lightMatrix)
|
||||||
this
|
this
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,9 +99,10 @@ class BlockMicroMaterial(val block: Block, val meta: Int = 0)
|
|||||||
if (pass == -1)
|
if (pass == -1)
|
||||||
block.getBlockColor << 8 | 0xff
|
block.getBlockColor << 8 | 0xff
|
||||||
else {
|
else {
|
||||||
val pos = CCRenderState.lightMatrix.pos
|
val state = CCRenderState.instance
|
||||||
|
val pos = state.lightMatrix.pos
|
||||||
block.colorMultiplier(
|
block.colorMultiplier(
|
||||||
CCRenderState.lightMatrix.access,
|
state.lightMatrix.access,
|
||||||
pos.x,
|
pos.x,
|
||||||
pos.y,
|
pos.y,
|
||||||
pos.z
|
pos.z
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package codechicken.microblock
|
|||||||
|
|
||||||
import codechicken.lib.vec.{Cuboid6, Vector3}
|
import codechicken.lib.vec.{Cuboid6, Vector3}
|
||||||
import net.minecraft.block.Block
|
import net.minecraft.block.Block
|
||||||
import codechicken.lib.render.{ColourMultiplier, CCRenderState}
|
import codechicken.lib.render.CCRenderState
|
||||||
import net.minecraft.block.BlockGrass
|
import net.minecraft.block.BlockGrass
|
||||||
import net.minecraft.init.Blocks
|
import net.minecraft.init.Blocks
|
||||||
import codechicken.lib.render.uv.{UVTranslation, IconTransformation}
|
import codechicken.lib.render.uv.{UVTranslation, IconTransformation}
|
||||||
@@ -17,7 +17,7 @@ class GrassMicroMaterial extends BlockMicroMaterial(Blocks.grass, 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override def renderMicroFace(pos: Vector3, pass: Int, bounds: Cuboid6) {
|
override def renderMicroFace(pos: Vector3, pass: Int, bounds: Cuboid6) {
|
||||||
val face = CCRenderState.model.asInstanceOf[BlockFace]
|
val face = CCRenderState.instance().model.asInstanceOf[BlockFace]
|
||||||
if (pass != -1)
|
if (pass != -1)
|
||||||
face.computeLightCoords()
|
face.computeLightCoords()
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ class GrassMicroMaterial extends BlockMicroMaterial(Blocks.grass, 0) {
|
|||||||
class TopMicroMaterial($block: Block, $meta: Int = 0)
|
class TopMicroMaterial($block: Block, $meta: Int = 0)
|
||||||
extends BlockMicroMaterial($block, $meta) {
|
extends BlockMicroMaterial($block, $meta) {
|
||||||
override def renderMicroFace(pos: Vector3, pass: Int, bounds: Cuboid6) {
|
override def renderMicroFace(pos: Vector3, pass: Int, bounds: Cuboid6) {
|
||||||
val face = CCRenderState.model.asInstanceOf[BlockFace]
|
val face = CCRenderState.instance().model.asInstanceOf[BlockFace]
|
||||||
if (face.side <= 1)
|
if (face.side <= 1)
|
||||||
MaterialRenderHelper
|
MaterialRenderHelper
|
||||||
.start(pos, pass, icont)
|
.start(pos, pass, icont)
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import Vector3._
|
|||||||
import codechicken.lib.raytracer.IndexedCuboid6
|
import codechicken.lib.raytracer.IndexedCuboid6
|
||||||
import org.lwjgl.opengl.GL11
|
import org.lwjgl.opengl.GL11
|
||||||
import codechicken.lib.render.uv.IconTransformation
|
import codechicken.lib.render.uv.IconTransformation
|
||||||
import codechicken.lib.lighting.LightMatrix
|
|
||||||
|
|
||||||
object HollowPlacement extends PlacementProperties {
|
object HollowPlacement extends PlacementProperties {
|
||||||
object HollowPlacementGrid extends FaceEdgeGrid(3 / 8d)
|
object HollowPlacementGrid extends FaceEdgeGrid(3 / 8d)
|
||||||
@@ -74,8 +73,9 @@ trait HollowMicroblockClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
override def drawBreaking(renderBlocks: RenderBlocks) {
|
override def drawBreaking(renderBlocks: RenderBlocks) {
|
||||||
CCRenderState.reset()
|
val state = CCRenderState.instance
|
||||||
CCRenderState.setPipeline(
|
state.resetInstance()
|
||||||
|
state.setPipelineInstance(
|
||||||
new Translation(x, y, z),
|
new Translation(x, y, z),
|
||||||
new IconTransformation(renderBlocks.overrideBlockTexture)
|
new IconTransformation(renderBlocks.overrideBlockTexture)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -170,17 +170,17 @@ object ItemMicroPartRenderer extends IItemRenderer {
|
|||||||
GL11.glScaled(0.5, 0.5, 0.5)
|
GL11.glScaled(0.5, 0.5, 0.5)
|
||||||
if (t == ItemRenderType.INVENTORY || t == ItemRenderType.ENTITY)
|
if (t == ItemRenderType.INVENTORY || t == ItemRenderType.ENTITY)
|
||||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f)
|
GL11.glTranslatef(-0.5f, -0.5f, -0.5f)
|
||||||
|
|
||||||
TextureUtils.bindAtlas(0)
|
TextureUtils.bindAtlas(0)
|
||||||
CCRenderState.reset()
|
val state = CCRenderState.instance
|
||||||
CCRenderState.useNormals = true
|
state.resetInstance()
|
||||||
CCRenderState.pullLightmap()
|
state.useNormals = true
|
||||||
CCRenderState.startDrawing()
|
state.pullLightmapInstance()
|
||||||
|
state.startDrawingInstance()
|
||||||
val part =
|
val part =
|
||||||
mcrClass.create(true, getMaterialID(item)).asInstanceOf[MicroblockClient]
|
mcrClass.create(true, getMaterialID(item)).asInstanceOf[MicroblockClient]
|
||||||
part.setShape(size, mcrClass.itemSlot)
|
part.setShape(size, mcrClass.itemSlot)
|
||||||
part.render(new Vector3(0.5, 0.5, 0.5).subtract(part.getBounds.center), -1)
|
part.render(new Vector3(0.5, 0.5, 0.5).subtract(part.getBounds.center), -1)
|
||||||
CCRenderState.draw()
|
state.drawInstance()
|
||||||
GL11.glPopMatrix()
|
GL11.glPopMatrix()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,17 +112,17 @@ object ItemSawRenderer extends IItemRenderer {
|
|||||||
)
|
)
|
||||||
case _ => return
|
case _ => return
|
||||||
}
|
}
|
||||||
|
val state = CCRenderState.instance
|
||||||
CCRenderState.reset()
|
state.resetInstance()
|
||||||
CCRenderState.useNormals = true
|
state.useNormals = true
|
||||||
CCRenderState.pullLightmap()
|
state.pullLightmapInstance()
|
||||||
CCRenderState.changeTexture("microblock:textures/items/saw.png")
|
CCRenderState.changeTexture("microblock:textures/items/saw.png")
|
||||||
CCRenderState.startDrawing()
|
state.startDrawingInstance()
|
||||||
handle.render(t)
|
handle.render(t)
|
||||||
holder.render(t)
|
holder.render(t)
|
||||||
CCRenderState.draw()
|
state.drawInstance()
|
||||||
GL11.glDisable(GL11.GL_CULL_FACE)
|
GL11.glDisable(GL11.GL_CULL_FACE)
|
||||||
CCRenderState.startDrawing()
|
state.startDrawingInstance()
|
||||||
blade.render(
|
blade.render(
|
||||||
t,
|
t,
|
||||||
new UVTranslation(
|
new UVTranslation(
|
||||||
@@ -130,7 +130,7 @@ object ItemSawRenderer extends IItemRenderer {
|
|||||||
(item.getItem.asInstanceOf[Saw].getCuttingStrength(item) - 1) * 4 / 64d
|
(item.getItem.asInstanceOf[Saw].getCuttingStrength(item) - 1) * 4 / 64d
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
CCRenderState.draw()
|
state.drawInstance()
|
||||||
GL11.glEnable(GL11.GL_CULL_FACE)
|
GL11.glEnable(GL11.GL_CULL_FACE)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,6 +7,7 @@ import org.lwjgl.opengl.GL11._
|
|||||||
import codechicken.lib.render.{CCRenderState, TextureUtils}
|
import codechicken.lib.render.{CCRenderState, TextureUtils}
|
||||||
import codechicken.lib.render.BlockRenderer.BlockFace
|
import codechicken.lib.render.BlockRenderer.BlockFace
|
||||||
import codechicken.microblock.MicroMaterialRegistry.IMicroMaterial
|
import codechicken.microblock.MicroMaterialRegistry.IMicroMaterial
|
||||||
|
import java.util.function.Supplier
|
||||||
|
|
||||||
object MicroblockRender {
|
object MicroblockRender {
|
||||||
def renderHighlight(
|
def renderHighlight(
|
||||||
@@ -31,6 +32,7 @@ object MicroblockRender {
|
|||||||
return
|
return
|
||||||
val pos = placement.pos
|
val pos = placement.pos
|
||||||
val part = placement.part.asInstanceOf[MicroblockClient]
|
val part = placement.part.asInstanceOf[MicroblockClient]
|
||||||
|
val state = CCRenderState.instance
|
||||||
|
|
||||||
glPushMatrix()
|
glPushMatrix()
|
||||||
glTranslated(pos.x + 0.5, pos.y + 0.5, pos.z + 0.5)
|
glTranslated(pos.x + 0.5, pos.y + 0.5, pos.z + 0.5)
|
||||||
@@ -40,21 +42,23 @@ object MicroblockRender {
|
|||||||
glEnable(GL_BLEND)
|
glEnable(GL_BLEND)
|
||||||
glDepthMask(false)
|
glDepthMask(false)
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
|
||||||
|
// TODO: update to use a thread local copy
|
||||||
TextureUtils.bindAtlas(0)
|
TextureUtils.bindAtlas(0)
|
||||||
CCRenderState.reset()
|
state.resetInstance()
|
||||||
CCRenderState.alphaOverride = 80
|
state.alphaOverride = 80
|
||||||
CCRenderState.useNormals = true
|
state.useNormals = true
|
||||||
CCRenderState.startDrawing()
|
state.startDrawingInstance()
|
||||||
part.render(Vector3.zero, -1)
|
part.render(Vector3.zero, -1)
|
||||||
CCRenderState.draw()
|
state.drawInstance()
|
||||||
|
|
||||||
glDisable(GL_BLEND)
|
glDisable(GL_BLEND)
|
||||||
glDepthMask(true)
|
glDepthMask(true)
|
||||||
glPopMatrix()
|
glPopMatrix()
|
||||||
}
|
}
|
||||||
|
|
||||||
val face = new BlockFace()
|
val face = ThreadLocal.withInitial[BlockFace](new Supplier[BlockFace]() {
|
||||||
|
override def get(): BlockFace = new BlockFace()
|
||||||
|
})
|
||||||
def renderCuboid(
|
def renderCuboid(
|
||||||
pos: Vector3,
|
pos: Vector3,
|
||||||
mat: IMicroMaterial,
|
mat: IMicroMaterial,
|
||||||
@@ -62,9 +66,10 @@ object MicroblockRender {
|
|||||||
c: Cuboid6,
|
c: Cuboid6,
|
||||||
faces: Int
|
faces: Int
|
||||||
) {
|
) {
|
||||||
CCRenderState.setModel(face)
|
val localFace = face.get()
|
||||||
|
CCRenderState.instance().setModelInstance(localFace)
|
||||||
for (s <- 0 until 6 if (faces & 1 << s) == 0) {
|
for (s <- 0 until 6 if (faces & 1 << s) == 0) {
|
||||||
face.loadCuboidFace(c, s)
|
localFace.loadCuboidFace(c, s)
|
||||||
mat.renderMicroFace(pos, pass, c)
|
mat.renderMicroFace(pos, pass, c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import cpw.mods.fml.common.Mod.EventHandler
|
|||||||
import cpw.mods.fml.common.event.FMLServerAboutToStartEvent
|
import cpw.mods.fml.common.event.FMLServerAboutToStartEvent
|
||||||
import codechicken.microblock.MicroMaterialRegistry
|
import codechicken.microblock.MicroMaterialRegistry
|
||||||
import codechicken.microblock.DefaultContent
|
import codechicken.microblock.DefaultContent
|
||||||
|
import codechicken.multipart.Tags
|
||||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent
|
import cpw.mods.fml.common.event.FMLPostInitializationEvent
|
||||||
import codechicken.microblock.ConfigContent
|
import codechicken.microblock.ConfigContent
|
||||||
import cpw.mods.fml.common.event.FMLInterModComms.IMCEvent
|
import cpw.mods.fml.common.event.FMLInterModComms.IMCEvent
|
||||||
@@ -14,8 +15,10 @@ import scala.collection.JavaConversions._
|
|||||||
|
|
||||||
@Mod(
|
@Mod(
|
||||||
modid = "ForgeMicroblock",
|
modid = "ForgeMicroblock",
|
||||||
|
name = "Forge Microblocks",
|
||||||
acceptedMinecraftVersions = "[1.7.10]",
|
acceptedMinecraftVersions = "[1.7.10]",
|
||||||
dependencies = "required-after:ForgeMultipart",
|
dependencies = "required-after:ForgeMultipart",
|
||||||
|
version = Tags.VERSION,
|
||||||
modLanguage = "scala"
|
modLanguage = "scala"
|
||||||
)
|
)
|
||||||
object MicroblockMod {
|
object MicroblockMod {
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ object ControlKeyHandler
|
|||||||
) {
|
) {
|
||||||
import ControlKeyModifer._
|
import ControlKeyModifer._
|
||||||
var wasPressed = false
|
var wasPressed = false
|
||||||
|
var oldPlayer: EntityPlayer = null
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
@@ -52,5 +53,13 @@ object ControlKeyHandler
|
|||||||
packet.sendToServer()
|
packet.sendToServer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (oldPlayer != null) {
|
||||||
|
if (oldPlayer != Minecraft.getMinecraft.thePlayer) {
|
||||||
|
map.remove(oldPlayer)
|
||||||
|
oldPlayer = Minecraft.getMinecraft.thePlayer
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
oldPlayer = Minecraft.getMinecraft.thePlayer
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,9 +36,10 @@ object MultipartRenderer
|
|||||||
if (tmpart.partList.isEmpty)
|
if (tmpart.partList.isEmpty)
|
||||||
return
|
return
|
||||||
|
|
||||||
CCRenderState.reset()
|
val state = CCRenderState.instance
|
||||||
CCRenderState.pullLightmap()
|
state.resetInstance()
|
||||||
CCRenderState.useNormals = true
|
state.pullLightmapInstance()
|
||||||
|
state.useNormals = true
|
||||||
|
|
||||||
val pos = new Vector3(x, y, z)
|
val pos = new Vector3(x, y, z)
|
||||||
tmpart.renderDynamic(pos, f, pass)
|
tmpart.renderDynamic(pos, f, pass)
|
||||||
@@ -81,8 +82,9 @@ object MultipartRenderer
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
CCRenderState.reset()
|
val state = CCRenderState.instance
|
||||||
CCRenderState.lightMatrix.locate(world, x, y, z)
|
state.resetInstance()
|
||||||
|
state.lightMatrix.locate(world, x, y, z)
|
||||||
return tmpart.renderStatic(new Vector3(x, y, z), pass)
|
return tmpart.renderStatic(new Vector3(x, y, z), pass)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,8 +31,9 @@ trait TCuboidPart extends TMultiPart {
|
|||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
override def drawBreaking(renderBlocks: RenderBlocks) {
|
override def drawBreaking(renderBlocks: RenderBlocks) {
|
||||||
CCRenderState.reset()
|
val state = CCRenderState.instance
|
||||||
CCRenderState.setPipeline(
|
state.resetInstance()
|
||||||
|
state.setPipelineInstance(
|
||||||
new Translation(x, y, z),
|
new Translation(x, y, z),
|
||||||
new IconTransformation(renderBlocks.overrideBlockTexture)
|
new IconTransformation(renderBlocks.overrideBlockTexture)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,10 +7,13 @@ import cpw.mods.fml.common.event.FMLInitializationEvent
|
|||||||
import cpw.mods.fml.common.Mod.EventHandler
|
import cpw.mods.fml.common.Mod.EventHandler
|
||||||
import cpw.mods.fml.common.event.FMLServerAboutToStartEvent
|
import cpw.mods.fml.common.event.FMLServerAboutToStartEvent
|
||||||
import codechicken.multipart.MultiPartRegistry
|
import codechicken.multipart.MultiPartRegistry
|
||||||
|
import codechicken.multipart.Tags
|
||||||
|
|
||||||
@Mod(
|
@Mod(
|
||||||
modid = "ForgeMultipart",
|
modid = "ForgeMultipart",
|
||||||
|
name = "Forge Multipart",
|
||||||
acceptedMinecraftVersions = "[1.7.10]",
|
acceptedMinecraftVersions = "[1.7.10]",
|
||||||
|
version = Tags.VERSION,
|
||||||
modLanguage = "scala"
|
modLanguage = "scala"
|
||||||
)
|
)
|
||||||
object MultipartMod {
|
object MultipartMod {
|
||||||
|
|||||||
@@ -3,12 +3,17 @@ package codechicken.multipart.minecraft;
|
|||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
|
|
||||||
import codechicken.lib.packet.PacketCustom;
|
import codechicken.lib.packet.PacketCustom;
|
||||||
|
import codechicken.multipart.Tags;
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.common.Mod;
|
import cpw.mods.fml.common.Mod;
|
||||||
import cpw.mods.fml.common.Mod.Instance;
|
import cpw.mods.fml.common.Mod.Instance;
|
||||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||||
|
|
||||||
@Mod(modid = "McMultipart", acceptedMinecraftVersions = "[1.7.10]")
|
@Mod(
|
||||||
|
modid = "McMultipart",
|
||||||
|
name = "Minecraft Multipart Plugin",
|
||||||
|
acceptedMinecraftVersions = "[1.7.10]",
|
||||||
|
version = Tags.VERSION)
|
||||||
public class MinecraftMultipartMod {
|
public class MinecraftMultipartMod {
|
||||||
|
|
||||||
@Instance("McMultipart")
|
@Instance("McMultipart")
|
||||||
|
|||||||
Reference in new issue
Block a user