mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b70f3ed51 | ||
|
|
1c8ceacb7f | ||
|
|
3037e0f583 | ||
|
|
269eff14d3 | ||
|
|
ff2f889c76 | ||
|
|
3218730853 | ||
|
|
e5662ec707 | ||
|
|
6376f78aa5 |
No files matched your search
+2
-1509
File diff suppressed because it is too large.
Load diff
+8
-8
@@ -23,19 +23,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("com.github.GTNewHorizons:waila:1.6.0:dev")
|
api("com.github.GTNewHorizons:waila:1.7.1:dev")
|
||||||
api("com.github.GTNewHorizons:NotEnoughItems:2.3.63-GTNH:dev")
|
api("com.github.GTNewHorizons:NotEnoughItems:2.5.25-GTNH:dev")
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.43.111:dev") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.45.128:dev") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:Botania:1.9.23-GTNH:api") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:Botania:1.10.12-GTNH:api") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:ForestryMC:4.6.10:api") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:ForestryMC:4.8.7:api") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.3.4:dev") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.4.8:dev") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:Chisel:2.11.3-GTNH:api") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:Chisel:2.14.1-GTNH:api") {transitive = false }
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.2.12:dev") {transitive = false }
|
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.3.1:dev") {transitive = false }
|
||||||
|
|
||||||
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") {transitive = false }
|
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") {transitive = false }
|
||||||
compileOnly("curse.maven:guide-api-228832:2287185") {transitive = false }
|
compileOnly("curse.maven:guide-api-228832:2287185") {transitive = false }
|
||||||
|
|||||||
+151
-27
@@ -1,68 +1,192 @@
|
|||||||
modName = Blood Magic: Alchemical Wizardry
|
# 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
|
||||||
|
|
||||||
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
|
# Human-readable mod name, available for mcmod.info population.
|
||||||
|
modName = Blood Magic\: Alchemical Wizardry
|
||||||
|
|
||||||
|
# Case-sensitive identifier string, available for mcmod.info population and used for automatic mixin JSON generation.
|
||||||
|
# Conventionally lowercase.
|
||||||
modId = AWWayofTime
|
modId = AWWayofTime
|
||||||
|
|
||||||
|
# Root package of the mod, used to find various classes in other properties,
|
||||||
|
# mcmod.info substitution, enabling assertions in run tasks, etc.
|
||||||
modGroup = WayofTime.alchemicalWizardry
|
modGroup = WayofTime.alchemicalWizardry
|
||||||
|
|
||||||
# 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"
|
||||||
|
|
||||||
|
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
|
||||||
|
# See https://github.com/bsideup/jabel for details on how this works.
|
||||||
|
enableModernJavaSyntax = false
|
||||||
|
|
||||||
# Generate a class with String fields for the mod id, name, version and group name named with the fields below
|
# Enables injecting missing generics into the decompiled source code for a better coding experience.
|
||||||
generateGradleTokenClass =WayofTime.alchemicalWizardry.Tags
|
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
|
||||||
gradleTokenModId =
|
enableGenericInjection = false
|
||||||
gradleTokenModName =
|
|
||||||
|
# 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 = WayofTime.alchemicalWizardry.Tags
|
||||||
|
|
||||||
|
# Name of the token containing the project's current version to generate/replace.
|
||||||
gradleTokenVersion = VERSION
|
gradleTokenVersion = VERSION
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod ID replacement token.
|
||||||
|
gradleTokenModId =
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod name replacement token.
|
||||||
|
gradleTokenModName =
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod Group replacement token.
|
||||||
gradleTokenGroupName =
|
gradleTokenGroupName =
|
||||||
|
|
||||||
# [DEPRECATED]
|
# [DEPRECATED]
|
||||||
# Multiple source files can be defined here by providing a comma-seperated list: Class1.java,Class2.java,Class3.java
|
# 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";
|
# 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
|
# 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, [...])
|
# version in @Mod([...], version = VERSION, [...]).
|
||||||
# Leave these properties empty to skip individual token replacements
|
# Leave these properties empty to skip individual token replacements.
|
||||||
replaceGradleTokenInFile =
|
replaceGradleTokenInFile =
|
||||||
|
|
||||||
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise you can
|
# 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 = api
|
apiPackage = api
|
||||||
|
|
||||||
# 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.
|
||||||
accessTransformersFile =
|
# Example value: mymodid_at.cfg nei_at.cfg
|
||||||
|
accessTransformersFile = NEI_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
|
||||||
|
|
||||||
|
# Adds some debug arguments like verbose output and class export.
|
||||||
|
usesMixinDebug = false
|
||||||
|
|
||||||
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
# 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 =
|
coreModClass =
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
|
# 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
|
usesShadowedDependencies = false
|
||||||
|
|
||||||
# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
|
# 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 the GTNH maven, CurseMaven, IC2/Player maven, and some more well-known 1.7.10 repositories.
|
||||||
|
includeWellKnownRepositories = true
|
||||||
|
|
||||||
|
# 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.
|
# projects. New projects should not use this parameter.
|
||||||
customArchiveBaseName = BloodMagic
|
customArchiveBaseName = BloodMagic
|
||||||
|
|
||||||
|
# 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.
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
@@ -83,10 +83,8 @@ 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 "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||||
# 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"'
|
|
||||||
|
|
||||||
# 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
|
||||||
@@ -133,10 +131,13 @@ location of your Java installation."
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
JAVACMD=java
|
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.
|
if ! command -v java >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
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
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
location of your Java installation."
|
location of your Java installation."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
# Increase the maximum file descriptors if we can.
|
||||||
@@ -144,7 +145,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 +153,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
|
||||||
@@ -197,11 +198,15 @@ if "$cygwin" || "$msys" ; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Collect all arguments for the java command;
|
|
||||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
# shell script including quotes and variable substitutions, so put them in
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
# double quotes to make sure that they get re-expanded; and
|
|
||||||
# * put everything else in single quotes, so that it's not re-expanded.
|
# Collect all arguments for the java command:
|
||||||
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
|
# and any embedded shellness will be escaped.
|
||||||
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|
||||||
set -- \
|
set -- \
|
||||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
|
|||||||
Vendored
+10
-10
@@ -43,11 +43,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 +57,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.19'
|
||||||
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,7 +6,48 @@ import net.minecraft.item.Item;
|
|||||||
|
|
||||||
import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
|
import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
|
||||||
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmTool;
|
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmTool;
|
||||||
import WayofTime.alchemicalWizardry.common.items.*;
|
import WayofTime.alchemicalWizardry.common.items.AWBaseItems;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ActivationCrystal;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.AirScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ApprenticeBloodOrb;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ArchmageBloodOrb;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ArmourInhibitor;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BlankSpell;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BloodShard;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BoundAxe;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BoundPickaxe;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.BoundShovel;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.CheatyItem;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.CreativeDagger;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DaggerOfSacrifice;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DawnScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DemonPlacer;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DemonicTelepositionFocus;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.DuskScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EarthScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyBazooka;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergyBlast;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnergySword;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.EnhancedTelepositionFocus;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.FireScribeTool;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemAlchemyBase;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemBloodLetterPack;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemComplexSpellCrystal;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemComponents;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemDiabloKey;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemIncense;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemRitualDismantler;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ItemRitualDiviner;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.LavaCrystal;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.LifeBucket;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.MagicianBloodOrb;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.MasterBloodOrb;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.ReinforcedTelepositionFocus;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.SacrificialDagger;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.TelepositionFocus;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.TranscendentBloodOrb;
|
||||||
|
import WayofTime.alchemicalWizardry.common.items.WaterScribeTool;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
|
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourEarth;
|
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourEarth;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourFire;
|
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourFire;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package WayofTime.alchemicalWizardry.client.nei;
|
package WayofTime.alchemicalWizardry.client.nei;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.Point;
|
||||||
|
import java.awt.Rectangle;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@@ -10,7 +11,6 @@ import java.util.stream.Collectors;
|
|||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.resources.I18n;
|
import net.minecraft.client.resources.I18n;
|
||||||
import net.minecraft.init.Blocks;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
|||||||
|
|
||||||
float totalMeteorWeight = meteor.getTotalMeteorWeight();
|
float totalMeteorWeight = meteor.getTotalMeteorWeight();
|
||||||
List<MeteorParadigmComponent> sortedComponents = new ArrayList<>(meteor.componentList);
|
List<MeteorParadigmComponent> sortedComponents = new ArrayList<>(meteor.componentList);
|
||||||
sortedComponents.sort(Comparator.comparingInt(c -> -c.chance));
|
sortedComponents.sort(Comparator.comparingInt(c -> -c.getChance()));
|
||||||
|
|
||||||
for (MeteorParadigmComponent component : sortedComponents) {
|
for (MeteorParadigmComponent component : sortedComponents) {
|
||||||
ItemStack stack = component.getValidBlockParadigm();
|
ItemStack stack = component.getValidBlockParadigm();
|
||||||
@@ -50,10 +50,6 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
|||||||
int yPos = 37 + 18 * row;
|
int yPos = 37 + 18 * row;
|
||||||
|
|
||||||
List<String> tooltips = new ArrayList<>();
|
List<String> tooltips = new ArrayList<>();
|
||||||
if (stack == null) {
|
|
||||||
stack = new ItemStack(Blocks.fire);
|
|
||||||
tooltips.add(String.format("no entries found for oredict \"%s\"", component.getOreDictName()));
|
|
||||||
}
|
|
||||||
float chance = component.getChance() / totalMeteorWeight;
|
float chance = component.getChance() / totalMeteorWeight;
|
||||||
tooltips.add(I18n.format("nei.recipe.meteor.chance", getFormattedChance(chance)));
|
tooltips.add(I18n.format("nei.recipe.meteor.chance", getFormattedChance(chance)));
|
||||||
tooltips.add(I18n.format("nei.recipe.meteor.amount", getEstimatedAmount(chance, meteor.radius)));
|
tooltips.add(I18n.format("nei.recipe.meteor.amount", getEstimatedAmount(chance, meteor.radius)));
|
||||||
@@ -182,7 +178,7 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
|||||||
public List<String> handleItemTooltip(GuiRecipe<?> gui, ItemStack stack, List<String> currenttip, int recipe) {
|
public List<String> handleItemTooltip(GuiRecipe<?> gui, ItemStack stack, List<String> currenttip, int recipe) {
|
||||||
CachedMeteorRecipe meteorRecipe = (CachedMeteorRecipe) this.arecipes.get(recipe);
|
CachedMeteorRecipe meteorRecipe = (CachedMeteorRecipe) this.arecipes.get(recipe);
|
||||||
for (PositionedStack pStack : meteorRecipe.outputs) {
|
for (PositionedStack pStack : meteorRecipe.outputs) {
|
||||||
if (!gui.isMouseOver(pStack, recipe)) continue;
|
// if (!gui.isMouseOver(pStack, recipe)) continue; // put it back when NEI is properly patched
|
||||||
if (!(pStack instanceof TooltipStack)) break;
|
if (!(pStack instanceof TooltipStack)) break;
|
||||||
|
|
||||||
TooltipStack tStack = (TooltipStack) pStack;
|
TooltipStack tStack = (TooltipStack) pStack;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package WayofTime.alchemicalWizardry.common;
|
package WayofTime.alchemicalWizardry.common;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.BitSet;
|
||||||
import java.util.EnumMap;
|
import java.util.EnumMap;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -10,6 +12,7 @@ import net.minecraft.entity.player.EntityPlayerMP;
|
|||||||
import net.minecraft.network.Packet;
|
import net.minecraft.network.Packet;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.chunk.Chunk;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
@@ -77,6 +80,8 @@ public enum NewPacketHandler {
|
|||||||
.addAfter(tileAltarCodec, "CurrentReagentBarMessageHandler", new CurrentReagentBarMessageHandler());
|
.addAfter(tileAltarCodec, "CurrentReagentBarMessageHandler", new CurrentReagentBarMessageHandler());
|
||||||
clientChannel.pipeline()
|
clientChannel.pipeline()
|
||||||
.addAfter(tileAltarCodec, "CurrentAddedHPMessageHandler", new CurrentAddedHPMessageHandler());
|
.addAfter(tileAltarCodec, "CurrentAddedHPMessageHandler", new CurrentAddedHPMessageHandler());
|
||||||
|
clientChannel.pipeline()
|
||||||
|
.addAfter(tileAltarCodec, "GaiaBiomeChangeHandler", new GaiaBiomeChangeMessageHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.SERVER)
|
@SideOnly(Side.SERVER)
|
||||||
@@ -283,6 +288,23 @@ public enum NewPacketHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static class GaiaBiomeChangeMessageHandler extends SimpleChannelInboundHandler<GaiaBiomeChangeMessage> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void channelRead0(ChannelHandlerContext ctx, GaiaBiomeChangeMessage msg) throws Exception {
|
||||||
|
Chunk chunk = AlchemicalWizardry.proxy.getClientWorld().getChunkFromChunkCoords(msg.chunkX, msg.chunkZ);
|
||||||
|
if (chunk != null) {
|
||||||
|
byte[] biomeArray = chunk.getBiomeArray();
|
||||||
|
for (int i = 0; i < 16 * 16; ++i) {
|
||||||
|
if (msg.mask.get(i)) {
|
||||||
|
biomeArray[i] = msg.biome;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
chunk.setBiomeArray(biomeArray);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static class BMMessage {
|
public static class BMMessage {
|
||||||
|
|
||||||
int index;
|
int index;
|
||||||
@@ -417,6 +439,16 @@ public enum NewPacketHandler {
|
|||||||
byte keyPressed;
|
byte keyPressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class GaiaBiomeChangeMessage extends BMMessage {
|
||||||
|
|
||||||
|
int chunkX;
|
||||||
|
int chunkZ;
|
||||||
|
byte biome;
|
||||||
|
BitSet mask;
|
||||||
|
// One bit per coordinate in a chunk, 16*16 bits = 32 bytes
|
||||||
|
public static final int maskByteCount = 32;
|
||||||
|
}
|
||||||
|
|
||||||
private class ClientToServerCodec extends FMLIndexedMessageToMessageCodec<BMMessage> {
|
private class ClientToServerCodec extends FMLIndexedMessageToMessageCodec<BMMessage> {
|
||||||
|
|
||||||
public ClientToServerCodec() {}
|
public ClientToServerCodec() {}
|
||||||
@@ -458,6 +490,7 @@ public enum NewPacketHandler {
|
|||||||
addDiscriminator(12, CurrentReagentBarMessage.class);
|
addDiscriminator(12, CurrentReagentBarMessage.class);
|
||||||
addDiscriminator(13, CurrentAddedHPMessage.class);
|
addDiscriminator(13, CurrentAddedHPMessage.class);
|
||||||
addDiscriminator(14, KeyboardMessage.class);
|
addDiscriminator(14, KeyboardMessage.class);
|
||||||
|
addDiscriminator(15, GaiaBiomeChangeMessage.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -669,6 +702,17 @@ public enum NewPacketHandler {
|
|||||||
|
|
||||||
target.writeByte(((KeyboardMessage) msg).keyPressed);
|
target.writeByte(((KeyboardMessage) msg).keyPressed);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 15:
|
||||||
|
target.writeInt(((GaiaBiomeChangeMessage) msg).chunkX);
|
||||||
|
target.writeInt(((GaiaBiomeChangeMessage) msg).chunkZ);
|
||||||
|
target.writeByte(((GaiaBiomeChangeMessage) msg).biome);
|
||||||
|
byte[] arr = Arrays.copyOf(
|
||||||
|
((GaiaBiomeChangeMessage) msg).mask.toByteArray(),
|
||||||
|
GaiaBiomeChangeMessage.maskByteCount);
|
||||||
|
target.writeBytes(arr);
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -894,6 +938,16 @@ public enum NewPacketHandler {
|
|||||||
System.out.println("Packet recieved: being decoded");
|
System.out.println("Packet recieved: being decoded");
|
||||||
((KeyboardMessage) msg).keyPressed = dat.readByte();
|
((KeyboardMessage) msg).keyPressed = dat.readByte();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 15:
|
||||||
|
((GaiaBiomeChangeMessage) msg).chunkX = dat.readInt();
|
||||||
|
((GaiaBiomeChangeMessage) msg).chunkZ = dat.readInt();
|
||||||
|
((GaiaBiomeChangeMessage) msg).biome = dat.readByte();
|
||||||
|
|
||||||
|
byte[] buffer = new byte[GaiaBiomeChangeMessage.maskByteCount];
|
||||||
|
dat.readBytes(buffer);
|
||||||
|
((GaiaBiomeChangeMessage) msg).mask = BitSet.valueOf(buffer);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1067,6 +1121,17 @@ public enum NewPacketHandler {
|
|||||||
return INSTANCE.channels.get(Side.CLIENT).generatePacketFrom(msg);
|
return INSTANCE.channels.get(Side.CLIENT).generatePacketFrom(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Packet getGaiaBiomeChangePacket(int x, int z, byte biome, BitSet mask) {
|
||||||
|
GaiaBiomeChangeMessage msg = new GaiaBiomeChangeMessage();
|
||||||
|
msg.index = 15;
|
||||||
|
msg.chunkX = x;
|
||||||
|
msg.chunkZ = z;
|
||||||
|
msg.biome = biome;
|
||||||
|
msg.mask = mask;
|
||||||
|
|
||||||
|
return INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
|
||||||
|
}
|
||||||
|
|
||||||
public void sendTo(Packet message, EntityPlayerMP player) {
|
public void sendTo(Packet message, EntityPlayerMP player) {
|
||||||
this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
||||||
.set(FMLOutboundHandler.OutboundTarget.PLAYER);
|
.set(FMLOutboundHandler.OutboundTarget.PLAYER);
|
||||||
@@ -1087,6 +1152,13 @@ public enum NewPacketHandler {
|
|||||||
this.channels.get(Side.SERVER).writeAndFlush(message);
|
this.channels.get(Side.SERVER).writeAndFlush(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void sendToDimension(Packet message, Integer dimensionId) {
|
||||||
|
this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
||||||
|
.set(FMLOutboundHandler.OutboundTarget.DIMENSION);
|
||||||
|
this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(dimensionId);
|
||||||
|
this.channels.get(Side.SERVER).writeAndFlush(message);
|
||||||
|
}
|
||||||
|
|
||||||
public void sendToServer(Packet message) {
|
public void sendToServer(Packet message) {
|
||||||
this.channels.get(Side.CLIENT).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
this.channels.get(Side.CLIENT).attr(FMLOutboundHandler.FML_MESSAGETARGET)
|
||||||
.set(FMLOutboundHandler.OutboundTarget.TOSERVER);
|
.set(FMLOutboundHandler.OutboundTarget.TOSERVER);
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.commands;
|
package WayofTime.alchemicalWizardry.common.commands;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import net.minecraft.command.CommandBase;
|
import net.minecraft.command.CommandBase;
|
||||||
import net.minecraft.command.ICommandSender;
|
import net.minecraft.command.ICommandSender;
|
||||||
|
|||||||
@@ -3,7 +3,15 @@ package WayofTime.alchemicalWizardry.common.entity.mob;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.SharedMonsterAttributes;
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+10
-1
@@ -3,7 +3,16 @@ package WayofTime.alchemicalWizardry.common.entity.mob;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.SharedMonsterAttributes;
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILeapAtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+14
-2
@@ -1,7 +1,19 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.entity.mob;
|
package WayofTime.alchemicalWizardry.common.entity.mob;
|
||||||
|
|
||||||
import net.minecraft.entity.*;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
import net.minecraft.entity.IRangedAttackMob;
|
||||||
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
|
import net.minecraft.entity.ai.EntityAIArrowAttack;
|
||||||
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+9
-1
@@ -3,7 +3,15 @@ package WayofTime.alchemicalWizardry.common.entity.mob;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.SharedMonsterAttributes;
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
@@ -3,7 +3,15 @@ package WayofTime.alchemicalWizardry.common.entity.mob;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.SharedMonsterAttributes;
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+14
-2
@@ -1,7 +1,19 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.entity.mob;
|
package WayofTime.alchemicalWizardry.common.entity.mob;
|
||||||
|
|
||||||
import net.minecraft.entity.*;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
import net.minecraft.entity.IRangedAttackMob;
|
||||||
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
|
import net.minecraft.entity.ai.EntityAIArrowAttack;
|
||||||
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+14
-2
@@ -1,7 +1,19 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.entity.mob;
|
package WayofTime.alchemicalWizardry.common.entity.mob;
|
||||||
|
|
||||||
import net.minecraft.entity.*;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.ai.*;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
import net.minecraft.entity.IRangedAttackMob;
|
||||||
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
|
import net.minecraft.entity.ai.EntityAIArrowAttack;
|
||||||
|
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
|
||||||
|
import net.minecraft.entity.ai.EntityAIFollowOwner;
|
||||||
|
import net.minecraft.entity.ai.EntityAIHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtByTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAIOwnerHurtTarget;
|
||||||
|
import net.minecraft.entity.ai.EntityAISwimming;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWander;
|
||||||
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.EntityCreeper;
|
import net.minecraft.entity.monster.EntityCreeper;
|
||||||
import net.minecraft.entity.monster.EntityGhast;
|
import net.minecraft.entity.monster.EntityGhast;
|
||||||
import net.minecraft.entity.passive.EntityHorse;
|
import net.minecraft.entity.passive.EntityHorse;
|
||||||
|
|||||||
+5
-1
@@ -19,7 +19,11 @@ import net.minecraftforge.common.util.ForgeDirection;
|
|||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import WayofTime.alchemicalWizardry.api.Int3;
|
import WayofTime.alchemicalWizardry.api.Int3;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.*;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.IReagentHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainerInfo;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack;
|
||||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEReagentConduit;
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEReagentConduit;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|||||||
+5
-1
@@ -17,7 +17,11 @@ import net.minecraft.world.World;
|
|||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.*;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ISegmentedReagentHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainerInfo;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack;
|
||||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
import WayofTime.alchemicalWizardry.api.items.interfaces.IReagentManipulator;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|||||||
@@ -17,7 +17,11 @@ import net.minecraft.util.MovingObjectPosition;
|
|||||||
import net.minecraft.util.StatCollector;
|
import net.minecraft.util.StatCollector;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
import net.minecraftforge.fluids.*;
|
import net.minecraftforge.fluids.Fluid;
|
||||||
|
import net.minecraftforge.fluids.FluidRegistry;
|
||||||
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
|
import net.minecraftforge.fluids.IFluidContainerItem;
|
||||||
|
import net.minecraftforge.fluids.IFluidHandler;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import WayofTime.alchemicalWizardry.api.Int3;
|
import WayofTime.alchemicalWizardry.api.Int3;
|
||||||
|
|||||||
@@ -5,7 +5,13 @@ import net.minecraft.client.renderer.entity.RenderLiving;
|
|||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.common.entity.mob.*;
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityAirElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityEarthElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityFireElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityHolyElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityShadeElemental;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.mob.EntityWaterElemental;
|
||||||
|
|
||||||
public class RenderElemental extends RenderLiving {
|
public class RenderElemental extends RenderLiving {
|
||||||
|
|
||||||
|
|||||||
+8
-1
@@ -9,7 +9,14 @@ import net.minecraft.util.ResourceLocation;
|
|||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
import org.lwjgl.opengl.GL12;
|
import org.lwjgl.opengl.GL12;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.common.entity.projectile.*;
|
import WayofTime.alchemicalWizardry.common.entity.projectile.ExplosionProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.FireProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.HolyProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.IceProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.LightningBoltProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.MudProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.WaterProjectile;
|
||||||
|
import WayofTime.alchemicalWizardry.common.entity.projectile.WindGustProjectile;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
|
|||||||
+59
-61
@@ -1,7 +1,11 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.rituals;
|
package WayofTime.alchemicalWizardry.common.rituals;
|
||||||
|
|
||||||
|
import java.util.ArrayDeque;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.BitSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Queue;
|
||||||
|
import java.util.function.BiConsumer;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.entity.effect.EntityLightningBolt;
|
import net.minecraft.entity.effect.EntityLightningBolt;
|
||||||
@@ -24,6 +28,7 @@ import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
|||||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.common.NewPacketHandler;
|
||||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEPlinth;
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEPlinth;
|
||||||
|
|
||||||
@@ -75,61 +80,38 @@ public class RitualEffectBiomeChanger extends RitualEffect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolList[range][range] = true;
|
boolList[range][range] = true;
|
||||||
boolean isReady = false;
|
|
||||||
|
|
||||||
while (!isReady) {
|
Queue<Integer> BFSqueue = new ArrayDeque<>();
|
||||||
isReady = true;
|
BFSqueue.add(x);
|
||||||
|
BFSqueue.add(z);
|
||||||
|
|
||||||
for (int i = 0; i < 2 * range + 1; i++) {
|
BiConsumer<Integer, Integer> tryEnqueue = (nextX, nextZ) -> {
|
||||||
for (int j = 0; j < 2 * range + 1; j++) {
|
if (Math.abs(nextX - x) > range || Math.abs(nextZ - z) > range) return;
|
||||||
if (boolList[i][j]) {
|
if (boolList[nextX - (x - range)][nextZ - (z - range)]) return;
|
||||||
if (i - 1 >= 0 && !boolList[i - 1][j]) {
|
|
||||||
Block block = world.getBlock(x - range + i - 1, y + 1, z - range + j);
|
|
||||||
|
|
||||||
if (!ModBlocks.largeBloodStoneBrick.equals(block)
|
Block block = world.getBlock(nextX, y + 1, nextZ);
|
||||||
&& !ModBlocks.bloodStoneBrick.equals(block)) {
|
if (block == null || block.equals(ModBlocks.bloodStoneBrick)
|
||||||
boolList[i - 1][j] = true;
|
|| block.equals(ModBlocks.largeBloodStoneBrick))
|
||||||
isReady = false;
|
return;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (j - 1 >= 0 && !boolList[i][j - 1]) {
|
boolList[nextX - (x - range)][nextZ - (z - range)] = true;
|
||||||
Block block = world.getBlock(x - range + i, y + 1, z - range + j - 1);
|
BFSqueue.add(nextX);
|
||||||
|
BFSqueue.add(nextZ);
|
||||||
|
};
|
||||||
|
|
||||||
if (!ModBlocks.largeBloodStoneBrick.equals(block)
|
while (!BFSqueue.isEmpty()) {
|
||||||
&& !ModBlocks.bloodStoneBrick.equals(block)) {
|
Integer curX = BFSqueue.remove();
|
||||||
boolList[i][j - 1] = true;
|
Integer curZ = BFSqueue.remove();
|
||||||
isReady = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i + 1 <= 2 * range && !boolList[i + 1][j]) {
|
tryEnqueue.accept(curX + 1, curZ);
|
||||||
Block block = world.getBlock(x - range + i + 1, y + 1, z - range + j);
|
tryEnqueue.accept(curX, curZ + 1);
|
||||||
|
tryEnqueue.accept(curX - 1, curZ);
|
||||||
if (!ModBlocks.largeBloodStoneBrick.equals(block)
|
tryEnqueue.accept(curX, curZ - 1);
|
||||||
&& !ModBlocks.bloodStoneBrick.equals(block)) {
|
|
||||||
boolList[i + 1][j] = true;
|
|
||||||
isReady = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (j + 1 <= 2 * range && !boolList[i][j + 1]) {
|
|
||||||
Block block = world.getBlock(x - range + i, y + 1, z - range + j + 1);
|
|
||||||
|
|
||||||
if (!ModBlocks.largeBloodStoneBrick.equals(block)
|
|
||||||
&& !ModBlocks.bloodStoneBrick.equals(block)) {
|
|
||||||
boolList[i][j + 1] = true;
|
|
||||||
isReady = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float temperature = 0.5f;
|
float temperature = 0.5f;
|
||||||
float humidity = 0.5f;
|
float humidity = 0.5f;
|
||||||
float acceptableRange = 0.1f;
|
float acceptableRange = 0.0999f;
|
||||||
int biomeSkip = 0;
|
int biomeSkip = 0;
|
||||||
|
|
||||||
for (int i = -1; i <= 1; i++) {
|
for (int i = -1; i <= 1; i++) {
|
||||||
@@ -240,26 +222,42 @@ public class RitualEffectBiomeChanger extends RitualEffect {
|
|||||||
biomeID = 1;
|
biomeID = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 2 * range + 1; i++) {
|
List<Chunk> chunkList = new ArrayList<>();
|
||||||
for (int j = 0; j < 2 * range + 1; j++) {
|
|
||||||
if (boolList[i][j]) {
|
|
||||||
Chunk chunk = world.getChunkFromBlockCoords(x - range + i, z - range + j);
|
|
||||||
byte[] byteArray = chunk.getBiomeArray();
|
|
||||||
int moduX = (x - range + i) % 16;
|
|
||||||
int moduZ = (z - range + j) % 16;
|
|
||||||
|
|
||||||
if (moduX < 0) {
|
for (int chunkX = (x - range) >> 4; chunkX <= (x + range) >> 4; ++chunkX) {
|
||||||
moduX = moduX + 16;
|
for (int chunkZ = (z - range) >> 4; chunkZ <= (z + range) >> 4; ++chunkZ) {
|
||||||
|
chunkList.add(world.getChunkFromChunkCoords(chunkX, chunkZ));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Chunk chunk : chunkList) {
|
||||||
|
byte[] byteArray = chunk.getBiomeArray();
|
||||||
|
BitSet mask = new BitSet();
|
||||||
|
boolean changed = false;
|
||||||
|
|
||||||
|
for (int cZ = 0; cZ < 16; ++cZ) {
|
||||||
|
int offsetZ = (chunk.zPosition << 4 | cZ) - (z - range);
|
||||||
|
if (0 <= offsetZ && offsetZ < 2 * range + 1) {
|
||||||
|
for (int cX = 0; cX < 16; ++cX) {
|
||||||
|
int offsetX = (chunk.xPosition << 4 | cX) - (x - range);
|
||||||
|
if (0 <= offsetX && offsetX < 2 * range + 1) {
|
||||||
|
if (boolList[offsetX][offsetZ]) {
|
||||||
|
mask.set(cZ << 4 | cX, true);
|
||||||
|
byteArray[cZ << 4 | cX] = (byte) biomeID;
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (moduZ < 0) {
|
|
||||||
moduZ = moduZ + 16;
|
|
||||||
}
|
|
||||||
|
|
||||||
byteArray[moduZ * 16 + moduX] = (byte) biomeID;
|
|
||||||
chunk.setBiomeArray(byteArray);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (changed) {
|
||||||
|
chunk.setBiomeArray(byteArray);
|
||||||
|
NewPacketHandler.INSTANCE.sendToDimension(
|
||||||
|
NewPacketHandler
|
||||||
|
.getGaiaBiomeChangePacket(chunk.xPosition, chunk.zPosition, (byte) biomeID, mask),
|
||||||
|
world.provider.dimensionId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SoulNetworkHandler.syphonFromNetwork(owner, this.getCostPerRefresh());
|
SoulNetworkHandler.syphonFromNetwork(owner, this.getCostPerRefresh());
|
||||||
|
|||||||
+57
-12
@@ -3,15 +3,19 @@ package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
import java.util.regex.Matcher;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import cpw.mods.fml.common.Optional;
|
import cpw.mods.fml.common.Optional;
|
||||||
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import gregtech.common.blocks.GT_TileEntity_Ores;
|
import gregtech.common.blocks.GT_TileEntity_Ores;
|
||||||
|
|
||||||
public class MeteorParadigm {
|
public class MeteorParadigm {
|
||||||
@@ -29,22 +33,67 @@ public class MeteorParadigm {
|
|||||||
this.cost = cost;
|
this.cost = cost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// modId:itemName:meta:weight
|
||||||
|
private static final Pattern itemNamePattern = Pattern.compile("(.*):(.*):(\\d+):(\\d+)");
|
||||||
|
// OREDICT:oreDictName:weight
|
||||||
|
private static final Pattern oredictPattern = Pattern.compile("OREDICT:(.*):(\\d+)");
|
||||||
|
|
||||||
public void parseStringArray(String[] oreArray) {
|
public void parseStringArray(String[] oreArray) {
|
||||||
for (int i = 0; i + 1 < oreArray.length; i += 2) {
|
for (int i = 0; i < oreArray.length; ++i) {
|
||||||
String oreName = oreArray[i];
|
String oreName = oreArray[i];
|
||||||
int oreChance = Integer.parseInt(oreArray[i + 1]);
|
boolean success = false;
|
||||||
MeteorParadigmComponent mpc = new MeteorParadigmComponent(oreName, oreChance);
|
|
||||||
componentList.add(mpc);
|
Matcher matcher = itemNamePattern.matcher(oreName);
|
||||||
|
if (matcher.matches()) {
|
||||||
|
String modID = matcher.group(1);
|
||||||
|
String itemName = matcher.group(2);
|
||||||
|
int meta = Integer.parseInt(matcher.group(3));
|
||||||
|
int weight = Integer.parseInt(matcher.group(4));
|
||||||
|
|
||||||
|
ItemStack stack = GameRegistry.findItemStack(modID, itemName, 1);
|
||||||
|
if (stack != null && stack.getItem() instanceof ItemBlock) {
|
||||||
|
stack.setItemDamage(meta);
|
||||||
|
componentList.add(new MeteorParadigmComponent(stack, weight));
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if ((matcher = oredictPattern.matcher(oreName)).matches()) {
|
||||||
|
String oreDict = matcher.group(1);
|
||||||
|
int weight = Integer.parseInt(matcher.group(2));
|
||||||
|
|
||||||
|
List<ItemStack> list = OreDictionary.getOres(oreDict);
|
||||||
|
for (ItemStack stack : list) {
|
||||||
|
if (stack != null && stack.getItem() instanceof ItemBlock) {
|
||||||
|
componentList.add(new MeteorParadigmComponent(stack, weight));
|
||||||
|
success = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// Legacy config
|
||||||
|
String oreDict = oreName;
|
||||||
|
int weight = Integer.parseInt(oreArray[++i]);
|
||||||
|
|
||||||
|
List<ItemStack> list = OreDictionary.getOres(oreDict);
|
||||||
|
for (ItemStack stack : list) {
|
||||||
|
if (stack != null && stack.getItem() instanceof ItemBlock) {
|
||||||
|
componentList.add(new MeteorParadigmComponent(stack, weight));
|
||||||
|
success = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!success) {
|
||||||
|
AlchemicalWizardry.logger.warn("Unable to add Meteor Paradigm \"" + oreName + "\"");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTotalMeteorWeight() {
|
public int getTotalMeteorWeight() {
|
||||||
int totalMeteorWeight = 0;
|
int totalMeteorWeight = 0;
|
||||||
for (MeteorParadigmComponent mpc : componentList) {
|
for (MeteorParadigmComponent mpc : componentList) {
|
||||||
if (mpc == null || !mpc.isValidBlockParadigm()) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
totalMeteorWeight += mpc.getChance();
|
totalMeteorWeight += mpc.getChance();
|
||||||
}
|
}
|
||||||
return totalMeteorWeight;
|
return totalMeteorWeight;
|
||||||
@@ -99,10 +148,6 @@ public class MeteorParadigm {
|
|||||||
boolean hasPlacedBlock = false;
|
boolean hasPlacedBlock = false;
|
||||||
|
|
||||||
for (MeteorParadigmComponent mpc : componentList) {
|
for (MeteorParadigmComponent mpc : componentList) {
|
||||||
if (mpc == null || !mpc.isValidBlockParadigm()) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
randNum -= mpc.getChance();
|
randNum -= mpc.getChance();
|
||||||
|
|
||||||
if (randNum < 0) {
|
if (randNum < 0) {
|
||||||
|
|||||||
+5
-29
@@ -1,46 +1,22 @@
|
|||||||
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
package WayofTime.alchemicalWizardry.common.summoning.meteor;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import net.minecraft.item.ItemBlock;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
|
||||||
|
|
||||||
public class MeteorParadigmComponent {
|
public class MeteorParadigmComponent {
|
||||||
|
|
||||||
public String oreDictName;
|
protected int chance;
|
||||||
public int chance;
|
protected ItemStack itemStack;
|
||||||
|
|
||||||
public MeteorParadigmComponent(String dictName, int chance) {
|
public MeteorParadigmComponent(ItemStack stack, int chance) {
|
||||||
this.oreDictName = dictName;
|
this.itemStack = stack;
|
||||||
this.chance = chance;
|
this.chance = chance;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidBlockParadigm() {
|
|
||||||
if (this.getValidBlockParadigm() != null) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOreDictName() {
|
|
||||||
return this.oreDictName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getChance() {
|
public int getChance() {
|
||||||
return this.chance;
|
return this.chance;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getValidBlockParadigm() {
|
public ItemStack getValidBlockParadigm() {
|
||||||
List<ItemStack> list = OreDictionary.getOres(getOreDictName());
|
return itemStack;
|
||||||
|
|
||||||
for (ItemStack stack : list) {
|
|
||||||
if (stack != null && stack.getItem() instanceof ItemBlock) {
|
|
||||||
return stack;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,12 @@ import net.minecraftforge.common.util.ForgeDirection;
|
|||||||
|
|
||||||
import WayofTime.alchemicalWizardry.api.ColourAndCoords;
|
import WayofTime.alchemicalWizardry.api.ColourAndCoords;
|
||||||
import WayofTime.alchemicalWizardry.api.Int3;
|
import WayofTime.alchemicalWizardry.api.Int3;
|
||||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.*;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.IReagentHandler;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainer;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.TileSegmentedReagentHandler;
|
||||||
import WayofTime.alchemicalWizardry.common.entity.projectile.EntityParticleBeam;
|
import WayofTime.alchemicalWizardry.common.entity.projectile.EntityParticleBeam;
|
||||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|||||||
File renamed without changes.
Reference in new issue
Block a user