Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f26bd2c290 | ||
|
|
6fea13084d | ||
|
|
5074d8ba1d | ||
|
|
74d1aced60 | ||
|
|
547db6d7d0 | ||
|
|
93dd3c91c2 | ||
|
|
f7a608bf2b | ||
|
|
787bed088f | ||
|
|
d57ee09abf | ||
|
|
6a7262c066 | ||
|
|
31cf03db4e | ||
|
|
224ae70609 | ||
|
|
4d2d360be2 | ||
|
|
eed4618ace | ||
|
|
f3e84bcda0 | ||
|
|
c7e649e292 | ||
|
|
e41e40f425 | ||
|
|
bbd05762d7 | ||
|
|
39f6a92404 | ||
|
|
37ec69859d | ||
|
|
f84acae4c4 | ||
|
|
8541c421eb | ||
|
|
68351caa3f | ||
|
|
cecd0b34ea | ||
|
|
37aac854b5 | ||
|
|
e6fe00e986 | ||
|
|
bf496967aa | ||
|
|
5e1a996798 | ||
|
|
29144cfe3e |
No files matched your search
@@ -1,51 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# bashsupport disable=BP5006 # Global environment variables
|
|
||||||
RUNDIR="run" \
|
|
||||||
CRASH="crash-reports" \
|
|
||||||
SERVERLOG="server.log"
|
|
||||||
|
|
||||||
# enable nullglob to get 0 results when no match rather than the pattern
|
|
||||||
shopt -s nullglob
|
|
||||||
|
|
||||||
# store matches in array
|
|
||||||
crash_reports=("$RUNDIR/$CRASH/crash"*.txt)
|
|
||||||
|
|
||||||
# if array not empty there are crash_reports
|
|
||||||
if [ "${#crash_reports[@]}" -gt 0 ]; then
|
|
||||||
# get the latest crash_report from array
|
|
||||||
latest_crash_report="${crash_reports[-1]}"
|
|
||||||
{
|
|
||||||
printf 'Latest crash report detected %s:\n' "${latest_crash_report##*/}"
|
|
||||||
cat "$latest_crash_report"
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep --quiet --fixed-strings 'Fatal errors were detected' "$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Fatal errors detected:\n'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED' \
|
|
||||||
"$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Server force stopped:'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! grep --quiet --perl-regexp --only-matching '.+Done \(.+\)\! For help, type "help" or "\?"' "$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Server did not finish startup:'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf 'No crash reports detected'
|
|
||||||
exit 0
|
|
||||||
@@ -30,3 +30,4 @@ src/main/resources/mixins.*.json
|
|||||||
*.bat
|
*.bat
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
!gradlew.bat
|
!gradlew.bat
|
||||||
|
layout.json
|
||||||
@@ -1,9 +1,14 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.GTNewHorizons:GT5-Unofficial:5.09.43.07:dev'
|
compileOnly 'com.github.GTNewHorizons:GT5-Unofficial:5.09.46.18:dev'
|
||||||
compile 'com.github.GTNewHorizons:Baubles:1.0.1.16:dev'
|
api 'com.github.GTNewHorizons:Baubles:1.0.4:dev'
|
||||||
|
api 'com.github.GTNewHorizons:ModularUI:1.2.0:dev'
|
||||||
|
api ('com.github.GTNewHorizons:ThaumicBoots:1.3.0:dev'){
|
||||||
|
exclude group: 'com.github.GTNewHorizons', module: 'Electro-Magic-Tools'
|
||||||
|
}
|
||||||
|
|
||||||
compile 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
|
|
||||||
compile 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev'
|
api 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
|
||||||
|
api 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev'
|
||||||
}
|
}
|
||||||
@@ -1,64 +1,192 @@
|
|||||||
|
# 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 = Electro-Magic Tools
|
modName = Electro-Magic Tools
|
||||||
|
|
||||||
# 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 = EMT
|
modId = EMT
|
||||||
|
|
||||||
|
# Root package of the mod, used to find various classes in other properties,
|
||||||
|
# mcmod.info substitution, enabling assertions in run tasks, etc.
|
||||||
modGroup = emt
|
modGroup = emt
|
||||||
|
|
||||||
# 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 username 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.
|
||||||
|
# See https://github.com/bsideup/jabel for details on how this works.
|
||||||
|
enableModernJavaSyntax = true
|
||||||
|
|
||||||
|
# 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 = true
|
||||||
|
|
||||||
|
# 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 =
|
||||||
|
|
||||||
|
# Name of the token containing the project's current version to generate/replace.
|
||||||
|
gradleTokenVersion = GRADLETOKEN_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";
|
# 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 = EMT.java
|
replaceGradleTokenInFile = EMT.java
|
||||||
gradleTokenModId =
|
|
||||||
gradleTokenModName =
|
|
||||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
|
||||||
gradleTokenGroupName =
|
|
||||||
|
|
||||||
# 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 =
|
apiPackage =
|
||||||
|
|
||||||
# Specify the configuration file for Forge's access transformers here. It 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 =
|
accessTransformersFile =
|
||||||
|
|
||||||
# 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 compatibility 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 'shadowCompile' 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, Modrinth, 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 =
|
# 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
|
||||||
|
|
||||||
@@ -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.7-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" \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -1,28 +1,4 @@
|
|||||||
// Add any additional repositiroes for your dependencies here
|
// Add any additional repositories for your dependencies here
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
|
||||||
name 'GTNH Maven'
|
|
||||||
url 'http://jenkins.usrv.eu:8081/nexus/content/groups/public/'
|
|
||||||
allowInsecureProtocol
|
|
||||||
}
|
|
||||||
mavenCentral()
|
|
||||||
maven {
|
|
||||||
name 'ic2'
|
|
||||||
url 'https://maven.ic2.player.to/'
|
|
||||||
metadataSources {
|
|
||||||
mavenPom()
|
|
||||||
artifact()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
url 'https://cursemaven.com'
|
|
||||||
content {
|
|
||||||
includeGroup "curse.maven"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
maven {
|
|
||||||
url 'https://jitpack.io'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -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.22'
|
||||||
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
|
|
||||||
}
|
|
||||||
@@ -7,6 +7,7 @@ import org.apache.logging.log4j.LogManager;
|
|||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
|
import cpw.mods.fml.common.Loader;
|
||||||
import cpw.mods.fml.common.Mod;
|
import cpw.mods.fml.common.Mod;
|
||||||
import cpw.mods.fml.common.SidedProxy;
|
import cpw.mods.fml.common.SidedProxy;
|
||||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||||
@@ -19,12 +20,16 @@ import cpw.mods.fml.relauncher.Side;
|
|||||||
import emt.command.CommandOutputs;
|
import emt.command.CommandOutputs;
|
||||||
import emt.init.EMTEntities;
|
import emt.init.EMTEntities;
|
||||||
import emt.init.Registry;
|
import emt.init.Registry;
|
||||||
import emt.nei.NEI_Config;
|
|
||||||
import emt.network.PacketEMTKeys;
|
import emt.network.PacketEMTKeys;
|
||||||
import emt.network.PacketNodeInfo;
|
import emt.network.PacketNodeInfo;
|
||||||
import emt.proxy.CommonProxy;
|
import emt.proxy.CommonProxy;
|
||||||
import emt.tile.solar.Solars;
|
import emt.tile.solar.Solars;
|
||||||
import emt.util.*;
|
import emt.util.EMTClientEventHandler;
|
||||||
|
import emt.util.EMTConfigHandler;
|
||||||
|
import emt.util.EMTCreativeTab;
|
||||||
|
import emt.util.EMTDungeonChestGenerator;
|
||||||
|
import emt.util.EMTEssentiasOutputs;
|
||||||
|
import emt.util.EMTEventHandler;
|
||||||
|
|
||||||
@Mod(
|
@Mod(
|
||||||
modid = EMT.MOD_ID,
|
modid = EMT.MOD_ID,
|
||||||
@@ -42,12 +47,15 @@ public class EMT {
|
|||||||
public static final String CLIENT_PROXY = "emt.proxy.ClientProxy";
|
public static final String CLIENT_PROXY = "emt.proxy.ClientProxy";
|
||||||
public static final String COMMON_PROXY = "emt.proxy.CommonProxy";
|
public static final String COMMON_PROXY = "emt.proxy.CommonProxy";
|
||||||
public static final String CHANNEL = "EMT";
|
public static final String CHANNEL = "EMT";
|
||||||
public static final String DEPENDS = "required-after:Thaumcraft;" + "required-after:IC2;"
|
public static final String DEPENDS = """
|
||||||
+ "required-after:gregtech;"
|
required-after:Thaumcraft;\
|
||||||
+ "after:Avaritia;"
|
required-after:IC2;\
|
||||||
+ "after:MagicBees;"
|
required-after:modularui;\
|
||||||
+ "after:ForbiddenMagic;"
|
after:gregtech;\
|
||||||
+ "after:dreamcraft;";
|
after:Avaritia;\
|
||||||
|
after:MagicBees;\
|
||||||
|
after:ForbiddenMagic;\
|
||||||
|
after:dreamcraft""";
|
||||||
public static final CreativeTabs TAB = new EMTCreativeTab("EMT.creativeTab");
|
public static final CreativeTabs TAB = new EMTCreativeTab("EMT.creativeTab");
|
||||||
public static final Logger LOGGER = LogManager.getLogger("Electro-Magic Tools");
|
public static final Logger LOGGER = LogManager.getLogger("Electro-Magic Tools");
|
||||||
public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel("EMT");
|
public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel("EMT");
|
||||||
@@ -58,12 +66,18 @@ public class EMT {
|
|||||||
@Mod.Instance("EMT")
|
@Mod.Instance("EMT")
|
||||||
public static EMT instance;
|
public static EMT instance;
|
||||||
|
|
||||||
|
public static boolean isBootsActive = false;
|
||||||
|
public static final String BOOTS = "thaumicboots";
|
||||||
|
|
||||||
public boolean isSimulating() {
|
public boolean isSimulating() {
|
||||||
return !FMLCommonHandler.instance().getEffectiveSide().isClient();
|
return !FMLCommonHandler.instance().getEffectiveSide().isClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mod.EventHandler
|
@Mod.EventHandler
|
||||||
public void preInit(FMLPreInitializationEvent event) {
|
public void preInit(FMLPreInitializationEvent event) {
|
||||||
|
if (Loader.isModLoaded(BOOTS)) {
|
||||||
|
isBootsActive = true;
|
||||||
|
}
|
||||||
EMTConfigHandler.init(event.getSuggestedConfigurationFile());
|
EMTConfigHandler.init(event.getSuggestedConfigurationFile());
|
||||||
FMLCommonHandler.instance().bus().register(new EMTEventHandler());
|
FMLCommonHandler.instance().bus().register(new EMTEventHandler());
|
||||||
if (FMLCommonHandler.instance().getSide().isClient()) {
|
if (FMLCommonHandler.instance().getSide().isClient()) {
|
||||||
@@ -72,7 +86,9 @@ public class EMT {
|
|||||||
Registry.registerPreInit();
|
Registry.registerPreInit();
|
||||||
EMTEssentiasOutputs.addPrimalOutputs();
|
EMTEssentiasOutputs.addPrimalOutputs();
|
||||||
registerPackets();
|
registerPackets();
|
||||||
Solars.populateCache();
|
if (Registry.enableGTCompat) {
|
||||||
|
Solars.populateCache();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mod.EventHandler
|
@Mod.EventHandler
|
||||||
@@ -85,8 +101,6 @@ public class EMT {
|
|||||||
}
|
}
|
||||||
EMTDungeonChestGenerator.generateLoot();
|
EMTDungeonChestGenerator.generateLoot();
|
||||||
EMTEntities.registerEMTEntities();
|
EMTEntities.registerEMTEntities();
|
||||||
|
|
||||||
NEI_Config.Init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mod.EventHandler
|
@Mod.EventHandler
|
||||||
@@ -101,6 +115,8 @@ public class EMT {
|
|||||||
|
|
||||||
public void registerPackets() {
|
public void registerPackets() {
|
||||||
INSTANCE.registerMessage(PacketEMTKeys.class, PacketEMTKeys.class, 0, Side.SERVER);
|
INSTANCE.registerMessage(PacketEMTKeys.class, PacketEMTKeys.class, 0, Side.SERVER);
|
||||||
INSTANCE.registerMessage(PacketNodeInfo.class, PacketNodeInfo.class, 1, Side.CLIENT);
|
if (Registry.enableGTCompat) {
|
||||||
|
INSTANCE.registerMessage(PacketNodeInfo.class, PacketNodeInfo.class, 1, Side.CLIENT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -51,7 +51,7 @@ public class BlockEssentiaGenerators extends BlockBaseContainer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubBlocks(Item id, CreativeTabs tab, List list) {
|
public void getSubBlocks(Item id, CreativeTabs tab, List<ItemStack> list) {
|
||||||
list.add(new ItemStack(id, 1, 0));
|
list.add(new ItemStack(id, 1, 0));
|
||||||
list.add(new ItemStack(id, 1, 1));
|
list.add(new ItemStack(id, 1, 1));
|
||||||
list.add(new ItemStack(id, 1, 2));
|
list.add(new ItemStack(id, 1, 2));
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import com.gtnewhorizons.modularui.api.UIInfos;
|
|||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import emt.EMT;
|
import emt.EMT;
|
||||||
import emt.gthandler.common.implementations.automation.EssentiaFiller;
|
|
||||||
import emt.tile.TileEntityEtherealMacerator;
|
import emt.tile.TileEntityEtherealMacerator;
|
||||||
import emt.tile.TileEntityIndustrialWandRecharge;
|
import emt.tile.TileEntityIndustrialWandRecharge;
|
||||||
import ic2.api.item.IC2Items;
|
import ic2.api.item.IC2Items;
|
||||||
@@ -61,7 +60,7 @@ public class BlockMachines extends BlockBaseContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubBlocks(Item id, CreativeTabs tab, List list) {
|
public void getSubBlocks(Item id, CreativeTabs tab, List<ItemStack> list) {
|
||||||
list.add(new ItemStack(id, 1, 0));
|
list.add(new ItemStack(id, 1, 0));
|
||||||
list.add(new ItemStack(id, 1, 1));
|
list.add(new ItemStack(id, 1, 1));
|
||||||
list.add(new ItemStack(id, 1, 2));
|
list.add(new ItemStack(id, 1, 2));
|
||||||
@@ -73,8 +72,6 @@ public class BlockMachines extends BlockBaseContainer {
|
|||||||
return new TileEntityIndustrialWandRecharge();
|
return new TileEntityIndustrialWandRecharge();
|
||||||
} else if (meta == 1) {
|
} else if (meta == 1) {
|
||||||
return new TileEntityEtherealMacerator();
|
return new TileEntityEtherealMacerator();
|
||||||
} else if (meta == 2) {
|
|
||||||
return new EssentiaFiller();
|
|
||||||
}
|
}
|
||||||
return super.createTileEntity(world, meta);
|
return super.createTileEntity(world, meta);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public class BlockPortableNode extends BlockAiry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
public TileEntity createNewTileEntity(World worldIn, int meta) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -105,7 +105,7 @@ public class BlockSolars extends BlockBaseContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubBlocks(Item id, CreativeTabs tab, List list) {
|
public void getSubBlocks(Item id, CreativeTabs tab, List<ItemStack> list) {
|
||||||
for (int meta = 0; meta < countOfMetas; meta++) {
|
for (int meta = 0; meta < countOfMetas; meta++) {
|
||||||
list.add(new ItemStack(id, 1, meta));
|
list.add(new ItemStack(id, 1, meta));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class ModelSpecialArmor extends ModelBiped {
|
public class ModelSpecialArmor extends ModelBiped {
|
||||||
|
|
||||||
|
private static ModelSpecialArmor instance;
|
||||||
|
|
||||||
public ModelRenderer rightWing;
|
public ModelRenderer rightWing;
|
||||||
public ModelRenderer leftWing;
|
public ModelRenderer leftWing;
|
||||||
public ModelRenderer center;
|
public ModelRenderer center;
|
||||||
@@ -30,41 +32,43 @@ public class ModelSpecialArmor extends ModelBiped {
|
|||||||
public ModelSpecialArmor(float scale, float offset, int type) {
|
public ModelSpecialArmor(float scale, float offset, int type) {
|
||||||
super(scale, offset, type == 1 ? 128 : 64, type == 0 ? 32 : type == 1 ? 96 : 64);
|
super(scale, offset, type == 1 ? 128 : 64, type == 0 ? 32 : type == 1 ? 96 : 64);
|
||||||
this.type = type;
|
this.type = type;
|
||||||
switch (this.type) {
|
|
||||||
case 1:
|
|
||||||
this.textureWidth = 128;
|
|
||||||
this.textureHeight = 96;
|
|
||||||
this.jetpack = new ModelRenderer(this, 16, 69);
|
|
||||||
this.jetpack.setTextureSize(64, 48);
|
|
||||||
this.jetpack.addBox(-4.0F, -12.0F, -2.0F, 8, 12 * 2, 4, scale * 2);
|
|
||||||
this.jetpack.setRotationPoint(0.0F, 0.0F + offset, 0.0F);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
this.textureWidth = 128;
|
||||||
this.textureWidth = 64;
|
this.textureHeight = 96;
|
||||||
this.textureHeight = 64;
|
this.jetpack = new ModelRenderer(this, 16, 69);
|
||||||
rightWing = new ModelRenderer(this, 24, 0 + 32);
|
this.jetpack.setTextureSize(64, 48);
|
||||||
rightWing.addBox(-11F, -1F, 0F, 11, 13, 1);
|
this.jetpack.addBox(-4.0F, -12.0F, -2.0F, 8, 12 * 2, 4, scale * 2);
|
||||||
rightWing.setRotationPoint(-2F, 0F, 3F);
|
this.jetpack.setRotationPoint(0.0F, 0.0F + offset, 0.0F);
|
||||||
rightWing.setTextureSize(64, 32);
|
|
||||||
rightWing.mirror = false;
|
|
||||||
setRotation(rightWing, 0F, 0.1570796F, 0F);
|
|
||||||
|
|
||||||
leftWing = new ModelRenderer(this, 0, 0 + 32);
|
this.textureWidth = 64;
|
||||||
leftWing.addBox(0F, -1F, 0F, 11, 13, 1);
|
this.textureHeight = 64;
|
||||||
leftWing.setRotationPoint(2F, 0F, 3F);
|
rightWing = new ModelRenderer(this, 24, 0 + 32);
|
||||||
leftWing.setTextureSize(64, 32);
|
rightWing.addBox(-11F, -1F, 0F, 11, 13, 1);
|
||||||
leftWing.mirror = true;
|
rightWing.setRotationPoint(-2F, 0F, 3F);
|
||||||
setRotation(leftWing, 0F, -0.1570796F, 0F);
|
rightWing.setTextureSize(64, 32);
|
||||||
|
rightWing.mirror = false;
|
||||||
|
setRotation(rightWing, 0F, 0.1570796F, 0F);
|
||||||
|
|
||||||
center = new ModelRenderer(this, 0, 14 + 32);
|
leftWing = new ModelRenderer(this, 0, 0 + 32);
|
||||||
center.addBox(0F, 0F, 1F, 8, 14, 1);
|
leftWing.addBox(0F, -1F, 0F, 11, 13, 1);
|
||||||
center.setRotationPoint(-4F, 0F, 3F);
|
leftWing.setRotationPoint(2F, 0F, 3F);
|
||||||
center.setTextureSize(64, 32);
|
leftWing.setTextureSize(64, 32);
|
||||||
center.mirror = true;
|
leftWing.mirror = true;
|
||||||
setRotation(center, 0F, 0F, 0F);
|
setRotation(leftWing, 0F, -0.1570796F, 0F);
|
||||||
break;
|
|
||||||
}
|
center = new ModelRenderer(this, 0, 14 + 32);
|
||||||
|
center.addBox(0F, 0F, 1F, 8, 14, 1);
|
||||||
|
center.setRotationPoint(-4F, 0F, 3F);
|
||||||
|
center.setTextureSize(64, 32);
|
||||||
|
center.mirror = true;
|
||||||
|
setRotation(center, 0F, 0F, 0F);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ModelSpecialArmor getInstance() {
|
||||||
|
if (instance == null) instance = new ModelSpecialArmor();
|
||||||
|
|
||||||
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||||
@@ -96,6 +100,7 @@ public class ModelSpecialArmor extends ModelBiped {
|
|||||||
this.center.render(scale);
|
this.center.render(scale);
|
||||||
this.leftWing.render(scale);
|
this.leftWing.render(scale);
|
||||||
this.rightWing.render(scale);
|
this.rightWing.render(scale);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,6 +110,9 @@ public class ModelSpecialArmor extends ModelBiped {
|
|||||||
if (this.isJumping) {
|
if (this.isJumping) {
|
||||||
this.rightWing.rotateAngleY = 0.5f;
|
this.rightWing.rotateAngleY = 0.5f;
|
||||||
this.leftWing.rotateAngleY = -0.5f;
|
this.leftWing.rotateAngleY = -0.5f;
|
||||||
|
} else {
|
||||||
|
this.rightWing.rotateAngleY = 0.1570796F;
|
||||||
|
this.leftWing.rotateAngleY = -0.1570796F;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isSneak) {
|
if (this.isSneak) {
|
||||||
@@ -113,14 +121,22 @@ public class ModelSpecialArmor extends ModelBiped {
|
|||||||
this.jetpack.rotateAngleX = 0.5F;
|
this.jetpack.rotateAngleX = 0.5F;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
this.center.offsetY -= 0.1;
|
|
||||||
this.rightWing.offsetY -= 0.1;
|
|
||||||
this.leftWing.offsetY -= 0.1;
|
|
||||||
this.center.rotateAngleX = 0.5F;
|
this.center.rotateAngleX = 0.5F;
|
||||||
this.rightWing.rotateAngleX = 0.5F;
|
this.rightWing.rotateAngleX = 0.5F;
|
||||||
this.leftWing.rotateAngleX = 0.5F;
|
this.leftWing.rotateAngleX = 0.5F;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
switch (this.type) {
|
||||||
|
case 1:
|
||||||
|
this.jetpack.rotateAngleX = 0F;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
this.center.rotateAngleX = 0F;
|
||||||
|
this.rightWing.rotateAngleX = 0F;
|
||||||
|
this.leftWing.rotateAngleX = 0F;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,8 +4,14 @@ import net.minecraft.client.model.ModelBiped;
|
|||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class ModelWings extends ModelBiped {
|
public class ModelWings extends ModelBiped {
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private static ModelWings instance = null;
|
||||||
|
|
||||||
public boolean isJumping = false;
|
public boolean isJumping = false;
|
||||||
ModelRenderer rightWing;
|
ModelRenderer rightWing;
|
||||||
ModelRenderer leftWing;
|
ModelRenderer leftWing;
|
||||||
@@ -41,6 +47,12 @@ public class ModelWings extends ModelBiped {
|
|||||||
this.bipedBody.addChild(center);
|
this.bipedBody.addChild(center);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ModelWings getInstance() {
|
||||||
|
if (instance == null) instance = new ModelWings();
|
||||||
|
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||||
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||||
@@ -55,20 +67,25 @@ public class ModelWings extends ModelBiped {
|
|||||||
model.rotateAngleZ = z;
|
model.rotateAngleZ = z;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRotationAngles(float f, float f1, float pt, float f3, float f4, float f5, Entity entity) {
|
public void setRotationAngles(float limbSwing, float limbSwingAmount, float playerTicksExisted,
|
||||||
|
float playerRotationYawHead, float playerRotationPitch, float f5, Entity entity) {
|
||||||
|
|
||||||
if (isJumping) {
|
if (isJumping) {
|
||||||
this.rightWing.rotateAngleY = 0.5f;
|
this.rightWing.rotateAngleY = 0.5f;
|
||||||
this.leftWing.rotateAngleY = -0.5f;
|
this.leftWing.rotateAngleY = -0.5f;
|
||||||
|
} else {
|
||||||
|
this.rightWing.rotateAngleY = 0.1570796F;
|
||||||
|
this.leftWing.rotateAngleY = -0.1570796F;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity.isSneaking()) {
|
if (entity.isSneaking()) {
|
||||||
this.center.offsetY -= 0.1;
|
|
||||||
this.rightWing.offsetY -= 0.1;
|
|
||||||
this.leftWing.offsetY -= 0.1;
|
|
||||||
this.center.rotateAngleX = 0.5F;
|
this.center.rotateAngleX = 0.5F;
|
||||||
this.rightWing.rotateAngleX = 0.5F;
|
this.rightWing.rotateAngleX = 0.5F;
|
||||||
this.leftWing.rotateAngleX = 0.5F;
|
this.leftWing.rotateAngleX = 0.5F;
|
||||||
|
} else {
|
||||||
|
this.center.rotateAngleX = 0.0F;
|
||||||
|
this.rightWing.rotateAngleX = 0;
|
||||||
|
this.leftWing.rotateAngleX = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -89,7 +89,7 @@ public class RenderShield extends Render {
|
|||||||
glTranslated(x, y, z);
|
glTranslated(x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
glCallList(this.glCallList);
|
glCallList(glCallList);
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
glPopAttrib();
|
glPopAttrib();
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ public class CommandOutputs extends CommandBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCommandUsage(ICommandSender p_71518_1_) {
|
public String getCommandUsage(ICommandSender sender) {
|
||||||
return "/emt_outputs";
|
return "/emt_outputs";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ public class CommandOutputs extends CommandBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List addTabCompletionOptions(ICommandSender command, String[] stringArray) {
|
public List<String> addTabCompletionOptions(ICommandSender command, String[] stringArray) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public class EntityEnergyBall extends Entity implements IProjectile, IEntityAddi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Generating Coords for every Entity **/
|
/** Generating Coords for every Entity **/
|
||||||
ArrayList<Entity> entities = new ArrayList();
|
ArrayList<Entity> entities = new ArrayList<>();
|
||||||
|
|
||||||
int chunkSize = ((RADIUS - 1) >> 4) + 2;
|
int chunkSize = ((RADIUS - 1) >> 4) + 2;
|
||||||
|
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ public class EntityLaser extends Entity implements IThrowableEntity, IProjectile
|
|||||||
}
|
}
|
||||||
|
|
||||||
Entity entity = null;
|
Entity entity = null;
|
||||||
List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(
|
List<Entity> list = this.worldObj.getEntitiesWithinAABBExcludingEntity(
|
||||||
this,
|
this,
|
||||||
this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));
|
this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));
|
||||||
double d0 = 0.0D;
|
double d0 = 0.0D;
|
||||||
@@ -173,7 +173,7 @@ public class EntityLaser extends Entity implements IThrowableEntity, IProjectile
|
|||||||
float down;
|
float down;
|
||||||
|
|
||||||
for (l = 0; l < list.size(); ++l) {
|
for (l = 0; l < list.size(); ++l) {
|
||||||
Entity entity1 = (Entity) list.get(l);
|
Entity entity1 = list.get(l);
|
||||||
|
|
||||||
if (entity1.canBeCollidedWith() && (entity1 != this.shootingEntity || this.ticksInAir >= 5)) {
|
if (entity1.canBeCollidedWith() && (entity1 != this.shootingEntity || this.ticksInAir >= 5)) {
|
||||||
down = 0.3F;
|
down = 0.3F;
|
||||||
|
|||||||
@@ -1,64 +0,0 @@
|
|||||||
package emt.gthandler.common.blocks;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.util.IIcon;
|
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import emt.EMT;
|
|
||||||
import emt.gthandler.common.items.EMT_CasingBlock;
|
|
||||||
import gregtech.api.enums.Textures;
|
|
||||||
import gregtech.api.render.TextureFactory;
|
|
||||||
import gregtech.common.blocks.GT_Block_Casings_Abstract;
|
|
||||||
|
|
||||||
public class EMT_GT_Block extends GT_Block_Casings_Abstract {
|
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
private IIcon[] texture;
|
|
||||||
|
|
||||||
private final String[] textureNames;
|
|
||||||
|
|
||||||
public EMT_GT_Block(String[] texture) {
|
|
||||||
super(EMT_CasingBlock.class, "EMT_GTBLOCK_CASEING", Material.anvil);
|
|
||||||
this.setHardness(15.0F);
|
|
||||||
this.setResistance(30.0F);
|
|
||||||
this.textureNames = texture;
|
|
||||||
this.setCreativeTab(EMT.TAB);
|
|
||||||
|
|
||||||
// Taking one texture slot :P
|
|
||||||
Textures.BlockIcons.setCasingTexture((byte) 1, (byte) (15 + 48), TextureFactory.of(this, 7));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int damageDropped(final int meta) {
|
|
||||||
return meta;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void getSubBlocks(final Item item, final CreativeTabs tab, final List list) {
|
|
||||||
for (int i = 0; i < textureNames.length; i++) {
|
|
||||||
list.add(new ItemStack(item, 1, i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public IIcon getIcon(int side, int meta) {
|
|
||||||
return meta < texture.length ? texture[meta] : texture[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public void registerBlockIcons(IIconRegister par1IconRegister) {
|
|
||||||
texture = new IIcon[textureNames.length];
|
|
||||||
for (int i = 0; i < textureNames.length; i++) {
|
|
||||||
texture[i] = par1IconRegister.registerIcon(textureNames[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,163 +0,0 @@
|
|||||||
package emt.gthandler.common.implementations;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
import net.minecraft.nbt.NBTTagList;
|
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
|
||||||
|
|
||||||
import gregtech.api.enums.GT_Values;
|
|
||||||
import gregtech.api.interfaces.ITexture;
|
|
||||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
|
||||||
import gregtech.api.metatileentity.MetaTileEntity;
|
|
||||||
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Input;
|
|
||||||
import thaumcraft.api.aspects.Aspect;
|
|
||||||
import thaumcraft.api.aspects.AspectList;
|
|
||||||
|
|
||||||
public class EssentiaHatch extends GT_MetaTileEntity_Hatch_Input {
|
|
||||||
|
|
||||||
private static int ApTe = (int) Math.ceil(Aspect.aspects.size() / GT_Values.V.length);
|
|
||||||
private AspectList current = new AspectList();
|
|
||||||
|
|
||||||
public EssentiaHatch(int aID, String aName, String aNameRegional, int aTier) {
|
|
||||||
super(aID, aName, aNameRegional, aTier);
|
|
||||||
}
|
|
||||||
|
|
||||||
public EssentiaHatch(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
|
||||||
super(aName, aTier, aDescription, aTextures);
|
|
||||||
}
|
|
||||||
|
|
||||||
public EssentiaHatch(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) {
|
|
||||||
super(aName, aTier, aDescription, aTextures);
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean addAspectList(final AspectList A) {
|
|
||||||
|
|
||||||
if ((this.mTier + 1) * ApTe > A.size() + current.size()) {
|
|
||||||
if (current.visSize() + A.visSize() < (this.mTier + 1) * ApTe * 64) current.add(A);
|
|
||||||
return true;
|
|
||||||
} else return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCurrent(AspectList List) {
|
|
||||||
this.current = List;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AspectList getAspects() {
|
|
||||||
return current;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
|
||||||
return new EssentiaHatch(
|
|
||||||
"Essentia Hatch " + GT_Values.VN[this.mTier],
|
|
||||||
this.mTier,
|
|
||||||
this.getDescription(),
|
|
||||||
this.mTextures);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getInfoData() {
|
|
||||||
ArrayList<String> list = new ArrayList<String>();
|
|
||||||
list.add("This Essentia-Hatch contains:");
|
|
||||||
for (final Aspect A : this.current.aspects.keySet())
|
|
||||||
list.add(A.getName() + ": " + Integer.toString(current.getAmount(A)));
|
|
||||||
|
|
||||||
String[] ret = new String[list.size()];
|
|
||||||
for (int i = 0; i < list.size(); i++) {
|
|
||||||
ret[i] = list.get(i);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* String[] old = super.getInfoData(); if (old.length!=0) { String[] newDescription = new String[old.length +
|
|
||||||
* 1]; for (int i = 0; i < old.length; i++) { newDescription[i] = old[i]; } newDescription[old.length] =
|
|
||||||
* "This Contains: " + current.size() + " different Aspects"; return newDescription; }else return new
|
|
||||||
* String[]{"This Contains: " + current.size() + " different Aspects"};
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getDescription() { // this is the fucking tooltip -_-'
|
|
||||||
return new String[] { "Essentia Hatch for usage in Multiblocks", "Can only be filled with the Essentia Filler",
|
|
||||||
"Can hold " + Integer.toString((ApTe * (mTier + 1))) + " Different Essentia Types",
|
|
||||||
"Can hold " + Integer.toString((64 * ApTe * (mTier + 1))) + " Essentia in total" };
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isGivingInformation() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void saveNBTData(NBTTagCompound var1) {
|
|
||||||
|
|
||||||
NBTTagList tlist = new NBTTagList();
|
|
||||||
Aspect[] aspectA = current.getAspects();
|
|
||||||
for (int i = 0; i < aspectA.length; ++i) {
|
|
||||||
Aspect aspect = aspectA[i];
|
|
||||||
if (aspect != null) {
|
|
||||||
NBTTagCompound f = new NBTTagCompound();
|
|
||||||
f.setString("key", aspect.getTag());
|
|
||||||
f.setInteger("amount", current.getAmount(aspect));
|
|
||||||
tlist.appendTag(f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var1.setTag("Aspects", tlist);
|
|
||||||
super.saveNBTData(var1);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void loadNBTData(NBTTagCompound var1) {
|
|
||||||
current = new AspectList();
|
|
||||||
NBTTagList tlist = var1.getTagList("Aspects", 10);
|
|
||||||
|
|
||||||
for (int j = 0; j < tlist.tagCount(); ++j) {
|
|
||||||
NBTTagCompound rs = tlist.getCompoundTagAt(j);
|
|
||||||
if (rs.hasKey("key")) {
|
|
||||||
current.add(Aspect.getAspect(rs.getString("key")), rs.getInteger("amount"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
super.loadNBTData(var1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int fuelleft() {
|
|
||||||
int ret = 0;
|
|
||||||
for (final Aspect A : current.aspects.keySet()) {
|
|
||||||
ret += current.getAmount(A);
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isFluidInputAllowed(FluidStack aFluid) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection aSide,
|
|
||||||
ItemStack aStack) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection aSide,
|
|
||||||
ItemStack aStack) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getCapacity() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,246 +0,0 @@
|
|||||||
package emt.gthandler.common.implementations.automation;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
import net.minecraft.nbt.NBTTagList;
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
|
||||||
|
|
||||||
import emt.gthandler.common.implementations.EssentiaHatch;
|
|
||||||
import emt.tile.TileEntityEMT;
|
|
||||||
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
|
|
||||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
|
||||||
import thaumcraft.api.ThaumcraftApiHelper;
|
|
||||||
import thaumcraft.api.aspects.Aspect;
|
|
||||||
import thaumcraft.api.aspects.AspectList;
|
|
||||||
import thaumcraft.api.aspects.IAspectContainer;
|
|
||||||
import thaumcraft.api.aspects.IEssentiaTransport;
|
|
||||||
|
|
||||||
public class EssentiaFiller extends TileEntityEMT implements IAspectContainer, IEssentiaTransport {
|
|
||||||
|
|
||||||
private AspectList current = new AspectList();
|
|
||||||
private byte tick = 0;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void writeToNBT(NBTTagCompound tagCompound) {
|
|
||||||
super.writeToNBT(tagCompound);
|
|
||||||
NBTTagList tlist = new NBTTagList();
|
|
||||||
Aspect[] aspectA = current.getAspects();
|
|
||||||
for (int i = 0; i < aspectA.length; ++i) {
|
|
||||||
Aspect aspect = aspectA[i];
|
|
||||||
if (aspect != null) {
|
|
||||||
NBTTagCompound f = new NBTTagCompound();
|
|
||||||
f.setString("key", aspect.getTag());
|
|
||||||
f.setInteger("amount", current.getAmount(aspect));
|
|
||||||
tlist.appendTag(f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tagCompound.setTag("Aspects", tlist);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void readFromNBT(NBTTagCompound tagCompound) {
|
|
||||||
super.readFromNBT(tagCompound);
|
|
||||||
current = new AspectList();
|
|
||||||
NBTTagList tlist = tagCompound.getTagList("Aspects", 10);
|
|
||||||
for (int j = 0; j < tlist.tagCount(); ++j) {
|
|
||||||
NBTTagCompound rs = tlist.getCompoundTagAt(j);
|
|
||||||
if (rs.hasKey("key")) {
|
|
||||||
current.add(Aspect.getAspect(rs.getString("key")), rs.getInteger("amount"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void updateEntity() {
|
|
||||||
++tick;
|
|
||||||
fillfrompipe();
|
|
||||||
if (tick % 20 == 0) {
|
|
||||||
TileEntity T = this.worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);
|
|
||||||
if (checkTE(T)) {
|
|
||||||
tick = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (T == null) T = this.worldObj.getTileEntity(xCoord + 1, yCoord, zCoord);
|
|
||||||
if (checkTE(T)) {
|
|
||||||
tick = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (T == null) T = this.worldObj.getTileEntity(xCoord, yCoord, zCoord + 1);
|
|
||||||
if (checkTE(T)) {
|
|
||||||
tick = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (T == null) T = this.worldObj.getTileEntity(xCoord, yCoord - 1, zCoord);
|
|
||||||
if (checkTE(T)) {
|
|
||||||
tick = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (T == null) T = this.worldObj.getTileEntity(xCoord - 1, yCoord, zCoord);
|
|
||||||
if (checkTE(T)) {
|
|
||||||
tick = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (T == null) T = this.worldObj.getTileEntity(xCoord, yCoord, zCoord - 1);
|
|
||||||
if (checkTE(T)) {
|
|
||||||
tick = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean checkTE(final TileEntity T) {
|
|
||||||
if (T == null) return false;
|
|
||||||
if (this.current.visSize() > 0) if (T instanceof IGregTechTileEntity) {
|
|
||||||
IMetaTileEntity M = ((IGregTechTileEntity) T).getMetaTileEntity();
|
|
||||||
if (M instanceof EssentiaHatch) {
|
|
||||||
if (((EssentiaHatch) M).addAspectList(current)) this.current = new AspectList();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void fillfrompipe() {
|
|
||||||
TileEntity[] te = new TileEntity[ForgeDirection.VALID_DIRECTIONS.length];
|
|
||||||
for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
|
|
||||||
te[i] = ThaumcraftApiHelper.getConnectableTile(
|
|
||||||
this.worldObj,
|
|
||||||
this.xCoord,
|
|
||||||
this.yCoord,
|
|
||||||
this.zCoord,
|
|
||||||
ForgeDirection.VALID_DIRECTIONS[i]);
|
|
||||||
if (te[i] != null) {
|
|
||||||
IEssentiaTransport pipe = (IEssentiaTransport) te[i];
|
|
||||||
if (!pipe.canOutputTo(ForgeDirection.VALID_DIRECTIONS[i])) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ((pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i]) != null)
|
|
||||||
&& (pipe.getSuctionAmount(ForgeDirection.VALID_DIRECTIONS[i])
|
|
||||||
< getSuctionAmount(ForgeDirection.VALID_DIRECTIONS[i]))) {
|
|
||||||
addToContainer(
|
|
||||||
pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i]),
|
|
||||||
pipe.takeEssentia(
|
|
||||||
pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i]),
|
|
||||||
1,
|
|
||||||
ForgeDirection.VALID_DIRECTIONS[i]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public AspectList getAspects() {
|
|
||||||
return current;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setAspects(AspectList aspectList) {
|
|
||||||
this.current.add(aspectList);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean doesContainerAccept(Aspect aspect) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int addToContainer(Aspect aspect, int i) {
|
|
||||||
current.add(aspect, i);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean takeFromContainer(Aspect aspect, int i) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean takeFromContainer(AspectList aspectList) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean doesContainerContainAmount(Aspect aspect, int i) {
|
|
||||||
return current.aspects.containsKey(aspect) && i <= current.getAmount(aspect);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean doesContainerContain(AspectList aspectList) {
|
|
||||||
ArrayList<Boolean> ret = new ArrayList<Boolean>();
|
|
||||||
for (Aspect a : aspectList.aspects.keySet()) if (current.aspects.containsKey(a)) {
|
|
||||||
ret.add(true);
|
|
||||||
} else ret.add(false);
|
|
||||||
return !ret.contains(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int containerContains(Aspect aspect) {
|
|
||||||
return current.aspects.containsKey(aspect) ? current.getAmount(aspect) : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isConnectable(ForgeDirection forgeDirection) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canInputFrom(ForgeDirection forgeDirection) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canOutputTo(ForgeDirection forgeDirection) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setSuction(Aspect aspect, int i) {}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Aspect getSuctionType(ForgeDirection forgeDirection) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getSuctionAmount(ForgeDirection forgeDirection) {
|
|
||||||
return 256;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int takeEssentia(Aspect aspect, int i, ForgeDirection forgeDirection) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int addEssentia(Aspect aspect, int i, ForgeDirection forgeDirection) {
|
|
||||||
current.add(aspect, i);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Aspect getEssentiaType(ForgeDirection forgeDirection) {
|
|
||||||
return current.getAspects()[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getEssentiaAmount(ForgeDirection forgeDirection) {
|
|
||||||
int ret = 0;
|
|
||||||
for (final Aspect A : current.aspects.keySet()) {
|
|
||||||
ret += current.getAmount(A);
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getMinimumSuction() {
|
|
||||||
return Integer.MAX_VALUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean renderExtendedTube() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
package emt.gthandler.common.items;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.util.IIcon;
|
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import emt.EMT;
|
|
||||||
import emt.gthandler.common.blocks.EMT_GT_Block;
|
|
||||||
import gregtech.api.util.GT_LanguageManager;
|
|
||||||
import gregtech.common.blocks.GT_Item_Casings_Abstract;
|
|
||||||
|
|
||||||
public class EMT_CasingBlock extends GT_Item_Casings_Abstract {
|
|
||||||
|
|
||||||
public static final Block[] EMT_GT_BLOCKS = { new EMT_GT_Block(
|
|
||||||
new String[] { EMT.TEXTURE_PATH + ":machines/side", EMT.TEXTURE_PATH + ":machines/GT/inner",
|
|
||||||
EMT.TEXTURE_PATH + ":machines/GT/siderawI", EMT.TEXTURE_PATH + ":machines/GT/rawcoreI",
|
|
||||||
EMT.TEXTURE_PATH + ":machines/GT/siderawII", EMT.TEXTURE_PATH + ":machines/GT/rawcoreII",
|
|
||||||
EMT.TEXTURE_PATH + ":machines/GT/rawcoreII", // unused?
|
|
||||||
EMT.TEXTURE_PATH + ":machines/GT/ROBUST_NAQUADAH_ALLOY",
|
|
||||||
EMT.TEXTURE_PATH + ":machines/GT/BLOODY_ICHORIUM", EMT.TEXTURE_PATH + ":machines/GT/DRACONIUM",
|
|
||||||
EMT.TEXTURE_PATH + ":machines/GT/WYVERN", EMT.TEXTURE_PATH + ":machines/GT/AWAKENED_DRACONIUM",
|
|
||||||
EMT.TEXTURE_PATH + ":machines/GT/CHAOTIC", }) };
|
|
||||||
|
|
||||||
protected final String deccCasing01Tooltip = GT_LanguageManager
|
|
||||||
.addStringLocalization("gt.casing01tooltip", "Draconic Evolution Fusion Crafter Casing, Tier 1");
|
|
||||||
protected final String deccCasing02Tooltip = GT_LanguageManager
|
|
||||||
.addStringLocalization("gt.casing02tooltip", "Draconic Evolution Fusion Crafter Casing, Tier 2");
|
|
||||||
protected final String deccCasing03Tooltip = GT_LanguageManager
|
|
||||||
.addStringLocalization("gt.casing03tooltip", "Draconic Evolution Fusion Crafter Casing, Tier 3");
|
|
||||||
protected final String deccCasing04Tooltip = GT_LanguageManager
|
|
||||||
.addStringLocalization("gt.casing04tooltip", "Draconic Evolution Fusion Crafter Casing, Tier 4");
|
|
||||||
protected final String deccCasing05Tooltip = GT_LanguageManager
|
|
||||||
.addStringLocalization("gt.casing05tooltip", "Draconic Evolution Fusion Crafter Casing, Tier 5");
|
|
||||||
|
|
||||||
public EMT_CasingBlock(final Block par1) {
|
|
||||||
super(par1);
|
|
||||||
this.setMaxDamage(0);
|
|
||||||
this.setHasSubtypes(true);
|
|
||||||
this.setCreativeTab(EMT.TAB);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getMetadata(final int aMeta) {
|
|
||||||
return aMeta;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getUnlocalizedName(final ItemStack aStack) {
|
|
||||||
return this.field_150939_a.getUnlocalizedName() + "." + this.getDamage(aStack);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT) // so it only gets sent clientside?
|
|
||||||
public void addInformation(final ItemStack aStack, final EntityPlayer aPlayer, final List aList,
|
|
||||||
final boolean aF3_H) {
|
|
||||||
super.addInformation(aStack, aPlayer, aList, aF3_H);
|
|
||||||
|
|
||||||
switch (getDamage(aStack)) {
|
|
||||||
case 8:
|
|
||||||
aList.add(this.deccCasing01Tooltip);
|
|
||||||
break;
|
|
||||||
case 9:
|
|
||||||
aList.add(this.deccCasing02Tooltip);
|
|
||||||
break;
|
|
||||||
case 10:
|
|
||||||
aList.add(this.deccCasing03Tooltip);
|
|
||||||
break;
|
|
||||||
case 11:
|
|
||||||
aList.add(this.deccCasing04Tooltip);
|
|
||||||
break;
|
|
||||||
case 12:
|
|
||||||
aList.add(this.deccCasing05Tooltip);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public IIcon getIcon(ItemStack stack, int pass) {
|
|
||||||
return this.field_150939_a.getIcon(0, stack.getItemDamage());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) {
|
|
||||||
return getIcon(stack, renderPass);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public IIcon getIconFromDamageForRenderPass(int p_77618_1_, int p_77618_2_) {
|
|
||||||
return this.field_150939_a.getIcon(0, p_77618_2_);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,196 +1,39 @@
|
|||||||
package emt.gthandler.common.loader;
|
package emt.gthandler.common.loader;
|
||||||
|
|
||||||
import static emt.command.CommandOutputs.mkbook;
|
import static emt.command.CommandOutputs.mkbook;
|
||||||
|
import static gregtech.api.recipe.RecipeMaps.assemblerRecipes;
|
||||||
|
import static gregtech.api.util.GT_RecipeBuilder.SECONDS;
|
||||||
|
|
||||||
import net.minecraft.init.Blocks;
|
|
||||||
import net.minecraft.init.Items;
|
import net.minecraft.init.Items;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraftforge.fluids.FluidRegistry;
|
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
import cpw.mods.fml.common.Loader;
|
|
||||||
import emt.gthandler.common.implementations.EssentiaHatch;
|
|
||||||
import emt.gthandler.common.items.EMT_CasingBlock;
|
|
||||||
import emt.gthandler.common.tileentities.machines.multi.DE_Fusion_Crafter;
|
|
||||||
import emt.gthandler.common.tileentities.machines.multi.generator.EMT_Large_Essentia_Gen;
|
|
||||||
import emt.tile.GT_MetaTileEntity_ResearchCompleter;
|
import emt.tile.GT_MetaTileEntity_ResearchCompleter;
|
||||||
|
import emt.util.EMTConfigHandler;
|
||||||
import gregtech.api.enums.GT_Values;
|
import gregtech.api.enums.GT_Values;
|
||||||
import gregtech.api.enums.ItemList;
|
|
||||||
import gregtech.api.enums.Materials;
|
import gregtech.api.enums.Materials;
|
||||||
import gregtech.api.enums.OrePrefixes;
|
import gregtech.api.enums.OrePrefixes;
|
||||||
import gregtech.api.util.GT_ModHandler;
|
import gregtech.api.enums.TierEU;
|
||||||
import gregtech.api.util.GT_OreDictUnificator;
|
import gregtech.api.util.GT_OreDictUnificator;
|
||||||
import thaumcraft.common.config.ConfigBlocks;
|
|
||||||
import thaumcraft.common.config.ConfigItems;
|
import thaumcraft.common.config.ConfigItems;
|
||||||
|
|
||||||
public class EMT_GT_Loader implements Runnable {
|
public class EMT_GT_Loader {
|
||||||
|
|
||||||
public static final int TIERS = GT_Values.VN.length - 1;
|
|
||||||
public static int aIDoffset = 13000 - GT_Values.VN.length - 1;
|
|
||||||
public static ItemStack[] EHatch = new ItemStack[TIERS];
|
|
||||||
public static ItemStack LEG;
|
|
||||||
public static ItemStack DECC;
|
|
||||||
public static ItemStack ResearchMultiblock;
|
public static ItemStack ResearchMultiblock;
|
||||||
|
|
||||||
@Override
|
public static void run() {
|
||||||
public void run() {
|
|
||||||
|
|
||||||
for (int i = 0; i < TIERS; i++) {
|
|
||||||
EHatch[i] = new EssentiaHatch(
|
|
||||||
aIDoffset + i,
|
|
||||||
"Essentia Hatch " + GT_Values.VN[i],
|
|
||||||
"Essentia Hatch " + GT_Values.VN[i],
|
|
||||||
i).getStackForm(1L);
|
|
||||||
}
|
|
||||||
|
|
||||||
LEG = new EMT_Large_Essentia_Gen(
|
|
||||||
aIDoffset + GT_Values.VN.length + 1,
|
|
||||||
"Large Essentia Generator",
|
|
||||||
"Large Essentia Generator").getStackForm(1L);
|
|
||||||
|
|
||||||
// Dragonblood recipe for magics haters
|
|
||||||
if (Loader.isModLoaded("miscutils")) {
|
|
||||||
GT_Values.RA.addMixerRecipe(
|
|
||||||
new ItemStack[] { new ItemStack(Blocks.dragon_egg, 1),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DraconiumAwakened, 64L),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DraconiumAwakened, 64L) },
|
|
||||||
new FluidStack[] { Materials.Radon.getPlasma(144) },
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 8L) },
|
|
||||||
new FluidStack[] { new FluidStack(FluidRegistry.getFluid("molten.dragonblood"), 288) },
|
|
||||||
14000,
|
|
||||||
1966080);
|
|
||||||
}
|
|
||||||
// Casing blocks
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iridium, 1L),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Osmiridium, 4L) },
|
|
||||||
Materials.SolderingAlloy.getMolten(576L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 2),
|
|
||||||
100,
|
|
||||||
(int) (GT_Values.V[5] - (GT_Values.V[5] / 10)));
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Indium, 1L),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Tungsten, 4L) },
|
|
||||||
Materials.SolderingAlloy.getMolten(576L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 3),
|
|
||||||
100,
|
|
||||||
(int) (GT_Values.V[5] - (GT_Values.V[5] / 10)));
|
|
||||||
if (Loader.isModLoaded("ThaumicTinkerer")) GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 2),
|
|
||||||
GT_ModHandler.getModItem("ThaumicTinkerer", "kamiResource", 2L, 2) },
|
|
||||||
Materials.Concrete.getMolten(2304L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 4),
|
|
||||||
100,
|
|
||||||
(int) (GT_Values.V[5] - (GT_Values.V[5] / 10)));
|
|
||||||
else GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 2),
|
|
||||||
Materials.ElectrumFlux.getPlates(8) },
|
|
||||||
Materials.Concrete.getMolten(2304L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 4),
|
|
||||||
100,
|
|
||||||
(int) (GT_Values.V[5] - (GT_Values.V[5] / 10)));
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 3),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 8L) },
|
|
||||||
Materials.Osmiridium.getMolten(576L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 5),
|
|
||||||
100,
|
|
||||||
(int) (GT_Values.V[5] - (GT_Values.V[5] / 10)));
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.NaquadahAlloy, 6L),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.NaquadahAlloy, 6L) },
|
|
||||||
Materials.Void.getMolten(1152L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 7),
|
|
||||||
24000,
|
|
||||||
491520);
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { GT_ModHandler.getModItem("dreamcraft", "tile.BloodyIchorium", 1, 0),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Osmiridium, 6L) },
|
|
||||||
Materials.Void.getMolten(1152L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 8),
|
|
||||||
24000,
|
|
||||||
491520);
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 8),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Draconium, 6L),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "draconicCore", 1, 0) },
|
|
||||||
Materials.Void.getMolten(2304L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 9),
|
|
||||||
24000,
|
|
||||||
491520); // uv
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 9),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.CosmicNeutronium, 6L),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "wyvernCore", 2, 0) },
|
|
||||||
Materials.Void.getMolten(4608L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 10),
|
|
||||||
12000,
|
|
||||||
1996080); // uhv, you need uhv to get the thing anyway?
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 10),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.DraconiumAwakened, 6L),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "awakenedCore", 3, 0) },
|
|
||||||
Materials.Void.getMolten(9216L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 11),
|
|
||||||
12000,
|
|
||||||
7864320); // uev
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 11),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Infinity, 6L),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "chaoticCore", 4, 0) },
|
|
||||||
Materials.Void.getMolten(18432L),
|
|
||||||
new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0], 1, 12),
|
|
||||||
12000,
|
|
||||||
31457280); // uiv, use the multi
|
|
||||||
|
|
||||||
EMT_RecipeAdder.Run();
|
|
||||||
|
|
||||||
DECC = new DE_Fusion_Crafter(5001, "de_fusion_crafter", "Draconic Evolution Fusion Crafter").getStackForm(1L);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* New DECF controller recipe moved to TT. only create the old one here if tectech or blood magic is not around.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (!(Loader.isModLoaded("tectech") && Loader.isModLoaded("AWWayofTime"))) {
|
|
||||||
GT_Values.RA.addAssemblylineRecipe(
|
|
||||||
GT_ModHandler.getModItem("gregtech", "gt.blockmachines", 1, 10780),
|
|
||||||
144000,
|
|
||||||
new Object[] { GT_ModHandler.getModItem("gregtech", "gt.blockmachines", 1, 10780),
|
|
||||||
ItemList.Robot_Arm_LuV.get(2L), ItemList.Electric_Motor_LuV.get(2L),
|
|
||||||
ItemList.Field_Generator_LuV.get(1L),
|
|
||||||
new Object[] { OrePrefixes.circuit.get(Materials.Master), 2 },
|
|
||||||
ItemList.Casing_Coil_Naquadah.get(8L), },
|
|
||||||
new FluidStack[] { Materials.SolderingAlloy.getMolten(2304L),
|
|
||||||
Materials.Thaumium.getMolten(1440L), },
|
|
||||||
DECC,
|
|
||||||
1500,
|
|
||||||
16384);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < ItemList.HATCHES_INPUT.length; i++) {
|
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
|
||||||
new ItemStack[] { ItemList.HATCHES_INPUT[i].get(1L), new ItemStack(ConfigBlocks.blockTube, 1, 4) },
|
|
||||||
Materials.Thaumium.getMolten(288L),
|
|
||||||
EHatch[i],
|
|
||||||
100,
|
|
||||||
(int) (GT_Values.V[i] - (GT_Values.V[i] / 10)));
|
|
||||||
}
|
|
||||||
|
|
||||||
ResearchMultiblock = new GT_MetaTileEntity_ResearchCompleter(
|
ResearchMultiblock = new GT_MetaTileEntity_ResearchCompleter(
|
||||||
aIDoffset + GT_Values.VN.length + 2,
|
EMTConfigHandler.aIDoffset + GT_Values.VN.length + 2,
|
||||||
"Research Completer",
|
"Research Completer",
|
||||||
"Research Completer").getStackForm(1L);
|
"Research Completer").getStackForm(1L);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void runlate() {
|
public static void runlate() {
|
||||||
GT_Values.RA.addAssemblerRecipe(
|
GT_Values.RA.stdBuilder()
|
||||||
new ItemStack[] { new ItemStack(Items.book),
|
.itemInputs(
|
||||||
|
new ItemStack(Items.book),
|
||||||
GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1L),
|
GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1L),
|
||||||
new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE) },
|
new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE))
|
||||||
GT_Values.NF,
|
.itemOutputs(mkbook()).duration(6 * SECONDS).eut(TierEU.RECIPE_MV / 2).addTo(assemblerRecipes);
|
||||||
mkbook(),
|
|
||||||
128,
|
|
||||||
64);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,185 +0,0 @@
|
|||||||
package emt.gthandler.common.loader;
|
|
||||||
|
|
||||||
import static gregtech.api.enums.GT_Values.E;
|
|
||||||
import static gregtech.api.enums.GT_Values.RES_PATH_GUI;
|
|
||||||
|
|
||||||
import java.util.HashSet;
|
|
||||||
|
|
||||||
import net.minecraft.init.Blocks;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraftforge.fluids.FluidRegistry;
|
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.Loader;
|
|
||||||
import emt.client.gui.EMT_UITextures;
|
|
||||||
import emt.init.EMTItems;
|
|
||||||
import gregtech.api.enums.*;
|
|
||||||
import gregtech.api.util.GT_ModHandler;
|
|
||||||
import gregtech.api.util.GT_OreDictUnificator;
|
|
||||||
import gregtech.api.util.GT_Recipe;
|
|
||||||
|
|
||||||
public class EMT_RecipeAdder {
|
|
||||||
|
|
||||||
public static final GT_Recipe.GT_Recipe_Map sFusionCraftingRecipes = new GT_Recipe.GT_Recipe_Map(
|
|
||||||
new HashSet<>(16),
|
|
||||||
"emt.recipe.fusioncrafting",
|
|
||||||
"Draconic Evolution Fusion Crafter",
|
|
||||||
null,
|
|
||||||
RES_PATH_GUI + "basicmachines/FusionCrafter",
|
|
||||||
9,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
"Tier Casing: ",
|
|
||||||
1,
|
|
||||||
E,
|
|
||||||
false,
|
|
||||||
true).setSlotOverlay(false, false, EMT_UITextures.OVERLAY_SLOT_FUSION_CRAFTING);
|
|
||||||
|
|
||||||
public static void addFusionCraftingRecipe(ItemStack[] inputs, FluidStack[] fluidinputs, ItemStack[] outputs,
|
|
||||||
FluidStack[] fluidoutputs, int aDuration, int aEUt, int aTier) {
|
|
||||||
sFusionCraftingRecipes
|
|
||||||
.addRecipe(true, inputs, outputs, null, fluidinputs, fluidoutputs, aDuration, aEUt, aTier);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void addFusionCraftingRecipeNonOptimized(ItemStack[] inputs, FluidStack[] fluidinputs,
|
|
||||||
ItemStack[] outputs, FluidStack[] fluidoutputs, int aDuration, int aEUt, int aTier) {
|
|
||||||
sFusionCraftingRecipes
|
|
||||||
.addRecipe(false, inputs, outputs, null, fluidinputs, fluidoutputs, aDuration, aEUt, aTier);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void addFusionCraftingRecipe(ItemStack[] inputs, ItemStack output, int aDuration, int aEUt,
|
|
||||||
int aTier) {
|
|
||||||
addFusionCraftingRecipe(inputs, null, new ItemStack[] { output }, null, aDuration, aEUt, aTier);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use this if you don't want your recipes quantity to be splitted
|
|
||||||
public static void addFusionCraftingRecipeNonOptimized(ItemStack[] inputs, FluidStack fluidinput, ItemStack output,
|
|
||||||
FluidStack fluidoutput, int aDuration, int aEUt, int aTier) {
|
|
||||||
addFusionCraftingRecipeNonOptimized(
|
|
||||||
inputs,
|
|
||||||
new FluidStack[] { fluidinput },
|
|
||||||
new ItemStack[] { output },
|
|
||||||
new FluidStack[] { fluidoutput },
|
|
||||||
aDuration,
|
|
||||||
aEUt,
|
|
||||||
aTier);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void Run() {
|
|
||||||
|
|
||||||
// CORES
|
|
||||||
|
|
||||||
addFusionCraftingRecipeNonOptimized(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Osmiridium, 4),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Ichorium, 1), ItemList.QuantumEye.get(1L),
|
|
||||||
new ItemStack(EMTItems.itemEMTItems, 0, 16) },
|
|
||||||
Materials.Sunnarium.getMolten(1440),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "draconicCore", 1, 0),
|
|
||||||
GT_Values.NF,
|
|
||||||
400,
|
|
||||||
500000,
|
|
||||||
1);
|
|
||||||
|
|
||||||
addFusionCraftingRecipeNonOptimized(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Draconium, 8),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 4),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "draconicCore", 4, 0),
|
|
||||||
ItemList.QuantumStar.get(1L), new ItemStack(EMTItems.itemEMTItems, 0, 17), },
|
|
||||||
Materials.Neutronium.getMolten(1440),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "wyvernCore", 1, 0),
|
|
||||||
GT_Values.NF,
|
|
||||||
800,
|
|
||||||
2000000,
|
|
||||||
2);
|
|
||||||
if (Loader.isModLoaded("supersolarpanel")) {
|
|
||||||
addFusionCraftingRecipeNonOptimized(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.DraconiumAwakened, 12),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Draconium, 4),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "wyvernCore", 4, 0),
|
|
||||||
GT_ModHandler.getModItem("supersolarpanel", "enderquantumcomponent", 1, 0),
|
|
||||||
new ItemStack(EMTItems.itemEMTItems, 0, 18) },
|
|
||||||
Materials.Infinity.getMolten(1440),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "awakenedCore", 1, 0),
|
|
||||||
GT_Values.NF,
|
|
||||||
1600,
|
|
||||||
8000000,
|
|
||||||
3);
|
|
||||||
} else {
|
|
||||||
addFusionCraftingRecipeNonOptimized(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.DraconiumAwakened, 12),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Draconium, 4),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "wyvernCore", 4, 0),
|
|
||||||
GT_ModHandler.getModItem("dreamcraft", "item.ManyullynCrystal", 1, 0),
|
|
||||||
new ItemStack(EMTItems.itemEMTItems, 0, 18) },
|
|
||||||
Materials.Infinity.getMolten(1440),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "awakenedCore", 1, 0),
|
|
||||||
GT_Values.NF,
|
|
||||||
1600,
|
|
||||||
8000000,
|
|
||||||
3);
|
|
||||||
}
|
|
||||||
|
|
||||||
addFusionCraftingRecipeNonOptimized(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.DraconiumAwakened, 16),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BlackPlutonium, 4),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "awakenedCore", 4, 0),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "chaosFragment", 2, 2),
|
|
||||||
new ItemStack(EMTItems.itemEMTItems, 0, 19) },
|
|
||||||
MaterialsUEVplus.SpaceTime.getMolten(1440),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "chaoticCore", 1, 0),
|
|
||||||
GT_Values.NF,
|
|
||||||
3200,
|
|
||||||
24000000,
|
|
||||||
4);
|
|
||||||
|
|
||||||
// ENERGY CORES
|
|
||||||
|
|
||||||
addFusionCraftingRecipe(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Draconium, 8),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StellarAlloy, 4),
|
|
||||||
GT_ModHandler.getModItem("AdvancedSolarPanel", "asp_crafting_items", 4, 1),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "draconicCore", 1, 0),
|
|
||||||
new ItemStack(EMTItems.itemEMTItems, 0, 17) },
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "draconiumEnergyCore", 1, 0),
|
|
||||||
1000,
|
|
||||||
500000,
|
|
||||||
2);
|
|
||||||
|
|
||||||
addFusionCraftingRecipe(
|
|
||||||
new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.DraconiumAwakened, 8),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "draconiumEnergyCore", 4, 0),
|
|
||||||
GT_ModHandler.getModItem("AdvancedSolarPanel", "asp_crafting_items", 4, 4),
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "wyvernCore", 1, 0),
|
|
||||||
new ItemStack(EMTItems.itemEMTItems, 0, 18) },
|
|
||||||
GT_ModHandler.getModItem("DraconicEvolution", "draconiumEnergyCore", 1, 1),
|
|
||||||
2000,
|
|
||||||
2000000,
|
|
||||||
3);
|
|
||||||
|
|
||||||
// Dragon Blood
|
|
||||||
if (Loader.isModLoaded("miscutils")) {
|
|
||||||
|
|
||||||
addFusionCraftingRecipeNonOptimized(
|
|
||||||
new ItemStack[] { new ItemStack(Blocks.dragon_egg, 0),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DraconiumAwakened, 64) },
|
|
||||||
Materials.Radon.getPlasma(144),
|
|
||||||
null,
|
|
||||||
new FluidStack(FluidRegistry.getFluid("molten.dragonblood"), 288),
|
|
||||||
4200,
|
|
||||||
1966080,
|
|
||||||
3);
|
|
||||||
|
|
||||||
addFusionCraftingRecipeNonOptimized(
|
|
||||||
new ItemStack[] { GT_ModHandler.getModItem("witchery", "infinityegg", 0),
|
|
||||||
GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DraconiumAwakened, 64) },
|
|
||||||
Materials.Radon.getPlasma(72),
|
|
||||||
null,
|
|
||||||
new FluidStack(FluidRegistry.getFluid("molten.dragonblood"), 432),
|
|
||||||
3600,
|
|
||||||
1966080,
|
|
||||||
3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,217 +0,0 @@
|
|||||||
package emt.gthandler.common.tileentities.machines.multi;
|
|
||||||
|
|
||||||
import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
|
|
||||||
import static gregtech.api.enums.GT_Values.V;
|
|
||||||
import static gregtech.api.enums.Textures.BlockIcons.*;
|
|
||||||
import static gregtech.api.util.GT_StructureUtility.ofHatchAdder;
|
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.util.EnumChatFormatting;
|
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.tuple.Pair;
|
|
||||||
|
|
||||||
import com.gtnewhorizon.structurelib.structure.IStructureDefinition;
|
|
||||||
import com.gtnewhorizon.structurelib.structure.StructureDefinition;
|
|
||||||
|
|
||||||
import emt.EMT;
|
|
||||||
import emt.gthandler.common.items.EMT_CasingBlock;
|
|
||||||
import emt.gthandler.common.loader.EMT_RecipeAdder;
|
|
||||||
import gregtech.api.GregTech_API;
|
|
||||||
import gregtech.api.interfaces.ITexture;
|
|
||||||
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
|
|
||||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
|
||||||
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_EnhancedMultiBlockBase;
|
|
||||||
import gregtech.api.render.TextureFactory;
|
|
||||||
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
|
|
||||||
import gregtech.api.util.GT_Recipe;
|
|
||||||
import gregtech.api.util.GT_Utility;
|
|
||||||
|
|
||||||
public class DE_Fusion_Crafter extends GT_MetaTileEntity_EnhancedMultiBlockBase<DE_Fusion_Crafter> {
|
|
||||||
|
|
||||||
private static final int CASING_INDEX = (1 << 7) + (15 + 48);
|
|
||||||
private int mTierCasing = 0;
|
|
||||||
private int mFusionTierCasing = 0;
|
|
||||||
private int mCasing = 0;
|
|
||||||
|
|
||||||
public DE_Fusion_Crafter(int aID, String aName, String aNameRegional) {
|
|
||||||
super(aID, aName, aNameRegional);
|
|
||||||
}
|
|
||||||
|
|
||||||
public DE_Fusion_Crafter(String aName) {
|
|
||||||
super(aName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
|
||||||
return new DE_Fusion_Crafter(mName);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final String STRUCTURE_PIECE_MAIN = "main";
|
|
||||||
private static final List<Pair<Block, Integer>> fusionCasingTiers = Arrays
|
|
||||||
.asList(Pair.of(GregTech_API.sBlockCasings4, 6), Pair.of(GregTech_API.sBlockCasings4, 8));
|
|
||||||
private static final List<Pair<Block, Integer>> coreTiers = Arrays.asList(
|
|
||||||
Pair.of(EMT_CasingBlock.EMT_GT_BLOCKS[0], 8),
|
|
||||||
Pair.of(EMT_CasingBlock.EMT_GT_BLOCKS[0], 9),
|
|
||||||
Pair.of(EMT_CasingBlock.EMT_GT_BLOCKS[0], 10),
|
|
||||||
Pair.of(EMT_CasingBlock.EMT_GT_BLOCKS[0], 11),
|
|
||||||
Pair.of(EMT_CasingBlock.EMT_GT_BLOCKS[0], 12));
|
|
||||||
private static final IStructureDefinition<DE_Fusion_Crafter> STRUCTURE_DEFINITION = StructureDefinition
|
|
||||||
.<DE_Fusion_Crafter>builder()
|
|
||||||
.addShape(
|
|
||||||
STRUCTURE_PIECE_MAIN,
|
|
||||||
transpose(
|
|
||||||
new String[][] { { "nnnnn", "nnnnn", "nnnnn", "nnnnn", "nnnnn" },
|
|
||||||
{ " ", " F ", " FfF ", " F ", " " },
|
|
||||||
{ " ", " F ", " FfF ", " F ", " " },
|
|
||||||
{ "RRRRR", "R F R", "RFfFR", "R F R", "RRRRR" },
|
|
||||||
{ " ", " F ", " FfF ", " F ", " " },
|
|
||||||
{ " ", " F ", " FfF ", " F ", " " },
|
|
||||||
{ "RRRRR", "R F R", "RFfFR", "R F R", "RRRRR" },
|
|
||||||
{ " ", " F ", " FfF ", " F ", " " },
|
|
||||||
{ " ", " F ", " FfF ", " F ", " " },
|
|
||||||
{ "NN~NN", "NNNNN", "NNNNN", "NNNNN", "NNNNN" } }))
|
|
||||||
.addElement(
|
|
||||||
'N',
|
|
||||||
ofChain(
|
|
||||||
onElementPass(e -> e.mCasing++, ofBlock(EMT_CasingBlock.EMT_GT_BLOCKS[0], 7)),
|
|
||||||
ofHatchAdder(DE_Fusion_Crafter::addEnergyInputToMachineList, CASING_INDEX, 1),
|
|
||||||
ofHatchAdder(DE_Fusion_Crafter::addInputToMachineList, CASING_INDEX, 1),
|
|
||||||
ofHatchAdder(DE_Fusion_Crafter::addOutputToMachineList, CASING_INDEX, 1),
|
|
||||||
ofHatchAdder(DE_Fusion_Crafter::addMaintenanceToMachineList, CASING_INDEX, 1)))
|
|
||||||
.addElement('n', onElementPass(e -> e.mCasing++, ofBlock(EMT_CasingBlock.EMT_GT_BLOCKS[0], 7)))
|
|
||||||
.addElement('f', ofBlock(GregTech_API.sBlockCasings4, 7))
|
|
||||||
.addElement('F', ofBlocksTiered((Block b, int m) -> {
|
|
||||||
if (b != GregTech_API.sBlockCasings4 || (m != 6 && m != 8)) return -2;
|
|
||||||
return m == 6 ? 1 : 2;
|
|
||||||
}, fusionCasingTiers, -1, (e, i) -> e.mFusionTierCasing = i, e -> e.mFusionTierCasing))
|
|
||||||
.addElement('R', ofBlocksTiered((Block b, int m) -> {
|
|
||||||
if (b != EMT_CasingBlock.EMT_GT_BLOCKS[0] || m < 8 || m > 12) return -2;
|
|
||||||
return m - 7;
|
|
||||||
}, coreTiers, -1, (e, i) -> e.mTierCasing = i, e -> e.mTierCasing)).build();
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IStructureDefinition<DE_Fusion_Crafter> getStructureDefinition() {
|
|
||||||
return STRUCTURE_DEFINITION;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
|
|
||||||
mCasing = 0;
|
|
||||||
mTierCasing = -1;
|
|
||||||
mFusionTierCasing = -1;
|
|
||||||
if (!checkPiece(STRUCTURE_PIECE_MAIN, 2, 9, 0)) return false;
|
|
||||||
if (mCasing < 19) return false;
|
|
||||||
if (mTierCasing == -2 || mFusionTierCasing == -2) return false;
|
|
||||||
if (mTierCasing > 3 && mFusionTierCasing < 2) return false;
|
|
||||||
return mMaintenanceHatches.size() == 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected GT_Multiblock_Tooltip_Builder createTooltip() {
|
|
||||||
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
|
|
||||||
tt.addMachineType("Fusion Crafter").addInfo("Controller Block for the Draconic Evolution Fusion Crafter")
|
|
||||||
.addInfo("Machine can be overclocked by using casings above the recipe tier:")
|
|
||||||
.addInfo("Recipe time is divided by number of tiers above the recipe")
|
|
||||||
.addInfo("Normal EU OC still applies !")
|
|
||||||
.addInfo(
|
|
||||||
"To see the structure, use a " + EnumChatFormatting.BLUE
|
|
||||||
+ "Tec"
|
|
||||||
+ EnumChatFormatting.DARK_BLUE
|
|
||||||
+ "Tech"
|
|
||||||
+ EnumChatFormatting.GRAY
|
|
||||||
+ " structure hologram on the Controller!")
|
|
||||||
.addSeparator().beginStructureBlock(5, 10, 5, false).addController("Front bottom center")
|
|
||||||
.addCasingInfo("Naquadah Alloy Fusion Casing", 19)
|
|
||||||
.addOtherStructurePart("Fusion Coil Block", "Center pillar")
|
|
||||||
.addOtherStructurePart("Fusion Machine Casing", "Touching Fusion Coil Block at every side")
|
|
||||||
.addOtherStructurePart("Tiered Fusion Casing", "Rings (5x5 hollow) at layer 4 and 7")
|
|
||||||
.addStructureInfo("Bloody Ichorium for tier 1, Draconium for tier 2, etc")
|
|
||||||
.addStructureInfo("To use tier 3 + you have to use fusion casing MK II")
|
|
||||||
.addInputBus("Any bottom casing", 1).addInputHatch("Any bottom casing", 1)
|
|
||||||
.addOutputBus("Any bottom casing", 1).addOutputHatch("Any bottom casing", 1)
|
|
||||||
.addEnergyHatch("Any bottom casing", 1).addMaintenanceHatch("Any bottom casing", 1)
|
|
||||||
.toolTipFinisher(EMT.NAME);
|
|
||||||
return tt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, ForgeDirection facing,
|
|
||||||
int colorIndex, boolean aActive, boolean aRedstone) {
|
|
||||||
if (side == facing) {
|
|
||||||
if (aActive) return new ITexture[] { TextureFactory.of(MACHINE_CASING_MAGIC),
|
|
||||||
TextureFactory.builder().addIcon(OVERLAY_TELEPORTER_ACTIVE).extFacing().build(),
|
|
||||||
TextureFactory.builder().addIcon(OVERLAY_TELEPORTER_ACTIVE_GLOW).extFacing().glow().build() };
|
|
||||||
return new ITexture[] { TextureFactory.of(MACHINE_CASING_MAGIC),
|
|
||||||
TextureFactory.builder().addIcon(OVERLAY_TELEPORTER).extFacing().build(),
|
|
||||||
TextureFactory.builder().addIcon(OVERLAY_TELEPORTER_GLOW).extFacing().glow().build() };
|
|
||||||
}
|
|
||||||
if (aActive) return new ITexture[] { TextureFactory.of(MACHINE_CASING_MAGIC),
|
|
||||||
TextureFactory.builder().addIcon(MACHINE_CASING_MAGIC_ACTIVE).extFacing().build(),
|
|
||||||
TextureFactory.builder().addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW).extFacing().glow().build() };
|
|
||||||
return new ITexture[] { TextureFactory.of(MACHINE_CASING_MAGIC),
|
|
||||||
TextureFactory.builder().addIcon(MACHINE_CASING_MAGIC).extFacing().build(),
|
|
||||||
TextureFactory.builder().addIcon(MACHINE_CASING_MAGIC_GLOW).extFacing().glow().build() };
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isCorrectMachinePart(ItemStack aStack) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipeMap() {
|
|
||||||
return EMT_RecipeAdder.sFusionCraftingRecipes;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean checkRecipe(ItemStack aStack) {
|
|
||||||
ItemStack[] tInputs = getCompactedInputs();
|
|
||||||
FluidStack[] tFluids = getCompactedFluids();
|
|
||||||
|
|
||||||
if (tInputs.length > 0) {
|
|
||||||
long tVoltage = getMaxInputVoltage();
|
|
||||||
byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage));
|
|
||||||
GT_Recipe tRecipe = EMT_RecipeAdder.sFusionCraftingRecipes
|
|
||||||
.findRecipe(getBaseMetaTileEntity(), false, V[tTier], tFluids, tInputs);
|
|
||||||
if ((tRecipe != null) && (this.mTierCasing >= tRecipe.mSpecialValue)
|
|
||||||
&& (tRecipe.isRecipeInputEqual(true, tFluids, tInputs))) {
|
|
||||||
calculateOverclockedNessMulti(tRecipe.mEUt, tRecipe.mDuration, 2, tVoltage);
|
|
||||||
if (this.mEUt > 0) this.mEUt = (-this.mEUt);
|
|
||||||
this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
|
|
||||||
this.mEfficiencyIncrease = 10000;
|
|
||||||
this.mMaxProgresstime /= ((mTierCasing - tRecipe.mSpecialValue) + 1);
|
|
||||||
this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
|
|
||||||
this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
|
|
||||||
this.mOutputFluids = new FluidStack[] { tRecipe.getFluidOutput(0) };
|
|
||||||
updateSlots();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMaxEfficiency(ItemStack aStack) {
|
|
||||||
return 10000;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getPollutionPerTick(ItemStack aStack) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getDamageToComponent(ItemStack aStack) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean explodesOnComponentBreak(ItemStack aStack) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void construct(ItemStack itemStack, boolean b) {
|
|
||||||
buildPiece(STRUCTURE_PIECE_MAIN, itemStack, b, 2, 9, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,408 +0,0 @@
|
|||||||
package emt.gthandler.common.tileentities.machines.multi.generator;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
|
||||||
|
|
||||||
import emt.gthandler.common.implementations.EssentiaHatch;
|
|
||||||
import emt.gthandler.common.items.EMT_CasingBlock;
|
|
||||||
import emt.util.EMTEssentiasOutputs;
|
|
||||||
import emt.util.EMTTextHelper;
|
|
||||||
import gregtech.api.enums.Materials;
|
|
||||||
import gregtech.api.enums.Textures;
|
|
||||||
import gregtech.api.interfaces.ITexture;
|
|
||||||
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
|
|
||||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
|
||||||
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
|
|
||||||
import gregtech.api.objects.GT_RenderedTexture;
|
|
||||||
import gregtech.api.objects.XSTR;
|
|
||||||
import thaumcraft.api.aspects.Aspect;
|
|
||||||
import thaumcraft.api.aspects.AspectList;
|
|
||||||
import thaumcraft.api.visnet.VisNetHandler;
|
|
||||||
import thaumcraft.common.config.ConfigBlocks;
|
|
||||||
|
|
||||||
public class EMT_Large_Essentia_Gen extends GT_MetaTileEntity_MultiBlockBase {
|
|
||||||
|
|
||||||
private static final byte CASING_INDEX = 2;
|
|
||||||
public ArrayList<EssentiaHatch> mEssentiaHatches = new ArrayList();
|
|
||||||
private byte tick = 0;
|
|
||||||
private boolean has_lube = false;
|
|
||||||
|
|
||||||
public EMT_Large_Essentia_Gen(int aID, String aName, String aNameRegional) {
|
|
||||||
super(aID, aName, aNameRegional);
|
|
||||||
}
|
|
||||||
|
|
||||||
public EMT_Large_Essentia_Gen(String aName) {
|
|
||||||
super(aName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getDescription() {
|
|
||||||
return new String[] { "Controller Block for the Large Essentia Generator.",
|
|
||||||
"Produces energy from magical essentia decay.", "Size(WxHxD): 7x4x7, Controller (Bottom, Center)",
|
|
||||||
"Top-Middle 5x1x5 layer are Muffler Hatches", "Middle 5x2x5 layer are Essentia Diffusion Cells",
|
|
||||||
"Everything from here on goes either in the bottom or on the sides", "1x Fluid Input Hatch",
|
|
||||||
"1x Essentia Input Hatch", "1x Dynamo Hatches", "1x Maintenance Hatch",
|
|
||||||
"The outer hull is made out of Magic Containing Casings",
|
|
||||||
"Produces 20x more than the singleblock generator per essentia",
|
|
||||||
"Causes magical and serious conventional pollution",
|
|
||||||
"Needs 1L Lubricant per second or will cause way more conventional pollution",
|
|
||||||
"Needs 10 " + EMTTextHelper.LIGHT_BLUE
|
|
||||||
+ "Aqua"
|
|
||||||
+ EMTTextHelper.LIGHT_GRAY
|
|
||||||
+ " cVis per second or will cause way more magical pollution",
|
|
||||||
"Added by EMT", "Made by bartimaeusnek" };
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getCurrentEfficiency(ItemStack itemStack) {
|
|
||||||
return this.mEfficiency
|
|
||||||
- (this.getIdealStatus() - this.getRepairStatus()) * this.getMaxEfficiency(itemStack) / 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, ForgeDirection facing,
|
|
||||||
int colorIndex, boolean aActive, boolean aRedstone) {
|
|
||||||
if (side == facing) {
|
|
||||||
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(CASING_INDEX),
|
|
||||||
new GT_RenderedTexture(
|
|
||||||
aActive ? Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE
|
|
||||||
: Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER) };
|
|
||||||
}
|
|
||||||
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(CASING_INDEX) };
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity arg0) {
|
|
||||||
return new EMT_Large_Essentia_Gen(this.mName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int[] getAccessibleSlotsFromSide(int p_94128_1_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return new int[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canInsertItem(int p_102007_1_, ItemStack p_102007_2_, int p_102007_3_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canExtractItem(int p_102008_1_, ItemStack p_102008_2_, int p_102008_3_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getSizeInventory() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ItemStack getStackInSlot(int p_70301_1_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ItemStack getStackInSlotOnClosing(int p_70304_1_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getInventoryName() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return this.mName;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean hasCustomInventoryName() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getInventoryStackLimit() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void markDirty() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isUseableByPlayer(EntityPlayer p_70300_1_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void openInventory() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void closeInventory() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack arg1) {
|
|
||||||
|
|
||||||
final int xDir = aBaseMetaTileEntity.getBackFacing().offsetX * 3;
|
|
||||||
final int zDir = aBaseMetaTileEntity.getBackFacing().offsetZ * 3;
|
|
||||||
|
|
||||||
for (int x = -3; x <= 3; x++) {
|
|
||||||
for (int z = -3; z <= 3; z++) {
|
|
||||||
for (int h = 0; h <= 3; h++) {
|
|
||||||
final IGregTechTileEntity tTileEntity = aBaseMetaTileEntity
|
|
||||||
.getIGregTechTileEntityOffset(xDir + x, h, zDir + z);
|
|
||||||
|
|
||||||
if (!(Math.abs(x) == 3 || Math.abs(z) == 3)) {
|
|
||||||
// Muffler on top.
|
|
||||||
if ((h == 3)) {
|
|
||||||
if (!this.addMufflerToMachineList(tTileEntity, CASING_INDEX)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (h != 0) {
|
|
||||||
// inside Special Blocks
|
|
||||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + x, h, zDir + z)
|
|
||||||
!= EMT_CasingBlock.EMT_GT_BLOCKS[0])
|
|
||||||
return false;
|
|
||||||
else if ((aBaseMetaTileEntity.getMetaIDOffset(xDir + x, h, zDir + z) != 1)) return false;
|
|
||||||
} else if (!(this.addEssetiaHatchToList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addDynamoToMachineList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addMaintenanceToMachineList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addInputToMachineList(tTileEntity, CASING_INDEX)))
|
|
||||||
// ground still casings
|
|
||||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + x, h, zDir + z)
|
|
||||||
!= EMT_CasingBlock.EMT_GT_BLOCKS[0])
|
|
||||||
return false;
|
|
||||||
else if ((aBaseMetaTileEntity.getMetaIDOffset(xDir + x, h, zDir + z) != 0)) return false;
|
|
||||||
|
|
||||||
} else if (h != 0) {
|
|
||||||
// walls
|
|
||||||
if (!(this.addEssetiaHatchToList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addDynamoToMachineList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addMaintenanceToMachineList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addInputToMachineList(tTileEntity, CASING_INDEX)))
|
|
||||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + x, h, zDir + z)
|
|
||||||
!= EMT_CasingBlock.EMT_GT_BLOCKS[0])
|
|
||||||
return false;
|
|
||||||
else if ((aBaseMetaTileEntity.getMetaIDOffset(xDir + x, h, zDir + z) != 0)) return false;
|
|
||||||
} else if (h == 0) {
|
|
||||||
// top and bottom corners
|
|
||||||
if (!(this.addEssetiaHatchToList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addDynamoToMachineList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addMaintenanceToMachineList(tTileEntity, CASING_INDEX)
|
|
||||||
|| this.addInputToMachineList(tTileEntity, CASING_INDEX)))
|
|
||||||
if (((xDir + x) != 0) || ((zDir + z) != 0)) // controller
|
|
||||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + x, h, zDir + z)
|
|
||||||
!= EMT_CasingBlock.EMT_GT_BLOCKS[0])
|
|
||||||
return false;
|
|
||||||
else if ((aBaseMetaTileEntity.getMetaIDOffset(xDir + x, h, zDir + z) != 0)) return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.mDynamoHatches.size() != 1) return false;
|
|
||||||
|
|
||||||
if (this.mInputHatches.size() != 1) return false;
|
|
||||||
|
|
||||||
if (this.mMaintenanceHatches.size() != 1) return false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* //repair shit debug shit this.mWrench = true; this.mScrewdriver = true; this.mSoftHammer = true;
|
|
||||||
* this.mHardHammer = true; this.mSolderingTool = true; this.mCrowbar = true;
|
|
||||||
*/
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean addInputToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) {
|
|
||||||
if (aTileEntity instanceof EssentiaHatch) return addEssetiaHatchToList(aTileEntity, aBaseCasingIndex);
|
|
||||||
return super.addInputToMachineList(aTileEntity, aBaseCasingIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean addEssetiaHatchToList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) {
|
|
||||||
if (aTileEntity == null) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity();
|
|
||||||
if (aMetaTileEntity == null) {
|
|
||||||
return false;
|
|
||||||
} else if (aMetaTileEntity instanceof EssentiaHatch) {
|
|
||||||
((EssentiaHatch) aMetaTileEntity).updateTexture(aBaseCasingIndex);
|
|
||||||
return this.mEssentiaHatches.add((EssentiaHatch) aMetaTileEntity);
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void make_energy() {
|
|
||||||
AspectList fuel = this.mEssentiaHatches.get(0).getAspects();
|
|
||||||
double cached = 0;
|
|
||||||
|
|
||||||
++tick;
|
|
||||||
|
|
||||||
// make energy
|
|
||||||
for (final Aspect A : fuel.aspects.keySet()) {
|
|
||||||
if (fuel.getAmount(A) > 0) {
|
|
||||||
double burnvalue = EMTEssentiasOutputs.outputs.get(A.getTag()).doubleValue();
|
|
||||||
cached += (burnvalue / 20D);
|
|
||||||
cached = Math.ceil(cached);
|
|
||||||
|
|
||||||
if (tick % 20 == 0) { // every second consume 1 essentia
|
|
||||||
// consume essentia and remove it from the Aspect List if its 0
|
|
||||||
this.mEssentiaHatches.get(0).getAspects().reduce(A, 1);
|
|
||||||
if (this.mEssentiaHatches.get(0).getAspects().getAmount(A) == 0)
|
|
||||||
this.mEssentiaHatches.get(0).getAspects().remove(A);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tick % 20 == 0) {
|
|
||||||
// consume lubricant
|
|
||||||
if (has_lube) this.mInputHatches.get(0).getFluid().amount -= 1;
|
|
||||||
|
|
||||||
tick = 0; // reset ticktimer
|
|
||||||
}
|
|
||||||
|
|
||||||
// transfer energy into mEU
|
|
||||||
this.mEUt = (int) Math.ceil(cached);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean checkRecipe(ItemStack arg0) {
|
|
||||||
/*
|
|
||||||
* if (!this.getBaseMetaTileEntity().isActive()) if (this.mEfficiency > 100) this.mEfficiency -= 8; else
|
|
||||||
* this.mEfficiency = 100;
|
|
||||||
*/
|
|
||||||
if (this.mEssentiaHatches.get(0).fuelleft() > 0) {
|
|
||||||
this.mMaxProgresstime = 1;
|
|
||||||
this.mProgresstime = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.mEssentiaHatches.get(0).fuelleft() > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onRunningTick(ItemStack aStack) {
|
|
||||||
|
|
||||||
if (tick % 20 == 0) { // every second
|
|
||||||
// highers eff to max by 0.16% every running tick = 3,2% every second
|
|
||||||
if (this.mEfficiency < this.getMaxEfficiency(null) - 320) this.mEfficiency += 320;
|
|
||||||
else this.mEfficiency = getMaxEfficiency(null);
|
|
||||||
|
|
||||||
// check for Lubricant
|
|
||||||
this.has_lube = this.mInputHatches.get(0).getFluid() != null
|
|
||||||
&& this.mInputHatches.get(0).getFluid().isFluidEqual(Materials.Lubricant.getFluid(1L))
|
|
||||||
&& this.mInputHatches.get(0).getFluidAmount() > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tick % 2 == 0) { // every 2nd tick
|
|
||||||
|
|
||||||
final XSTR R = new XSTR();
|
|
||||||
final World WORLD = this.getBaseMetaTileEntity().getWorld();
|
|
||||||
int x = this.getBaseMetaTileEntity().getXCoord();
|
|
||||||
int y = this.getBaseMetaTileEntity().getYCoord();
|
|
||||||
int z = this.getBaseMetaTileEntity().getZCoord();
|
|
||||||
|
|
||||||
// if out of aqua, make much flux but to not stop.
|
|
||||||
boolean outOfcVis = VisNetHandler.drainVis(WORLD, x, y, z, Aspect.WATER, 10) <= 9;
|
|
||||||
|
|
||||||
// Random Change of a bit of Flux Gas.
|
|
||||||
final int RANDOMHATCH = R.nextInt(this.mMufflerHatches.size());
|
|
||||||
|
|
||||||
// gets a chanche to release flux gas based on missing efficiency, min 1%
|
|
||||||
if ((R.nextInt(getMaxEfficiency(null)) > (this.mEfficiency > 100 ? this.mEfficiency : 100)) || outOfcVis) {
|
|
||||||
x = this.mMufflerHatches.get(RANDOMHATCH).getBaseMetaTileEntity().getXCoord();
|
|
||||||
y = this.mMufflerHatches.get(RANDOMHATCH).getBaseMetaTileEntity().getYCoord() + 1;
|
|
||||||
z = this.mMufflerHatches.get(RANDOMHATCH).getBaseMetaTileEntity().getZCoord();
|
|
||||||
WORLD.setBlock(x, y, z, ConfigBlocks.blockFluxGas, R.nextInt(8), 3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
make_energy();
|
|
||||||
++this.mProgresstime;
|
|
||||||
return super.onRunningTick(aStack);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean explodesOnComponentBreak(ItemStack arg0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getDamageToComponent(ItemStack arg0) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getMaxEfficiency(ItemStack arg0) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return 10000;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getPollutionPerTick(ItemStack arg0) {
|
|
||||||
return has_lube ? 50 : 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isCorrectMachinePart(ItemStack arg0) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isGivingInformation() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getInfoData() {
|
|
||||||
String[] old = super.getInfoData();
|
|
||||||
old[2] = "Produces " + EMTTextHelper.RED + mEUt + EMTTextHelper.WHITE + "EU/t";
|
|
||||||
return old;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @Override public void explodeMultiblock() { final World WORLD=this.getBaseMetaTileEntity().getWorld(); final int
|
|
||||||
* xDir = ForgeDirection.getOrientation(this.getBaseMetaTileEntity().getBackFacing()).offsetX * 3; final int zDir =
|
|
||||||
* ForgeDirection.getOrientation(this.getBaseMetaTileEntity().getBackFacing()).offsetZ * 3; for (int x = -3; x <= 3;
|
|
||||||
* x++) for (int z = -3; z <= 3; z++) for (int h = 0; h <= 3; h++) WORLD.setBlock(xDir+x,
|
|
||||||
* this.getBaseMetaTileEntity().getYCoord()+h, zDir+z, ConfigBlocks.blockFluxGas, 8, 3); super.explodeMultiblock();
|
|
||||||
* }
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
@@ -5,11 +5,14 @@ import static thaumcraft.api.ThaumcraftApi.registerObjectTag;
|
|||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import emt.block.*;
|
import emt.block.BlockElectricCloud;
|
||||||
|
import emt.block.BlockEssentiaGenerators;
|
||||||
|
import emt.block.BlockMachines;
|
||||||
|
import emt.block.BlockPortableNode;
|
||||||
|
import emt.block.BlockShield;
|
||||||
import emt.item.block.ItemBlockElectricCloud;
|
import emt.item.block.ItemBlockElectricCloud;
|
||||||
import emt.item.block.ItemBlockEssentiaGenerators;
|
import emt.item.block.ItemBlockEssentiaGenerators;
|
||||||
import emt.item.block.ItemBlockMachines;
|
import emt.item.block.ItemBlockMachines;
|
||||||
import emt.item.block.ItemBlockSolars;
|
|
||||||
import emt.tile.solar.Solars;
|
import emt.tile.solar.Solars;
|
||||||
import ic2.api.item.IC2Items;
|
import ic2.api.item.IC2Items;
|
||||||
import thaumcraft.api.aspects.Aspect;
|
import thaumcraft.api.aspects.Aspect;
|
||||||
@@ -19,7 +22,7 @@ public class EMTBlocks {
|
|||||||
|
|
||||||
public static Block portableNode, essentiaGens, shield, emtMachines, electricCloud;
|
public static Block portableNode, essentiaGens, shield, emtMachines, electricCloud;
|
||||||
|
|
||||||
public static Block[] solars = new Block[Solars.getCountOfInstances()];
|
public static Block[] solars = new Block[0];
|
||||||
|
|
||||||
public static void registerBlocks() {
|
public static void registerBlocks() {
|
||||||
portableNode = new BlockPortableNode("portablenode");
|
portableNode = new BlockPortableNode("portablenode");
|
||||||
@@ -28,22 +31,17 @@ public class EMTBlocks {
|
|||||||
shield = new BlockShield("shield");
|
shield = new BlockShield("shield");
|
||||||
GameRegistry.registerBlock(shield, "ShieldBlock");
|
GameRegistry.registerBlock(shield, "ShieldBlock");
|
||||||
|
|
||||||
for (int i = 0; i < solars.length; i++) {
|
if (Registry.enableGTCompat) {
|
||||||
if (i == 0) {
|
solars = Solars.registerBlocks();
|
||||||
solars[i] = new BlockSolars("solar", Solars.getCountOfMetas(i), i);
|
|
||||||
GameRegistry.registerBlock(solars[i], ItemBlockSolars.class, "EMTSolars");
|
|
||||||
} else {
|
|
||||||
solars[i] = new BlockSolars("solar" + (i + 1), Solars.getCountOfMetas(i), i);
|
|
||||||
GameRegistry.registerBlock(solars[i], ItemBlockSolars.class, "EMTSolars" + (i + 1));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
emtMachines = new BlockMachines("machine");
|
emtMachines = new BlockMachines("machine");
|
||||||
GameRegistry.registerBlock(emtMachines, ItemBlockMachines.class, "EMTMachines");
|
GameRegistry.registerBlock(emtMachines, ItemBlockMachines.class, "EMTMachines");
|
||||||
|
|
||||||
essentiaGens = new BlockEssentiaGenerators("essentia");
|
if (Registry.enableGTCompat) {
|
||||||
GameRegistry.registerBlock(essentiaGens, ItemBlockEssentiaGenerators.class, "EssentiaGenerators");
|
essentiaGens = new BlockEssentiaGenerators("essentia");
|
||||||
|
GameRegistry.registerBlock(essentiaGens, ItemBlockEssentiaGenerators.class, "EssentiaGenerators");
|
||||||
|
}
|
||||||
electricCloud = new BlockElectricCloud("electricCloud");
|
electricCloud = new BlockElectricCloud("electricCloud");
|
||||||
GameRegistry.registerBlock(electricCloud, ItemBlockElectricCloud.class, "electricCloud");
|
GameRegistry.registerBlock(electricCloud, ItemBlockElectricCloud.class, "electricCloud");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,13 @@ import emt.item.armor.wings.ItemFeatherWing;
|
|||||||
import emt.item.armor.wings.ItemNanoWing;
|
import emt.item.armor.wings.ItemNanoWing;
|
||||||
import emt.item.armor.wings.ItemQuantumWing;
|
import emt.item.armor.wings.ItemQuantumWing;
|
||||||
import emt.item.armor.wings.ItemThaumiumReinforcedWing;
|
import emt.item.armor.wings.ItemThaumiumReinforcedWing;
|
||||||
import emt.item.focus.*;
|
import emt.item.focus.ItemChargeFocus;
|
||||||
|
import emt.item.focus.ItemChristmasFocus;
|
||||||
|
import emt.item.focus.ItemEnergyBallFocus;
|
||||||
|
import emt.item.focus.ItemExplosionFocus;
|
||||||
|
import emt.item.focus.ItemMaintenanceFocus;
|
||||||
|
import emt.item.focus.ItemShieldFocus;
|
||||||
|
import emt.item.focus.ItemWandChargingFocus;
|
||||||
import emt.item.tool.ItemElectricHoeGrowth;
|
import emt.item.tool.ItemElectricHoeGrowth;
|
||||||
import emt.item.tool.ItemElectricThorHammer;
|
import emt.item.tool.ItemElectricThorHammer;
|
||||||
import emt.item.tool.ItemThorHammer;
|
import emt.item.tool.ItemThorHammer;
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import emt.EMT;
|
|||||||
import emt.util.EMTConfigHandler;
|
import emt.util.EMTConfigHandler;
|
||||||
import emt.util.EMTCraftingAspects;
|
import emt.util.EMTCraftingAspects;
|
||||||
import emt.util.EMTResearchAspects;
|
import emt.util.EMTResearchAspects;
|
||||||
import gregtech.api.enums.ItemList;
|
|
||||||
import ic2.api.item.IC2Items;
|
import ic2.api.item.IC2Items;
|
||||||
import ic2.api.recipe.IRecipeInput;
|
import ic2.api.recipe.IRecipeInput;
|
||||||
import ic2.api.recipe.RecipeInputItemStack;
|
import ic2.api.recipe.RecipeInputItemStack;
|
||||||
@@ -536,18 +535,19 @@ public class EMTRecipes {
|
|||||||
new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian),
|
new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian),
|
||||||
new ItemStack(Blocks.obsidian) });
|
new ItemStack(Blocks.obsidian) });
|
||||||
|
|
||||||
maintenanceFocus = addInfusionCraftingRecipe(
|
if (Registry.enableGTCompat) {
|
||||||
"Wand Focus: Maintenance",
|
maintenanceFocus = addInfusionCraftingRecipe(
|
||||||
new ItemStack(EMTItems.maintenanceFocus),
|
"Wand Focus: Maintenance",
|
||||||
6,
|
new ItemStack(EMTItems.maintenanceFocus),
|
||||||
EMTCraftingAspects.maintenanceFocus,
|
6,
|
||||||
new ItemStack(EMTItems.chargeFocus),
|
EMTCraftingAspects.maintenanceFocus,
|
||||||
new ItemStack[] { new ItemStack(ConfigItems.itemShard, 1, 5),
|
new ItemStack(EMTItems.chargeFocus),
|
||||||
new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 3),
|
new ItemStack[] { new ItemStack(ConfigItems.itemShard, 1, 5),
|
||||||
new ItemStack(EMTItems.itemEMTItems, 1, 9), new ItemStack(ConfigItems.itemShard, 1, 2),
|
new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 3),
|
||||||
new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 0),
|
new ItemStack(EMTItems.itemEMTItems, 1, 9), new ItemStack(ConfigItems.itemShard, 1, 2),
|
||||||
ItemList.Duct_Tape.get(1) });
|
new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 0),
|
||||||
|
new ItemStack(GameRegistry.findItem("gregtech", "gt.metaitem.01"), 1, 32764) });
|
||||||
|
}
|
||||||
potentiaGenerator = addInfusionCraftingRecipe(
|
potentiaGenerator = addInfusionCraftingRecipe(
|
||||||
"Potentia Generator",
|
"Potentia Generator",
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||||
@@ -616,16 +616,20 @@ public class EMTRecipes {
|
|||||||
new ItemStack(Blocks.diamond_block), new ItemStack(ConfigItems.itemShard, 1, 5),
|
new ItemStack(Blocks.diamond_block), new ItemStack(ConfigItems.itemShard, 1, 5),
|
||||||
new ItemStack(ConfigBlocks.blockJar) });
|
new ItemStack(ConfigBlocks.blockJar) });
|
||||||
|
|
||||||
solarHelmetRevealing = addInfusionCraftingRecipe(
|
if (Registry.enableGTCompat) {
|
||||||
"Solar Helmet of Revealing",
|
solarHelmetRevealing = addInfusionCraftingRecipe(
|
||||||
getChargedItem(EMTItems.solarHelmetRevealing, 10),
|
"Solar Helmet of Revealing",
|
||||||
5,
|
getChargedItem(EMTItems.solarHelmetRevealing, 10),
|
||||||
EMTCraftingAspects.solarHelmetRevealing,
|
5,
|
||||||
new ItemStack(EMTItems.quantumThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE),
|
EMTCraftingAspects.solarHelmetRevealing,
|
||||||
new ItemStack[] { new ItemStack(EMTBlocks.solars[0], 1, 1), IC2Items.getItem("glassFiberCableItem"),
|
new ItemStack(EMTItems.quantumThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE),
|
new ItemStack[] { new ItemStack(EMTBlocks.solars[0], 1, 1), IC2Items.getItem("glassFiberCableItem"),
|
||||||
new ItemStack(ConfigItems.itemShard, 1, 4) });
|
new ItemStack(
|
||||||
|
IC2Items.getItem("lapotronCrystal").getItem(),
|
||||||
|
1,
|
||||||
|
OreDictionary.WILDCARD_VALUE),
|
||||||
|
new ItemStack(ConfigItems.itemShard, 1, 4) });
|
||||||
|
}
|
||||||
electricBootsTravel = addInfusionCraftingRecipe(
|
electricBootsTravel = addInfusionCraftingRecipe(
|
||||||
"Electric Boots of the Traveller",
|
"Electric Boots of the Traveller",
|
||||||
getChargedItem(EMTItems.electricBootsTraveller, 10),
|
getChargedItem(EMTItems.electricBootsTraveller, 10),
|
||||||
@@ -669,17 +673,19 @@ public class EMTRecipes {
|
|||||||
new ItemStack(Blocks.iron_block), new ItemStack(EMTItems.itemEMTItems, 1, 5),
|
new ItemStack(Blocks.iron_block), new ItemStack(EMTItems.itemEMTItems, 1, 5),
|
||||||
new ItemStack(EMTItems.itemEMTItems, 1, 5) });
|
new ItemStack(EMTItems.itemEMTItems, 1, 5) });
|
||||||
|
|
||||||
tripleCompressedSolar = addInfusionCraftingRecipe(
|
if (Registry.enableGTCompat) {
|
||||||
"Compressed Solars",
|
tripleCompressedSolar = addInfusionCraftingRecipe(
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
"Compressed Solars",
|
||||||
2,
|
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||||
EMTCraftingAspects.compressedSolars,
|
2,
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
EMTCraftingAspects.compressedSolars,
|
||||||
new ItemStack[] { new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack[] { new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1) });
|
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
|
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
|
new ItemStack(EMTBlocks.solars[0], 1, 1) });
|
||||||
|
}
|
||||||
electricHoeGrowth = addInfusionCraftingRecipe(
|
electricHoeGrowth = addInfusionCraftingRecipe(
|
||||||
"Electric Hoe of Growth",
|
"Electric Hoe of Growth",
|
||||||
getChargedItem(EMTItems.electricHoeGrowth, 10),
|
getChargedItem(EMTItems.electricHoeGrowth, 10),
|
||||||
@@ -867,26 +873,26 @@ public class EMTRecipes {
|
|||||||
EMTCraftingAspects.tinyUraniumCrafting,
|
EMTCraftingAspects.tinyUraniumCrafting,
|
||||||
IC2Items.getItem("Uran238"));
|
IC2Items.getItem("Uran238"));
|
||||||
|
|
||||||
compressedSolar = addArcaneCraftingRecipe(
|
if (Registry.enableGTCompat) {
|
||||||
"Compressed Solars",
|
compressedSolar = addArcaneCraftingRecipe(
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
"Compressed Solars",
|
||||||
EMTCraftingAspects.compressedSolars,
|
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||||
"XXX",
|
EMTCraftingAspects.compressedSolars,
|
||||||
"XXX",
|
"XXX",
|
||||||
"XXX",
|
"XXX",
|
||||||
'X',
|
"XXX",
|
||||||
IC2Items.getItem("solarPanel"));
|
'X',
|
||||||
|
IC2Items.getItem("solarPanel"));
|
||||||
doubleCompressedSolar = addArcaneCraftingRecipe(
|
doubleCompressedSolar = addArcaneCraftingRecipe(
|
||||||
"Compressed Solars",
|
"Compressed Solars",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
EMTCraftingAspects.compressedSolars,
|
EMTCraftingAspects.compressedSolars,
|
||||||
"XXX",
|
"XXX",
|
||||||
"XXX",
|
"XXX",
|
||||||
"XXX",
|
"XXX",
|
||||||
'X',
|
'X',
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 0));
|
new ItemStack(EMTBlocks.solars[0], 1, 0));
|
||||||
|
}
|
||||||
electricScribingTools = addArcaneCraftingRecipe(
|
electricScribingTools = addArcaneCraftingRecipe(
|
||||||
"Electric Scribing Tools",
|
"Electric Scribing Tools",
|
||||||
getChargedItem(EMTItems.electricScribingTools, 10),
|
getChargedItem(EMTItems.electricScribingTools, 10),
|
||||||
@@ -935,139 +941,140 @@ public class EMTRecipes {
|
|||||||
// ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 2), 'Z', new ItemStack(GregTech_API.sBlockCasings8, 1, 6),
|
// ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 2), 'Z', new ItemStack(GregTech_API.sBlockCasings8, 1, 6),
|
||||||
// 'A', new ItemStack(ConfigBlocks.blockStoneDevice, 1, 5));
|
// 'A', new ItemStack(ConfigBlocks.blockStoneDevice, 1, 5));
|
||||||
|
|
||||||
/** Crucible Recipes **/
|
if (Registry.enableGTCompat) {
|
||||||
ignisGenerator = addCrucibleRecipe(
|
/** Crucible Recipes **/
|
||||||
"Ignis Generator",
|
ignisGenerator = addCrucibleRecipe(
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 1),
|
"Ignis Generator",
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 1),
|
||||||
EMTCraftingAspects.ignisGeneratorCrafting);
|
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||||
|
EMTCraftingAspects.ignisGeneratorCrafting);
|
||||||
|
|
||||||
auramGenerator = addCrucibleRecipe(
|
auramGenerator = addCrucibleRecipe(
|
||||||
"Auram Generator",
|
"Auram Generator",
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 2),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 2),
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||||
EMTCraftingAspects.auramGeneratorCrafting);
|
EMTCraftingAspects.auramGeneratorCrafting);
|
||||||
|
|
||||||
arborGenerator = addCrucibleRecipe(
|
arborGenerator = addCrucibleRecipe(
|
||||||
"Arbor Generator",
|
"Arbor Generator",
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 3),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 3),
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||||
EMTCraftingAspects.arborGeneratorCrafting);
|
EMTCraftingAspects.arborGeneratorCrafting);
|
||||||
|
|
||||||
aerGenerator = addCrucibleRecipe(
|
aerGenerator = addCrucibleRecipe(
|
||||||
"Aer Generator",
|
"Aer Generator",
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 4),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 4),
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||||
EMTCraftingAspects.aerGenerator);
|
EMTCraftingAspects.aerGenerator);
|
||||||
|
|
||||||
waterSolar = addCrucibleRecipe(
|
waterSolar = addCrucibleRecipe(
|
||||||
"Water Infused Solar Panels",
|
"Water Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 3),
|
new ItemStack(EMTBlocks.solars[0], 1, 3),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||||
EMTCraftingAspects.waterSolars);
|
EMTCraftingAspects.waterSolars);
|
||||||
|
|
||||||
doubleWaterSolar = addCrucibleRecipe(
|
doubleWaterSolar = addCrucibleRecipe(
|
||||||
"Water Infused Solar Panels",
|
"Water Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 4),
|
new ItemStack(EMTBlocks.solars[0], 1, 4),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
EMTCraftingAspects.waterSolars);
|
EMTCraftingAspects.waterSolars);
|
||||||
|
|
||||||
tripleWaterSolar = addCrucibleRecipe(
|
tripleWaterSolar = addCrucibleRecipe(
|
||||||
"Water Infused Solar Panels",
|
"Water Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 5),
|
new ItemStack(EMTBlocks.solars[0], 1, 5),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||||
EMTCraftingAspects.waterSolars);
|
EMTCraftingAspects.waterSolars);
|
||||||
|
|
||||||
darkSolar = addCrucibleRecipe(
|
darkSolar = addCrucibleRecipe(
|
||||||
"Entropy Infused Solar Panels",
|
"Entropy Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 6),
|
new ItemStack(EMTBlocks.solars[0], 1, 6),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||||
EMTCraftingAspects.darkSolars);
|
EMTCraftingAspects.darkSolars);
|
||||||
|
|
||||||
doubleDarkSolar = addCrucibleRecipe(
|
doubleDarkSolar = addCrucibleRecipe(
|
||||||
"Entropy Infused Solar Panels",
|
"Entropy Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 7),
|
new ItemStack(EMTBlocks.solars[0], 1, 7),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
EMTCraftingAspects.darkSolars);
|
EMTCraftingAspects.darkSolars);
|
||||||
|
|
||||||
tripleDarkSolar = addCrucibleRecipe(
|
tripleDarkSolar = addCrucibleRecipe(
|
||||||
"Entropy Infused Solar Panels",
|
"Entropy Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 8),
|
new ItemStack(EMTBlocks.solars[0], 1, 8),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||||
EMTCraftingAspects.darkSolars);
|
EMTCraftingAspects.darkSolars);
|
||||||
|
|
||||||
orderSolar = addCrucibleRecipe(
|
orderSolar = addCrucibleRecipe(
|
||||||
"Order Infused Solar Panels",
|
"Order Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 9),
|
new ItemStack(EMTBlocks.solars[0], 1, 9),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||||
EMTCraftingAspects.orderSolars);
|
EMTCraftingAspects.orderSolars);
|
||||||
|
|
||||||
doubleOrderSolar = addCrucibleRecipe(
|
doubleOrderSolar = addCrucibleRecipe(
|
||||||
"Order Infused Solar Panels",
|
"Order Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 10),
|
new ItemStack(EMTBlocks.solars[0], 1, 10),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
EMTCraftingAspects.orderSolars);
|
EMTCraftingAspects.orderSolars);
|
||||||
|
|
||||||
tripleOrderSolar = addCrucibleRecipe(
|
tripleOrderSolar = addCrucibleRecipe(
|
||||||
"Order Infused Solar Panels",
|
"Order Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 11),
|
new ItemStack(EMTBlocks.solars[0], 1, 11),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||||
EMTCraftingAspects.orderSolars);
|
EMTCraftingAspects.orderSolars);
|
||||||
|
|
||||||
fireSolar = addCrucibleRecipe(
|
fireSolar = addCrucibleRecipe(
|
||||||
"Fire Infused Solar Panels",
|
"Fire Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 12),
|
new ItemStack(EMTBlocks.solars[0], 1, 12),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||||
EMTCraftingAspects.fireSolars);
|
EMTCraftingAspects.fireSolars);
|
||||||
|
|
||||||
doubleFireSolar = addCrucibleRecipe(
|
doubleFireSolar = addCrucibleRecipe(
|
||||||
"Fire Infused Solar Panels",
|
"Fire Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 13),
|
new ItemStack(EMTBlocks.solars[0], 1, 13),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
EMTCraftingAspects.fireSolars);
|
EMTCraftingAspects.fireSolars);
|
||||||
|
|
||||||
tripleFireSolar = addCrucibleRecipe(
|
tripleFireSolar = addCrucibleRecipe(
|
||||||
"Fire Infused Solar Panels",
|
"Fire Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 14),
|
new ItemStack(EMTBlocks.solars[0], 1, 14),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||||
EMTCraftingAspects.fireSolars);
|
EMTCraftingAspects.fireSolars);
|
||||||
|
|
||||||
airSolar = addCrucibleRecipe(
|
airSolar = addCrucibleRecipe(
|
||||||
"Air Infused Solar Panels",
|
"Air Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 15),
|
new ItemStack(EMTBlocks.solars[0], 1, 15),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||||
EMTCraftingAspects.airSolars);
|
EMTCraftingAspects.airSolars);
|
||||||
|
|
||||||
doubleAirSolar = addCrucibleRecipe(
|
doubleAirSolar = addCrucibleRecipe(
|
||||||
"Air Infused Solar Panels",
|
"Air Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[1], 1, 0),
|
new ItemStack(EMTBlocks.solars[1], 1, 0),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
EMTCraftingAspects.airSolars);
|
EMTCraftingAspects.airSolars);
|
||||||
|
|
||||||
tripleAirSolar = addCrucibleRecipe(
|
tripleAirSolar = addCrucibleRecipe(
|
||||||
"Air Infused Solar Panels",
|
"Air Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[1], 1, 1),
|
new ItemStack(EMTBlocks.solars[1], 1, 1),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||||
EMTCraftingAspects.airSolars);
|
EMTCraftingAspects.airSolars);
|
||||||
|
|
||||||
earthSolar = addCrucibleRecipe(
|
earthSolar = addCrucibleRecipe(
|
||||||
"Earth Infused Solar Panels",
|
"Earth Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[1], 1, 2),
|
new ItemStack(EMTBlocks.solars[1], 1, 2),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||||
EMTCraftingAspects.earthSolars);
|
EMTCraftingAspects.earthSolars);
|
||||||
|
|
||||||
doubleEarthSolar = addCrucibleRecipe(
|
doubleEarthSolar = addCrucibleRecipe(
|
||||||
"Earth Infused Solar Panels",
|
"Earth Infused Solar Panels",
|
||||||
new ItemStack(EMTBlocks.solars[1], 1, 3),
|
new ItemStack(EMTBlocks.solars[1], 1, 3),
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||||
EMTCraftingAspects.earthSolars);
|
EMTCraftingAspects.earthSolars);
|
||||||
|
|
||||||
tripleEarthSolar = addCrucibleRecipe(
|
|
||||||
"Earth Infused Solar Panels",
|
|
||||||
new ItemStack(EMTBlocks.solars[1], 1, 4),
|
|
||||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
|
||||||
EMTCraftingAspects.earthSolars);
|
|
||||||
|
|
||||||
|
tripleEarthSolar = addCrucibleRecipe(
|
||||||
|
"Earth Infused Solar Panels",
|
||||||
|
new ItemStack(EMTBlocks.solars[1], 1, 4),
|
||||||
|
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||||
|
EMTCraftingAspects.earthSolars);
|
||||||
|
}
|
||||||
ItemStack itemStack = new ItemStack(ConfigItems.itemJarNode);
|
ItemStack itemStack = new ItemStack(ConfigItems.itemJarNode);
|
||||||
((ItemJarNode) itemStack.getItem()).setAspects(itemStack, new AspectList());
|
((ItemJarNode) itemStack.getItem()).setAspects(itemStack, new AspectList());
|
||||||
portableNode = addCrucibleRecipe(
|
portableNode = addCrucibleRecipe(
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ public class EMTResearches {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
if (Registry.enableGTCompat && !EMTConfigHandler.potentiaGeneratorResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Potentia Generator",
|
"Potentia Generator",
|
||||||
EMTResearchAspects.potentiaGeneratorResearch,
|
EMTResearchAspects.potentiaGeneratorResearch,
|
||||||
@@ -239,9 +239,7 @@ public class EMTResearches {
|
|||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0)).setParents("Electric Magic Tools").setConcealed()
|
new ItemStack(EMTBlocks.essentiaGens, 1, 0)).setParents("Electric Magic Tools").setConcealed()
|
||||||
.registerResearchItem()
|
.registerResearchItem()
|
||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.potentiaGenerator));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.potentiaGenerator));
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
|
||||||
if (!EMTConfigHandler.ignisGeneratorResearch) {
|
if (!EMTConfigHandler.ignisGeneratorResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Ignis Generator",
|
"Ignis Generator",
|
||||||
@@ -253,9 +251,7 @@ public class EMTResearches {
|
|||||||
.setConcealed().registerResearchItem()
|
.setConcealed().registerResearchItem()
|
||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.ignisGenerator));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.ignisGenerator));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
|
||||||
if (!EMTConfigHandler.auramGeneratorResearch) {
|
if (!EMTConfigHandler.auramGeneratorResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Auram Generator",
|
"Auram Generator",
|
||||||
@@ -267,9 +263,7 @@ public class EMTResearches {
|
|||||||
.setConcealed().registerResearchItem()
|
.setConcealed().registerResearchItem()
|
||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.auramGenerator));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.auramGenerator));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
|
||||||
if (!EMTConfigHandler.arborGeneratorResearch) {
|
if (!EMTConfigHandler.arborGeneratorResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Arbor Generator",
|
"Arbor Generator",
|
||||||
@@ -281,9 +275,7 @@ public class EMTResearches {
|
|||||||
.setConcealed().registerResearchItem()
|
.setConcealed().registerResearchItem()
|
||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.arborGenerator));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.arborGenerator));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
|
||||||
if (!EMTConfigHandler.lucrumGeneratorResearch) {
|
if (!EMTConfigHandler.lucrumGeneratorResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Lucrum Generator",
|
"Lucrum Generator",
|
||||||
@@ -295,9 +287,7 @@ public class EMTResearches {
|
|||||||
.setConcealed().registerResearchItem()
|
.setConcealed().registerResearchItem()
|
||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.lucrumGenerator));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.lucrumGenerator));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
|
||||||
if (!EMTConfigHandler.aerGeneratorResearch) {
|
if (!EMTConfigHandler.aerGeneratorResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Aer Generator",
|
"Aer Generator",
|
||||||
@@ -308,23 +298,20 @@ public class EMTResearches {
|
|||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 4)).setSecondary().setParents("Potentia Generator")
|
new ItemStack(EMTBlocks.essentiaGens, 1, 4)).setSecondary().setParents("Potentia Generator")
|
||||||
.setConcealed().registerResearchItem()
|
.setConcealed().registerResearchItem()
|
||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.aerGenerator));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.aerGenerator));
|
||||||
|
|
||||||
|
if (!EMTConfigHandler.wandChargingSationResearch) {
|
||||||
|
new EMTResearchItem(
|
||||||
|
"Industrial Wand Charging Station",
|
||||||
|
EMTResearchAspects.wandCharger,
|
||||||
|
-4,
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
new ItemStack(EMTBlocks.emtMachines, 1, 0)).setParents("Potentia Generator")
|
||||||
|
.registerResearchItem()
|
||||||
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.wandRecharger));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
|
||||||
if (!EMTConfigHandler.wandChargingSationResearch) {
|
|
||||||
new EMTResearchItem(
|
|
||||||
"Industrial Wand Charging Station",
|
|
||||||
EMTResearchAspects.wandCharger,
|
|
||||||
-4,
|
|
||||||
2,
|
|
||||||
3,
|
|
||||||
new ItemStack(EMTBlocks.emtMachines, 1, 0)).setParents("Potentia Generator")
|
|
||||||
.registerResearchItem()
|
|
||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.wandRecharger));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.thaumiumChainsawResearch) {
|
if (!EMTConfigHandler.thaumiumChainsawResearch) {
|
||||||
if (!EMTConfigHandler.streamChainsawResearch) {
|
if (!EMTConfigHandler.streamChainsawResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
@@ -388,7 +375,7 @@ public class EMTResearches {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
if (Registry.enableGTCompat && !EMTConfigHandler.compressedSolarsResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Compressed Solars",
|
"Compressed Solars",
|
||||||
EMTResearchAspects.compressedSolars,
|
EMTResearchAspects.compressedSolars,
|
||||||
@@ -401,9 +388,6 @@ public class EMTResearches {
|
|||||||
new ResearchPage(EMTRecipes.compressedSolar),
|
new ResearchPage(EMTRecipes.compressedSolar),
|
||||||
new ResearchPage(EMTRecipes.doubleCompressedSolar),
|
new ResearchPage(EMTRecipes.doubleCompressedSolar),
|
||||||
new ResearchPage(EMTRecipes.tripleCompressedSolar));
|
new ResearchPage(EMTRecipes.tripleCompressedSolar));
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
|
||||||
if (!EMTConfigHandler.solarHelmetResearch) {
|
if (!EMTConfigHandler.solarHelmetResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Solar Helmet of Revealing",
|
"Solar Helmet of Revealing",
|
||||||
@@ -416,7 +400,6 @@ public class EMTResearches {
|
|||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.solarHelmetRevealing));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.solarHelmetRevealing));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EMTConfigHandler.electricBootsResearch) {
|
if (!EMTConfigHandler.electricBootsResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Electric Boots of the Traveller",
|
"Electric Boots of the Traveller",
|
||||||
@@ -483,7 +466,7 @@ public class EMTResearches {
|
|||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.etheralProcessor));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.etheralProcessor));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
if (Registry.enableGTCompat && !EMTConfigHandler.compressedSolarsResearch) {
|
||||||
if (!EMTConfigHandler.waterSolarsResearch) {
|
if (!EMTConfigHandler.waterSolarsResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Water Infused Solar Panels",
|
"Water Infused Solar Panels",
|
||||||
@@ -498,9 +481,7 @@ public class EMTResearches {
|
|||||||
new ResearchPage(EMTRecipes.doubleWaterSolar),
|
new ResearchPage(EMTRecipes.doubleWaterSolar),
|
||||||
new ResearchPage(EMTRecipes.tripleWaterSolar));
|
new ResearchPage(EMTRecipes.tripleWaterSolar));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
|
||||||
if (!EMTConfigHandler.darkSolarsResearch) {
|
if (!EMTConfigHandler.darkSolarsResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Entropy Infused Solar Panels",
|
"Entropy Infused Solar Panels",
|
||||||
@@ -515,9 +496,7 @@ public class EMTResearches {
|
|||||||
new ResearchPage(EMTRecipes.doubleDarkSolar),
|
new ResearchPage(EMTRecipes.doubleDarkSolar),
|
||||||
new ResearchPage(EMTRecipes.tripleDarkSolar));
|
new ResearchPage(EMTRecipes.tripleDarkSolar));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
|
||||||
if (!EMTConfigHandler.orderSolarsResearch) {
|
if (!EMTConfigHandler.orderSolarsResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Order Infused Solar Panels",
|
"Order Infused Solar Panels",
|
||||||
@@ -532,9 +511,7 @@ public class EMTResearches {
|
|||||||
new ResearchPage(EMTRecipes.doubleOrderSolar),
|
new ResearchPage(EMTRecipes.doubleOrderSolar),
|
||||||
new ResearchPage(EMTRecipes.tripleOrderSolar));
|
new ResearchPage(EMTRecipes.tripleOrderSolar));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
|
||||||
if (!EMTConfigHandler.fireSolarsResearch) {
|
if (!EMTConfigHandler.fireSolarsResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Fire Infused Solar Panels",
|
"Fire Infused Solar Panels",
|
||||||
@@ -549,9 +526,7 @@ public class EMTResearches {
|
|||||||
new ResearchPage(EMTRecipes.doubleFireSolar),
|
new ResearchPage(EMTRecipes.doubleFireSolar),
|
||||||
new ResearchPage(EMTRecipes.tripleFireSolar));
|
new ResearchPage(EMTRecipes.tripleFireSolar));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
|
||||||
if (!EMTConfigHandler.airSolarsResearch) {
|
if (!EMTConfigHandler.airSolarsResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Air Infused Solar Panels",
|
"Air Infused Solar Panels",
|
||||||
@@ -566,9 +541,7 @@ public class EMTResearches {
|
|||||||
new ResearchPage(EMTRecipes.doubleAirSolar),
|
new ResearchPage(EMTRecipes.doubleAirSolar),
|
||||||
new ResearchPage(EMTRecipes.tripleAirSolar));
|
new ResearchPage(EMTRecipes.tripleAirSolar));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
|
||||||
if (!EMTConfigHandler.earthSolarsResearch) {
|
if (!EMTConfigHandler.earthSolarsResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Earth Infused Solar Panels",
|
"Earth Infused Solar Panels",
|
||||||
@@ -648,7 +621,7 @@ public class EMTResearches {
|
|||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.chargeFocus));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.chargeFocus));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EMTConfigHandler.maintenanceFocusResearch) {
|
if (Registry.enableGTCompat && !EMTConfigHandler.maintenanceFocusResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Wand Focus: Maintenance",
|
"Wand Focus: Maintenance",
|
||||||
EMTResearchAspects.maintenanceFocus,
|
EMTResearchAspects.maintenanceFocus,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package emt.init;
|
package emt.init;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import emt.gthandler.common.implementations.automation.EssentiaFiller;
|
|
||||||
import emt.tile.TileElectricCloud;
|
import emt.tile.TileElectricCloud;
|
||||||
import emt.tile.TileEntityEtherealMacerator;
|
import emt.tile.TileEntityEtherealMacerator;
|
||||||
import emt.tile.TileEntityIndustrialWandRecharge;
|
import emt.tile.TileEntityIndustrialWandRecharge;
|
||||||
@@ -13,49 +12,50 @@ public class EMTTiles {
|
|||||||
|
|
||||||
public static void registerTileEntities() {
|
public static void registerTileEntities() {
|
||||||
|
|
||||||
// Essentia Gens
|
if (Registry.enableGTCompat) {
|
||||||
// legacy support
|
// Essentia Gens
|
||||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentitypotentiagenerator");
|
// legacy support
|
||||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityignisgenerator");
|
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentitypotentiagenerator");
|
||||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityauramgenerator");
|
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityignisgenerator");
|
||||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityarborgenerator");
|
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityauramgenerator");
|
||||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityaergenerator");
|
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityarborgenerator");
|
||||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentitylucrumgenerator");
|
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityaergenerator");
|
||||||
|
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentitylucrumgenerator");
|
||||||
|
|
||||||
// new TEs will be called TileEntityEssentiaGenerator
|
// new TEs will be called TileEntityEssentiaGenerator
|
||||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "TileEntityEssentiaGenerator");
|
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "TileEntityEssentiaGenerator");
|
||||||
|
|
||||||
|
// Solars
|
||||||
|
// legacy support
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitycompressedsolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublecompressedsolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplecompressedsolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitywatersolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublewatersolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplewatersolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydarksolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubledarksolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripledarksolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityordersolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleordersolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleordersolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityfiresolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublefiresolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplefiresolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityairsolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleairsolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleairsolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityearthsolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleearthsolar");
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleearthsolar");
|
||||||
|
|
||||||
|
// new TEs will be called TileEntityXCompressedSolar
|
||||||
|
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "TileEntityXCompressedSolar");
|
||||||
|
}
|
||||||
|
|
||||||
// Machinery
|
// Machinery
|
||||||
GameRegistry.registerTileEntity(TileEntityIndustrialWandRecharge.class, "tileentityindustrialwandrecharge");
|
GameRegistry.registerTileEntity(TileEntityIndustrialWandRecharge.class, "tileentityindustrialwandrecharge");
|
||||||
GameRegistry.registerTileEntity(TileEntityEtherealMacerator.class, "tileentityetherealmacerator");
|
GameRegistry.registerTileEntity(TileEntityEtherealMacerator.class, "tileentityetherealmacerator");
|
||||||
GameRegistry.registerTileEntity(EssentiaFiller.class, "EssentiaFillerTE");
|
|
||||||
|
|
||||||
// Solars
|
|
||||||
// legacy support
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitycompressedsolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublecompressedsolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplecompressedsolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitywatersolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublewatersolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplewatersolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydarksolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubledarksolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripledarksolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityordersolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleordersolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleordersolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityfiresolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublefiresolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplefiresolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityairsolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleairsolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleairsolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityearthsolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleearthsolar");
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleearthsolar");
|
|
||||||
|
|
||||||
// new TEs will be called TileEntityXCompressedSolar
|
|
||||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "TileEntityXCompressedSolar");
|
|
||||||
|
|
||||||
// Random Stuff
|
// Random Stuff
|
||||||
GameRegistry.registerTileEntity(TileEntityPortableNode.class, "tileentityportablenode");
|
GameRegistry.registerTileEntity(TileEntityPortableNode.class, "tileentityportablenode");
|
||||||
|
|||||||
@@ -24,9 +24,7 @@ import gregtech.api.util.GT_Utility;
|
|||||||
import thaumcraft.api.ThaumcraftApi;
|
import thaumcraft.api.ThaumcraftApi;
|
||||||
import thaumcraft.api.ThaumcraftApiHelper;
|
import thaumcraft.api.ThaumcraftApiHelper;
|
||||||
import thaumcraft.api.aspects.AspectList;
|
import thaumcraft.api.aspects.AspectList;
|
||||||
import thaumcraft.api.crafting.CrucibleRecipe;
|
|
||||||
import thaumcraft.api.crafting.IArcaneRecipe;
|
import thaumcraft.api.crafting.IArcaneRecipe;
|
||||||
import thaumcraft.api.crafting.InfusionRecipe;
|
|
||||||
import thaumcraft.api.crafting.ShapedArcaneRecipe;
|
import thaumcraft.api.crafting.ShapedArcaneRecipe;
|
||||||
import thaumcraft.api.research.ResearchItem;
|
import thaumcraft.api.research.ResearchItem;
|
||||||
import thaumcraft.api.research.ResearchPage;
|
import thaumcraft.api.research.ResearchPage;
|
||||||
@@ -34,8 +32,6 @@ import thaumcraft.api.research.ResearchPage;
|
|||||||
public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
||||||
|
|
||||||
private static LinkedHashMap<String, IArcaneRecipe> arcaneRecipeLinkedHashMap = new LinkedHashMap<>();
|
private static LinkedHashMap<String, IArcaneRecipe> arcaneRecipeLinkedHashMap = new LinkedHashMap<>();
|
||||||
private static LinkedHashMap<String, InfusionRecipe> infusionRecipeLinkedHashMap = new LinkedHashMap<>();
|
|
||||||
private static LinkedHashMap<String, CrucibleRecipe> cruciblRecipeLinkedHashMap = new LinkedHashMap<>();
|
|
||||||
|
|
||||||
private static AspectList getPrimals(int amount) {
|
private static AspectList getPrimals(int amount) {
|
||||||
return new AspectList().add(ORDER, amount).add(ENTROPY, amount).add(AIR, amount).add(EARTH, amount)
|
return new AspectList().add(ORDER, amount).add(ENTROPY, amount).add(AIR, amount).add(EARTH, amount)
|
||||||
@@ -45,39 +41,12 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
// ItemStack glue =new ItemStack(EMTItems.itemEMTItems,1,8);
|
|
||||||
// HashSet<ShapelessRecipes> recipesHashSet = new HashSet<>();
|
|
||||||
// recipesHashSet.add(new ShapelessRecipes(glue,
|
|
||||||
// Arrays.asList(GT_ModHandler.getModItem("TConstruct","materials",1,36),GT_ModHandler.getModItem("TConstruct","materials",1,36))));
|
|
||||||
// recipesHashSet.add(new ShapelessRecipes(glue,
|
|
||||||
// Collections.singletonList(GT_ModHandler.getModItem("TConstruct", "materials", 2, 36))));
|
|
||||||
// for ( ShapelessRecipes sr : recipesHashSet)
|
|
||||||
// CraftingManager.getInstance().getRecipeList().add(sr);
|
|
||||||
//
|
|
||||||
// //Rubber ball recipes
|
|
||||||
//
|
|
||||||
// GT_Values.RA.addAlloySmelterRecipe(Materials.RubberTreeSap.getDust(4),ItemList.Shape_Mold_Ball.get(0),new
|
|
||||||
// ItemStack(EMTItems.itemEMTItems,1,10),200,16);
|
|
||||||
// GT_Values.RA.addAssemblerRecipe(new ItemStack[]{new ItemStack(Items.paper,12),new
|
|
||||||
// ItemStack(EMTItems.itemEMTItems,1,10)},Materials.Glue.getMolten(6912),new
|
|
||||||
// ItemStack(EMTItems.itemEMTItems,1,9),600,30);
|
|
||||||
//
|
|
||||||
// GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Ball.get(0),Materials.Rubber.getMolten(576),new
|
|
||||||
// ItemStack(EMTItems.itemEMTItems,1,10),100,30);
|
|
||||||
// GT_Values.RA.addPulveriserRecipe(new ItemStack(EMTItems.itemEMTItems,1,10),new
|
|
||||||
// ItemStack[]{Materials.Rubber.getDust(4)},null,300,2);
|
|
||||||
// GT_Values.RA.addFormingPressRecipe(Materials.Rubber.getPlates(4),ItemList.Shape_Mold_Ball.get(0),new
|
|
||||||
// ItemStack(EMTItems.itemEMTItems,1,10),100,30);
|
|
||||||
|
|
||||||
EMTResearches.addResearchTab();
|
EMTResearches.addResearchTab();
|
||||||
runArcaneRecipes();
|
runArcaneRecipes();
|
||||||
runResreaches();
|
runResreaches();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void runInfusionRecipes() {}
|
@SuppressWarnings("unchecked")
|
||||||
|
|
||||||
private void runKettleRecipes() {}
|
|
||||||
|
|
||||||
private void runArcaneRecipes() {
|
private void runArcaneRecipes() {
|
||||||
arcaneRecipeLinkedHashMap.put(
|
arcaneRecipeLinkedHashMap.put(
|
||||||
"DiamondChainsaw",
|
"DiamondChainsaw",
|
||||||
@@ -178,9 +147,7 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
|||||||
throw new UnsupportedOperationException("The Recipe must fit in a 3x3 crafting field!");
|
throw new UnsupportedOperationException("The Recipe must fit in a 3x3 crafting field!");
|
||||||
rowcolm = Arrays.copyOf(rowcolm, rows);
|
rowcolm = Arrays.copyOf(rowcolm, rows);
|
||||||
|
|
||||||
int k = 0;
|
|
||||||
for (int j = i; j < recipe.length; j += 2) {
|
for (int j = i; j < recipe.length; j += 2) {
|
||||||
k++;
|
|
||||||
if (recipe[j] instanceof Character) translation.put((Character) recipe[j], recipe[j + 1]);
|
if (recipe[j] instanceof Character) translation.put((Character) recipe[j], recipe[j + 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -205,7 +172,7 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
|||||||
true))
|
true))
|
||||||
if (!OreDictionary.getOres((String) itemReplacement).contains(slot)) return false;
|
if (!OreDictionary.getOres((String) itemReplacement).contains(slot)) return false;
|
||||||
} else if (itemReplacement instanceof ItemStack) {
|
} else if (itemReplacement instanceof ItemStack) {
|
||||||
if (!GT_Utility.isStackValid(itemReplacement)) {
|
if (!GT_Utility.isStackValid((ItemStack) itemReplacement)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!GT_Utility.areStacksEqual((ItemStack) itemReplacement, slot, true))
|
if (!GT_Utility.areStacksEqual((ItemStack) itemReplacement, slot, true))
|
||||||
@@ -216,7 +183,7 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
|||||||
return false;
|
return false;
|
||||||
} else if (itemReplacement instanceof Collection) {
|
} else if (itemReplacement instanceof Collection) {
|
||||||
boolean hit = false;
|
boolean hit = false;
|
||||||
for (Object o : (Collection) itemReplacement) {
|
for (Object o : (Collection<?>) itemReplacement) {
|
||||||
if (GT_Utility.areStacksEqual((ItemStack) o, slot, true)
|
if (GT_Utility.areStacksEqual((ItemStack) o, slot, true)
|
||||||
|| GT_Utility.areUnificationsEqual((ItemStack) o, slot, true)
|
|| GT_Utility.areUnificationsEqual((ItemStack) o, slot, true)
|
||||||
|| (((ItemStack) o).getItem().equals(slot.getItem())
|
|| (((ItemStack) o).getItem().equals(slot.getItem())
|
||||||
|
|||||||
@@ -1,31 +1,40 @@
|
|||||||
package emt.init;
|
package emt.init;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.Loader;
|
||||||
import emt.gthandler.common.loader.EMT_GT_Loader;
|
import emt.gthandler.common.loader.EMT_GT_Loader;
|
||||||
import emt.tile.solar.Solars;
|
import emt.tile.solar.Solars;
|
||||||
import emt.util.EMTEssentiasOutputs;
|
import emt.util.EMTEssentiasOutputs;
|
||||||
|
|
||||||
public class Registry {
|
public class Registry {
|
||||||
|
|
||||||
private static final EMT_GT_Loader gtloader = new EMT_GT_Loader();
|
public static boolean enableGTCompat;
|
||||||
|
|
||||||
public static void registerPreInit() {}
|
public static void registerPreInit() {
|
||||||
|
enableGTCompat = Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi");
|
||||||
public static void registerInit() {
|
|
||||||
EMTBlocks.registerBlocks();
|
EMTBlocks.registerBlocks();
|
||||||
EMTItems.registerItems();
|
EMTItems.registerItems();
|
||||||
EMTTiles.registerTileEntities();
|
EMTTiles.registerTileEntities();
|
||||||
gtloader.run();
|
}
|
||||||
|
|
||||||
|
public static void registerInit() {
|
||||||
|
if (enableGTCompat) {
|
||||||
|
EMT_GT_Loader.run();
|
||||||
|
}
|
||||||
EMTRecipes.registerEarlyRecipes();
|
EMTRecipes.registerEarlyRecipes();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerLate() {
|
public static void registerLate() {
|
||||||
EMTEssentiasOutputs.addOutputs();
|
EMTEssentiasOutputs.addOutputs();
|
||||||
EMTBlocks.addAspects();
|
EMTBlocks.addAspects();
|
||||||
gtloader.runlate();
|
if (enableGTCompat) {
|
||||||
|
EMT_GT_Loader.runlate();
|
||||||
|
}
|
||||||
EMTRecipes.registerLateRecipes();
|
EMTRecipes.registerLateRecipes();
|
||||||
// new EMT_GTNH_Recipes_And_Researches().run();
|
// new EMT_GTNH_Recipes_And_Researches().run();
|
||||||
EMTRecipes.registerUUMInfusionRecipes();
|
EMTRecipes.registerUUMInfusionRecipes();
|
||||||
EMTResearches.register();
|
EMTResearches.register();
|
||||||
Solars.registerReverseRecipes();
|
if (enableGTCompat) {
|
||||||
|
Solars.registerReverseRecipes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -26,9 +26,8 @@ public class ItemElectricScribingTools extends ItemInkwell implements IElectricI
|
|||||||
this.setMaxStackSize(1);
|
this.setMaxStackSize(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +52,7 @@ public class ItemElectricScribingTools extends ItemInkwell implements IElectricI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public class ItemIC2Baubles extends ItemBase implements IBauble, IRunicArmor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List list) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> list) {
|
||||||
list.add(new ItemStack(this, 1, 0));
|
list.add(new ItemStack(this, 1, 0));
|
||||||
list.add(new ItemStack(this, 1, 1));
|
list.add(new ItemStack(this, 1, 1));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,12 @@ import net.minecraft.item.EnumAction;
|
|||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.potion.PotionEffect;
|
import net.minecraft.potion.PotionEffect;
|
||||||
import net.minecraft.util.*;
|
import net.minecraft.util.EnumChatFormatting;
|
||||||
|
import net.minecraft.util.IIcon;
|
||||||
|
import net.minecraft.util.MathHelper;
|
||||||
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.util.MovingObjectPosition.MovingObjectType;
|
import net.minecraft.util.MovingObjectPosition.MovingObjectType;
|
||||||
|
import net.minecraft.util.Vec3;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.entity.player.ArrowNockEvent;
|
import net.minecraftforge.event.entity.player.ArrowNockEvent;
|
||||||
@@ -107,10 +111,13 @@ public class ItemMaterials extends Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer player, List result, boolean advanced) {
|
public void addInformation(ItemStack stack, EntityPlayer player, List<String> result, boolean advanced) {
|
||||||
switch (stack.getItemDamage()) {
|
switch (stack.getItemDamage()) {
|
||||||
case 16:
|
case 16:
|
||||||
result.add(EnumChatFormatting.GOLD + StatCollector.translateToLocal("tooltip.EMT.draconicSchematic"));
|
case 17:
|
||||||
|
case 18:
|
||||||
|
case 19:
|
||||||
|
result.add(EnumChatFormatting.RED + "[DEPRECATED] Please put in the crafting table to get back!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -145,7 +152,7 @@ public class ItemMaterials extends Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List list) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> list) {
|
||||||
for (int i = 1; i <= 19; i++) {
|
for (int i = 1; i <= 19; i++) {
|
||||||
list.add(new ItemStack(this, 1, i));
|
list.add(new ItemStack(this, 1, i));
|
||||||
}
|
}
|
||||||
@@ -163,8 +170,8 @@ public class ItemMaterials extends Item {
|
|||||||
- player.yOffset;
|
- player.yOffset;
|
||||||
double playerZ = player.prevPosZ + ((player.posZ - player.prevPosZ) * f);
|
double playerZ = player.prevPosZ + ((player.posZ - player.prevPosZ) * f);
|
||||||
Vec3 playerLoc = Vec3.createVectorHelper(playerX, playerY, playerZ);
|
Vec3 playerLoc = Vec3.createVectorHelper(playerX, playerY, playerZ);
|
||||||
float f3 = MathHelper.cos((-f2 * 0.01745329F) - 3.141593F);
|
float f3 = MathHelper.cos((-f2 * 0.01745329F) - (float) Math.PI);
|
||||||
float f4 = MathHelper.sin((-f2 * 0.01745329F) - 3.141593F);
|
float f4 = MathHelper.sin((-f2 * 0.01745329F) - (float) Math.PI);
|
||||||
float f5 = -MathHelper.cos(-f1 * 0.01745329F);
|
float f5 = -MathHelper.cos(-f1 * 0.01745329F);
|
||||||
float f6 = MathHelper.sin(-f1 * 0.01745329F);
|
float f6 = MathHelper.sin(-f1 * 0.01745329F);
|
||||||
float f7 = f4 * f5;
|
float f7 = f4 * f5;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean par4) {
|
public void addInformation(ItemStack itemStack, EntityPlayer player, List<String> list, boolean par4) {
|
||||||
String colourCode = "" + EnumChatFormatting.DARK_RED;
|
String colourCode = "" + EnumChatFormatting.DARK_RED;
|
||||||
list.add(
|
list.add(
|
||||||
colourCode
|
colourCode
|
||||||
@@ -81,7 +81,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List list) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> list) {
|
||||||
list.add(new ItemStack(this, 1, 0));
|
list.add(new ItemStack(this, 1, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ import net.minecraftforge.common.MinecraftForge;
|
|||||||
import net.minecraftforge.event.entity.living.LivingEvent;
|
import net.minecraftforge.event.entity.living.LivingEvent;
|
||||||
import net.minecraftforge.event.entity.living.LivingFallEvent;
|
import net.minecraftforge.event.entity.living.LivingFallEvent;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.Optional;
|
||||||
|
import cpw.mods.fml.common.Optional.Interface;
|
||||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
@@ -33,9 +35,11 @@ import thaumcraft.api.IVisDiscountGear;
|
|||||||
import thaumcraft.api.aspects.Aspect;
|
import thaumcraft.api.aspects.Aspect;
|
||||||
import thaumcraft.common.Thaumcraft;
|
import thaumcraft.common.Thaumcraft;
|
||||||
import thaumcraft.common.items.armor.Hover;
|
import thaumcraft.common.items.armor.Hover;
|
||||||
|
import thaumicboots.api.IBoots;
|
||||||
|
|
||||||
|
@Interface(iface = "thaumicboots.api.IBoots", modid = "thaumicboots")
|
||||||
public class ItemElectricBootsTraveller extends ItemArmor
|
public class ItemElectricBootsTraveller extends ItemArmor
|
||||||
implements IRunicArmor, IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor {
|
implements IRunicArmor, IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor, IBoots {
|
||||||
|
|
||||||
public int maxCharge = 100000;
|
public int maxCharge = 100000;
|
||||||
public int energyPerDamage = 1000;
|
public int energyPerDamage = 1000;
|
||||||
@@ -54,7 +58,7 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
@@ -108,9 +112,8 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
|||||||
return 0.15D;
|
return 0.15D;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
||||||
}
|
}
|
||||||
@@ -122,15 +125,15 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
|
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
|
||||||
if (!player.capabilities.isFlying && player.moveForward > 0.0F) {
|
if (player.moveForward != 0.0F || player.moveStrafing != 0.0F) {
|
||||||
if (player.worldObj.isRemote && !player.isSneaking()) {
|
if (player.worldObj.isRemote && !player.isSneaking()) {
|
||||||
if (!Thaumcraft.instance.entityEventHandler.prevStep.containsKey(player.getEntityId())) {
|
if (!Thaumcraft.instance.entityEventHandler.prevStep.containsKey(player.getEntityId())) {
|
||||||
Thaumcraft.instance.entityEventHandler.prevStep.put(player.getEntityId(), player.stepHeight);
|
Thaumcraft.instance.entityEventHandler.prevStep.put(player.getEntityId(), player.stepHeight);
|
||||||
}
|
}
|
||||||
player.stepHeight = 1.0F;
|
player.stepHeight = 1.0F;
|
||||||
}
|
}
|
||||||
|
float speedMod = (float) getSpeedModifier(itemStack);
|
||||||
if (player.onGround) {
|
if (player.onGround || player.isOnLadder() || player.capabilities.isFlying) {
|
||||||
float bonus = speedBonus;
|
float bonus = speedBonus;
|
||||||
if (player.isInWater()) {
|
if (player.isInWater()) {
|
||||||
bonus /= 4.0F;
|
bonus /= 4.0F;
|
||||||
@@ -139,29 +142,45 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
|||||||
if (player.isSneaking()) {
|
if (player.isSneaking()) {
|
||||||
bonus /= 2.0F;
|
bonus /= 2.0F;
|
||||||
}
|
}
|
||||||
|
bonus *= speedMod;
|
||||||
player.moveFlying(0.0F, 1.0F, bonus);
|
if (EMT.isBootsActive) {
|
||||||
|
applyOmniState(player, bonus, itemStack);
|
||||||
|
} else {
|
||||||
|
player.moveFlying(0.0F, player.moveForward, bonus);
|
||||||
|
}
|
||||||
} else if (Hover.getHover(player.getEntityId())) {
|
} else if (Hover.getHover(player.getEntityId())) {
|
||||||
// Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots,
|
// Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots,
|
||||||
// so any other boots factor can be calculated via proportion method
|
// so any other boots factor can be calculated via proportion method
|
||||||
player.jumpMovementFactor = 0.03F
|
player.jumpMovementFactor = 0.03F
|
||||||
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
|
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
|
||||||
* jumpBonus;
|
* jumpBonus
|
||||||
|
* speedMod;
|
||||||
} else {
|
} else {
|
||||||
player.jumpMovementFactor = 0.05F
|
player.jumpMovementFactor = 0.05F
|
||||||
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
|
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
|
||||||
* jumpBonus;
|
* jumpBonus
|
||||||
|
* speedMod;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Optional.Method(modid = "thaumicboots")
|
||||||
|
public void applyOmniState(EntityPlayer player, float bonus, ItemStack itemStack) {
|
||||||
|
if (player.moveStrafing != 0.0 && itemStack.stackTagCompound.getBoolean("omni")) {
|
||||||
|
player.moveFlying(player.moveStrafing, 0.0F, bonus);
|
||||||
|
} else if (player.moveForward != 0.0) {
|
||||||
|
player.moveFlying(0.0F, player.moveForward, bonus);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onPlayerJump(LivingEvent.LivingJumpEvent event) {
|
public void onPlayerJump(LivingEvent.LivingJumpEvent event) {
|
||||||
if (event.entityLiving instanceof EntityPlayer) {
|
if (event.entityLiving instanceof EntityPlayer) {
|
||||||
EntityPlayer player = (EntityPlayer) event.entityLiving;
|
EntityPlayer player = (EntityPlayer) event.entityLiving;
|
||||||
boolean hasArmor = player.getCurrentArmor(0) != null && player.getCurrentArmor(0).getItem() == this;
|
ItemStack boots = player.getCurrentArmor(0);
|
||||||
|
boolean hasArmor = boots != null && boots.getItem() == this;
|
||||||
|
|
||||||
if (hasArmor) player.motionY += jumpBonus;
|
if (hasArmor) player.motionY += jumpBonus * (float) getJumpModifier(boots);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,4 +296,19 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
|||||||
public int getRunicCharge(ItemStack itemStack) {
|
public int getRunicCharge(ItemStack itemStack) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Avoid NSM Exception when ThaumicBoots is not present.
|
||||||
|
public double getSpeedModifier(ItemStack stack) {
|
||||||
|
if (stack.stackTagCompound != null) {
|
||||||
|
return stack.stackTagCompound.getDouble("speed");
|
||||||
|
}
|
||||||
|
return 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getJumpModifier(ItemStack stack) {
|
||||||
|
if (stack.stackTagCompound != null) {
|
||||||
|
return stack.stackTagCompound.getDouble("jump");
|
||||||
|
}
|
||||||
|
return 1.0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -390,27 +390,29 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements I
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) {
|
public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) {
|
||||||
try {
|
if (entity instanceof EntityPlayer && stack != null && stack.stackTagCompound != null) {
|
||||||
if (entity instanceof EntityPlayer) {
|
byte wing = stack.stackTagCompound.getByte("wing");
|
||||||
byte wing = stack.stackTagCompound.getByte("wing");
|
if (wing == JETPACK) {
|
||||||
if (wing == JETPACK) {
|
ModelSpecialArmor.getInstance().type = 1;
|
||||||
ModelSpecialArmor mbm = new ModelSpecialArmor(1, 1);
|
} else if (wing != 0) {
|
||||||
return mbm;
|
ModelSpecialArmor.getInstance().type = 2;
|
||||||
} else if (wing != 0) {
|
if (stack.stackTagCompound.hasKey("isJumping")) {
|
||||||
ModelSpecialArmor mbm = new ModelSpecialArmor(1, 2);
|
ModelSpecialArmor.getInstance().isJumping = stack.stackTagCompound.getBoolean("isJumping");
|
||||||
mbm.isJumping = stack.stackTagCompound.getBoolean("isJumping");
|
|
||||||
return mbm;
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
ModelSpecialArmor.getInstance().type = 0;
|
||||||
}
|
}
|
||||||
} catch (NullPointerException e) {
|
} else {
|
||||||
new ModelSpecialArmor(1, 0);
|
ModelSpecialArmor.getInstance().type = 0;
|
||||||
}
|
}
|
||||||
return new ModelSpecialArmor(1, 0);
|
|
||||||
|
return ModelSpecialArmor.getInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer player, @SuppressWarnings("rawtypes") List list,
|
||||||
|
boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class ItemElectricGoggles extends ItemArmor
|
|||||||
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {}
|
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
@@ -136,9 +136,8 @@ public class ItemElectricGoggles extends ItemArmor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import ic2.core.util.Keyboard;
|
|||||||
|
|
||||||
public class ItemQuantumGoggles extends ItemNanoGoggles {
|
public class ItemQuantumGoggles extends ItemNanoGoggles {
|
||||||
|
|
||||||
private static final Map<Integer, Integer> potionCost = new HashMap();
|
private static final Map<Integer, Integer> potionCost = new HashMap<>();
|
||||||
|
|
||||||
public ItemQuantumGoggles(ArmorMaterial material, int renderIndex, int armorType) {
|
public ItemQuantumGoggles(ArmorMaterial material, int renderIndex, int armorType) {
|
||||||
super(material, renderIndex, armorType);
|
super(material, renderIndex, armorType);
|
||||||
@@ -67,13 +67,14 @@ public class ItemQuantumGoggles extends ItemNanoGoggles {
|
|||||||
Field f;
|
Field f;
|
||||||
f = Keyboard.class.getDeclaredField("playerKeys");
|
f = Keyboard.class.getDeclaredField("playerKeys");
|
||||||
f.setAccessible(true);
|
f.setAccessible(true);
|
||||||
Map<EntityPlayer, Set<Enum>> playerKeys = (Map<EntityPlayer, Set<Enum>>) f.get(IC2.keyboard);
|
@SuppressWarnings("unchecked")
|
||||||
|
Map<EntityPlayer, Set<Enum<?>>> playerKeys = (Map<EntityPlayer, Set<Enum<?>>>) f.get(IC2.keyboard);
|
||||||
|
|
||||||
Enum hub = null;
|
Enum<?> hub = null;
|
||||||
Set<Enum> set = playerKeys.get(player);
|
Set<Enum<?>> set = playerKeys.get(player);
|
||||||
|
|
||||||
if (set != null) {
|
if (set != null) {
|
||||||
for (Enum e : set) {
|
for (Enum<?> e : set) {
|
||||||
if (e.ordinal() == 6) {
|
if (e.ordinal() == 6) {
|
||||||
hub = e;
|
hub = e;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import ic2.api.item.IElectricItem;
|
|||||||
|
|
||||||
public class ItemSolarHelmetRevealing extends ItemQuantumGoggles {
|
public class ItemSolarHelmetRevealing extends ItemQuantumGoggles {
|
||||||
|
|
||||||
private static final Map potionCost = new HashMap();
|
private static final Map<Integer, Integer> potionCost = new HashMap<>();
|
||||||
/*
|
/*
|
||||||
* private int ticker; private int generating; private boolean sunIsUp; private boolean skyIsVisible; private
|
* private int ticker; private int generating; private boolean sunIsUp; private boolean skyIsVisible; private
|
||||||
* boolean noSunWorld; private boolean dampPlace;
|
* boolean noSunWorld; private boolean dampPlace;
|
||||||
@@ -26,7 +26,6 @@ public class ItemSolarHelmetRevealing extends ItemQuantumGoggles {
|
|||||||
private int genDay;
|
private int genDay;
|
||||||
private int genNight;
|
private int genNight;
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public ItemSolarHelmetRevealing(ArmorMaterial material, int par3, int par4) {
|
public ItemSolarHelmetRevealing(ArmorMaterial material, int par3, int par4) {
|
||||||
super(material, par3, par4);
|
super(material, par3, par4);
|
||||||
this.setMaxDamage(27);
|
this.setMaxDamage(27);
|
||||||
|
|||||||
@@ -51,16 +51,13 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) {
|
public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) {
|
||||||
try {
|
if (entity instanceof EntityPlayer && stack != null
|
||||||
if (entity instanceof EntityPlayer) {
|
&& stack.stackTagCompound != null
|
||||||
ModelWings mw = new ModelWings();
|
&& stack.stackTagCompound.hasKey("isJumping")) {
|
||||||
mw.isJumping = stack.stackTagCompound.getBoolean("isJumping");
|
ModelWings.getInstance().isJumping = stack.stackTagCompound.getBoolean("isJumping");
|
||||||
return mw;
|
|
||||||
}
|
|
||||||
} catch (NullPointerException e) {
|
|
||||||
return new ModelWings();
|
|
||||||
}
|
}
|
||||||
return new ModelWings();
|
|
||||||
|
return ModelWings.getInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -72,12 +69,12 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
|
|||||||
int amount) {
|
int amount) {
|
||||||
NBTTagCompound nbtData = StackUtil.getOrCreateNbtData(stack);
|
NBTTagCompound nbtData = StackUtil.getOrCreateNbtData(stack);
|
||||||
|
|
||||||
boolean isJmuping = nbtData.getBoolean("isJumping");
|
boolean isJumping = nbtData.getBoolean("isJumping");
|
||||||
boolean isHolding = nbtData.getBoolean("isHolding");
|
boolean isHolding = nbtData.getBoolean("isHolding");
|
||||||
|
|
||||||
nbtData.setBoolean("isJumping", IC2.keyboard.isJumpKeyDown(player));
|
nbtData.setBoolean("isJumping", IC2.keyboard.isJumpKeyDown(player));
|
||||||
|
|
||||||
if (isJmuping) {
|
if (isJumping) {
|
||||||
byte f = nbtData.getByte("f");
|
byte f = nbtData.getByte("f");
|
||||||
nbtData.setBoolean("isHolding", true);
|
nbtData.setBoolean("isHolding", true);
|
||||||
if (IC2.keyboard.isSneakKeyDown(player)) nbtData.setByte("f", (byte) (0));
|
if (IC2.keyboard.isSneakKeyDown(player)) nbtData.setByte("f", (byte) (0));
|
||||||
@@ -108,7 +105,7 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
|
|||||||
nbtData.setByte("f", (byte) 0);
|
nbtData.setByte("f", (byte) 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isJmuping && !player.onGround && player.motionY < 0) {
|
if (isJumping && !player.onGround && player.motionY < 0) {
|
||||||
player.motionY *= f1;
|
player.motionY *= f1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing implements IElectri
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
@@ -132,9 +132,8 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing implements IElectri
|
|||||||
ElectricItem.manager.discharge(stack, damage * getEnergyPerDamage(), 0x7fffffff, true, false, false);
|
ElectricItem.manager.discharge(stack, damage * getEnergyPerDamage(), 0x7fffffff, true, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,9 +49,8 @@ public class ItemThaumiumReinforcedWing extends ItemFeatherWing implements IVisD
|
|||||||
return EMT.TEXTURE_PATH + ":textures/models/thaumiumwing.png";
|
return EMT.TEXTURE_PATH + ":textures/models/thaumiumwing.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import org.lwjgl.input.Keyboard;
|
|||||||
import emt.util.EMTConfigHandler;
|
import emt.util.EMTConfigHandler;
|
||||||
import emt.util.EMTEssentiasOutputs;
|
import emt.util.EMTEssentiasOutputs;
|
||||||
import emt.util.EMTTextHelper;
|
import emt.util.EMTTextHelper;
|
||||||
import gregtech.api.enums.GT_Values;
|
|
||||||
import thaumcraft.api.aspects.Aspect;
|
import thaumcraft.api.aspects.Aspect;
|
||||||
|
|
||||||
public class ItemBlockEssentiaGenerators extends ItemBlock {
|
public class ItemBlockEssentiaGenerators extends ItemBlock {
|
||||||
@@ -57,11 +56,11 @@ public class ItemBlockEssentiaGenerators extends ItemBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private long getOutputAmperage(double EU) {
|
private long getOutputAmperage(double EU) {
|
||||||
return (long) (1L + (EU / 20.0D / 20.0D / GT_Values.V[2]));
|
return 1L + (long) (EU * 1.953125e-5); // EU/(20 * 20 * 128)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack is, EntityPlayer player, List list, boolean flag) {
|
public void addInformation(ItemStack is, EntityPlayer player, List<String> list, boolean flag) {
|
||||||
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
|
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
|
||||||
switch (is.getItemDamage()) {
|
switch (is.getItemDamage()) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ public class ItemBlockMachines extends ItemBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack p_77624_1_, EntityPlayer p_77624_2_, List p_77624_3_, boolean p_77624_4_) {
|
public void addInformation(ItemStack p_77624_1_, EntityPlayer p_77624_2_, List<String> p_77624_3_,
|
||||||
|
boolean p_77624_4_) {
|
||||||
switch (p_77624_1_.getItemDamage()) {
|
switch (p_77624_1_.getItemDamage()) {
|
||||||
case 2: {
|
case 2: {
|
||||||
p_77624_3_.add("Connects between Essentia Hatches and the Pipe Network");
|
p_77624_3_.add("Connects between Essentia Hatches and the Pipe Network");
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ public class ItemBlockSolars extends ItemBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean advancedItemTooltips) {
|
public void addInformation(ItemStack itemstack, EntityPlayer player, List<String> list,
|
||||||
|
boolean advancedItemTooltips) {
|
||||||
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
|
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
|
||||||
TileEntitySolarBase te = Solars.getTileEntitySolarBase(instance, itemstack.getItemDamage());
|
TileEntitySolarBase te = Solars.getTileEntitySolarBase(instance, itemstack.getItemDamage());
|
||||||
if (instance == 0) {
|
if (instance == 0) {
|
||||||
|
|||||||
@@ -103,8 +103,10 @@ public abstract class ItemBaseFocus extends ItemFocusBasic {
|
|||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer player, @SuppressWarnings("rawtypes") List list,
|
||||||
|
boolean par4) {
|
||||||
AspectList cost = getVisCost(stack);
|
AspectList cost = getVisCost(stack);
|
||||||
if (cost != null && cost.size() > 0) {
|
if (cost != null && cost.size() > 0) {
|
||||||
list.add(StatCollector.translateToLocal(isVisCostPerTick() ? "item.Focus.cost2" : "item.Focus.cost1"));
|
list.add(StatCollector.translateToLocal(isVisCostPerTick() ? "item.Focus.cost2" : "item.Focus.cost1"));
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class ItemElectricHoeGrowth extends ItemHoe implements IElectricItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
@@ -118,9 +118,8 @@ public class ItemElectricHoeGrowth extends ItemHoe implements IElectricItem {
|
|||||||
return did;
|
return did;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,8 @@ public class ItemElectricThorHammer extends ItemSword implements IElectricItem {
|
|||||||
this.itemIcon = iconRegister.registerIcon(EMT.TEXTURE_PATH + ":hammer/electricthorhammer");
|
this.itemIcon = iconRegister.registerIcon(EMT.TEXTURE_PATH + ":hammer/electricthorhammer");
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
@@ -66,9 +65,8 @@ public class ItemElectricThorHammer extends ItemSword implements IElectricItem {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer player, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
list.add(
|
list.add(
|
||||||
EMTTextHelper.localize("tooltip.EMT.hammer.electric")
|
EMTTextHelper.localize("tooltip.EMT.hammer.electric")
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ public class ItemThorHammer extends ItemSword implements IRepairable {
|
|||||||
double d1 = (player.prevPosY + ((player.posY - player.prevPosY) * f) + 1.6200000000000001D) - player.yOffset;
|
double d1 = (player.prevPosY + ((player.posY - player.prevPosY) * f) + 1.6200000000000001D) - player.yOffset;
|
||||||
double d2 = player.prevPosZ + ((player.posZ - player.prevPosZ) * f);
|
double d2 = player.prevPosZ + ((player.posZ - player.prevPosZ) * f);
|
||||||
Vec3 vec3d = Vec3.createVectorHelper(d, d1, d2);
|
Vec3 vec3d = Vec3.createVectorHelper(d, d1, d2);
|
||||||
float f3 = MathHelper.cos((-f2 * 0.01745329F) - 3.141593F);
|
float f3 = MathHelper.cos((-f2 * 0.01745329F) - (float) Math.PI);
|
||||||
float f4 = MathHelper.sin((-f2 * 0.01745329F) - 3.141593F);
|
float f4 = MathHelper.sin((-f2 * 0.01745329F) - (float) Math.PI);
|
||||||
float f5 = -MathHelper.cos(-f1 * 0.01745329F);
|
float f5 = -MathHelper.cos(-f1 * 0.01745329F);
|
||||||
float f6 = MathHelper.sin(-f1 * 0.01745329F);
|
float f6 = MathHelper.sin(-f1 * 0.01745329F);
|
||||||
float f7 = f4 * f5;
|
float f7 = f4 * f5;
|
||||||
@@ -87,7 +87,7 @@ public class ItemThorHammer extends ItemSword implements IRepairable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.The Hammer of Thor"));
|
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.The Hammer of Thor"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ public class ItemThorHammerBroken extends ItemSword implements IRepairable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer entityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer entityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.thor"));
|
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.thor"));
|
||||||
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.danger"));
|
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.danger"));
|
||||||
if (!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
|
if (!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public class ItemDiamondChainsaw extends ItemAxe implements IElectricItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
@@ -270,9 +270,8 @@ public class ItemDiamondChainsaw extends ItemAxe implements IElectricItem {
|
|||||||
return EMTConfigHandler.enchanting;
|
return EMTConfigHandler.enchanting;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package emt.item.tool.chainsaw;
|
package emt.item.tool.chainsaw;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.Color;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
@@ -22,7 +22,7 @@ import thaumcraft.common.lib.utils.Utils;
|
|||||||
|
|
||||||
public class ItemStreamChainsaw extends ItemThaumiumChainsaw {
|
public class ItemStreamChainsaw extends ItemThaumiumChainsaw {
|
||||||
|
|
||||||
public static ArrayList oreDictLogs = new ArrayList();
|
public static ArrayList<?> oreDictLogs = new ArrayList<>();
|
||||||
boolean alternateServer;
|
boolean alternateServer;
|
||||||
boolean alternateClient;
|
boolean alternateClient;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import java.util.Iterator;
|
|||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
import net.minecraft.enchantment.EnchantmentHelper;
|
import net.minecraft.enchantment.EnchantmentHelper;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
@@ -126,7 +125,7 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
|||||||
}
|
}
|
||||||
int fortune = EnchantmentHelper.getFortuneModifier(entityLiving);
|
int fortune = EnchantmentHelper.getFortuneModifier(entityLiving);
|
||||||
world.setBlockToAir(x + xx, y + yy, z + zz);
|
world.setBlockToAir(x + xx, y + yy, z + zz);
|
||||||
ArrayList ret = bl.getDrops(world, x + xx, y + yy, z + zz, md, fortune);
|
ArrayList<ItemStack> ret = bl.getDrops(world, x + xx, y + yy, z + zz, md, fortune);
|
||||||
boolean creative = false;
|
boolean creative = false;
|
||||||
if ((entityLiving instanceof EntityPlayer)
|
if ((entityLiving instanceof EntityPlayer)
|
||||||
&& ((EntityPlayer) entityLiving).capabilities.isCreativeMode) {
|
&& ((EntityPlayer) entityLiving).capabilities.isCreativeMode) {
|
||||||
@@ -136,7 +135,7 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ItemStack is;
|
ItemStack is;
|
||||||
for (Iterator i$ = ret.iterator(); i$.hasNext(); world.spawnEntityInWorld(
|
for (Iterator<ItemStack> i$ = ret.iterator(); i$.hasNext(); world.spawnEntityInWorld(
|
||||||
new EntityFollowingItem(
|
new EntityFollowingItem(
|
||||||
world,
|
world,
|
||||||
(double) x + (double) xx + 0.5D,
|
(double) x + (double) xx + 0.5D,
|
||||||
@@ -145,7 +144,7 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
|||||||
is,
|
is,
|
||||||
entityLiving,
|
entityLiving,
|
||||||
3))) {
|
3))) {
|
||||||
is = (ItemStack) i$.next();
|
is = i$.next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -193,7 +192,6 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
|||||||
0.2F + world.rand.nextFloat() * 0.2F);
|
0.2F + world.rand.nextFloat() * 0.2F);
|
||||||
return super.onItemUse(stack, player, world, x, y, z, side, xOffset, xOffset, zOffset);
|
return super.onItemUse(stack, player, world, x, y, z, side, xOffset, xOffset, zOffset);
|
||||||
}
|
}
|
||||||
Minecraft mc = Minecraft.getMinecraft();
|
|
||||||
Thaumcraft.instance.renderEventHandler.startScan(player, x, y, z, System.currentTimeMillis() + 5000L, 1);
|
Thaumcraft.instance.renderEventHandler.startScan(player, x, y, z, System.currentTimeMillis() + 5000L, 1);
|
||||||
player.swingItem();
|
player.swingItem();
|
||||||
return super.onItemUse(stack, player, world, x, y, z, side, xOffset, yOffset, zOffset);
|
return super.onItemUse(stack, player, world, x, y, z, side, xOffset, yOffset, zOffset);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class ItemThaumiumDrill extends ItemPickaxe implements IElectricItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
@@ -115,9 +115,8 @@ public class ItemThaumiumDrill extends ItemPickaxe implements IElectricItem {
|
|||||||
return EMTConfigHandler.enchanting;
|
return EMTConfigHandler.enchanting;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public class ItemOmnitoolIron extends ItemPickaxe implements IElectricItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||||
ItemStack itemStack = new ItemStack(this, 1);
|
ItemStack itemStack = new ItemStack(this, 1);
|
||||||
if (getChargedItem(itemStack) == this) {
|
if (getChargedItem(itemStack) == this) {
|
||||||
ItemStack charged = new ItemStack(this, 1);
|
ItemStack charged = new ItemStack(this, 1);
|
||||||
@@ -156,9 +156,8 @@ public class ItemOmnitoolIron extends ItemPickaxe implements IElectricItem {
|
|||||||
return EMTConfigHandler.enchanting;
|
return EMTConfigHandler.enchanting;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,20 @@
|
|||||||
package emt.nei;
|
package emt.nei;
|
||||||
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
import codechicken.nei.api.API;
|
||||||
import codechicken.nei.api.IConfigureNEI;
|
import codechicken.nei.api.IConfigureNEI;
|
||||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
|
||||||
import emt.EMT;
|
import emt.EMT;
|
||||||
|
import emt.init.EMTItems;
|
||||||
|
|
||||||
public class NEI_Config implements IConfigureNEI {
|
public class NEI_Config implements IConfigureNEI {
|
||||||
|
|
||||||
public static boolean isAdded = true;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void loadConfig() {
|
public void loadConfig() {
|
||||||
NEI_Config.isAdded = false;
|
API.hideItem(new ItemStack(EMTItems.itemEMTItems, 1, 16));
|
||||||
NEI_Config.isAdded = true;
|
API.hideItem(new ItemStack(EMTItems.itemEMTItems, 1, 17));
|
||||||
|
API.hideItem(new ItemStack(EMTItems.itemEMTItems, 1, 18));
|
||||||
|
API.hideItem(new ItemStack(EMTItems.itemEMTItems, 1, 19));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -25,35 +26,4 @@ public class NEI_Config implements IConfigureNEI {
|
|||||||
public String getVersion() {
|
public String getVersion() {
|
||||||
return EMT.VERSION;
|
return EMT.VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Init() {
|
|
||||||
sendHandler("emt.recipe.fusioncrafting", "gregtech:gt.blockmachines:5001");
|
|
||||||
sendCatalyst("emt.recipe.fusioncrafting", "gregtech:gt.blockmachines:5001");
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void sendHandler(String name, String block) {
|
|
||||||
NBTTagCompound aNBT = new NBTTagCompound();
|
|
||||||
aNBT.setString("handler", name);
|
|
||||||
aNBT.setString("modName", EMT.NAME);
|
|
||||||
aNBT.setString("modId", EMT.MOD_ID);
|
|
||||||
aNBT.setBoolean("modRequired", true);
|
|
||||||
aNBT.setString("itemName", block);
|
|
||||||
aNBT.setInteger("handlerHeight", 135);
|
|
||||||
aNBT.setInteger("handlerWidth", 166);
|
|
||||||
aNBT.setInteger("maxRecipesPerPage", 2);
|
|
||||||
aNBT.setInteger("yShift", 6);
|
|
||||||
FMLInterModComms.sendMessage("NotEnoughItems", "registerHandlerInfo", aNBT);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void sendCatalyst(String name, String stack, int priority) {
|
|
||||||
NBTTagCompound aNBT = new NBTTagCompound();
|
|
||||||
aNBT.setString("handlerID", name);
|
|
||||||
aNBT.setString("itemName", stack);
|
|
||||||
aNBT.setInteger("priority", priority);
|
|
||||||
FMLInterModComms.sendMessage("NotEnoughItems", "registerCatalystInfo", aNBT);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void sendCatalyst(String name, String stack) {
|
|
||||||
sendCatalyst(name, stack, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,6 @@ package emt.tile;
|
|||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import gregtech.api.enums.GT_Values;
|
|
||||||
|
|
||||||
public class DefinitelyNotAIC2Source {
|
public class DefinitelyNotAIC2Source {
|
||||||
|
|
||||||
@@ -14,7 +13,7 @@ public class DefinitelyNotAIC2Source {
|
|||||||
protected long energyStored;
|
protected long energyStored;
|
||||||
|
|
||||||
public DefinitelyNotAIC2Source(TileEntity parent1, long capacity1, int tier1) {
|
public DefinitelyNotAIC2Source(TileEntity parent1, long capacity1, int tier1) {
|
||||||
long power = GT_Values.V[tier1];
|
long power = 8L << (2 * tier1);
|
||||||
this.parent = parent1;
|
this.parent = parent1;
|
||||||
this.capacity = capacity1 < power ? power : capacity1;
|
this.capacity = capacity1 < power ? power : capacity1;
|
||||||
this.tier = (byte) tier1;
|
this.tier = (byte) tier1;
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_EnhancedMul
|
|||||||
import gregtech.api.render.TextureFactory;
|
import gregtech.api.render.TextureFactory;
|
||||||
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
|
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
|
||||||
import gregtech.api.util.GT_Utility;
|
import gregtech.api.util.GT_Utility;
|
||||||
|
import gregtech.api.util.shutdown.ShutDownReasonRegistry;
|
||||||
import thaumcraft.api.aspects.Aspect;
|
import thaumcraft.api.aspects.Aspect;
|
||||||
import thaumcraft.api.aspects.AspectList;
|
import thaumcraft.api.aspects.AspectList;
|
||||||
import thaumcraft.api.research.ResearchCategories;
|
import thaumcraft.api.research.ResearchCategories;
|
||||||
@@ -209,7 +210,7 @@ public class GT_MetaTileEntity_ResearchCompleter
|
|||||||
|
|
||||||
if (syncTimer <= 0) sendClientAnimationUpdate(aBaseMetaTileEntity, lastNodeDistance, lastNodeColor);
|
if (syncTimer <= 0) sendClientAnimationUpdate(aBaseMetaTileEntity, lastNodeDistance, lastNodeColor);
|
||||||
|
|
||||||
if (requiredVis > 0) this.criticalStopMachine();
|
if (requiredVis > 0) this.stopMachine(ShutDownReasonRegistry.CRITICAL_NONE);
|
||||||
|
|
||||||
return super.onRunningTick(aStack);
|
return super.onRunningTick(aStack);
|
||||||
}
|
}
|
||||||
@@ -248,7 +249,12 @@ public class GT_MetaTileEntity_ResearchCompleter
|
|||||||
|
|
||||||
this.mEfficiency = 10000 - (this.getIdealStatus() - this.getRepairStatus()) * 1000;
|
this.mEfficiency = 10000 - (this.getIdealStatus() - this.getRepairStatus()) * 1000;
|
||||||
this.mEfficiencyIncrease = 10000;
|
this.mEfficiencyIncrease = 10000;
|
||||||
this.calculateOverclockedNessMulti(RECIPE_EUT, RECIPE_LENGTH, 1, this.getMaxInputVoltage());
|
this.calculateOverclockedNessMultiInternal(
|
||||||
|
RECIPE_EUT,
|
||||||
|
RECIPE_LENGTH,
|
||||||
|
1,
|
||||||
|
this.getMaxInputVoltage(),
|
||||||
|
false);
|
||||||
if (this.mMaxProgresstime == 2147483646 && this.mEUt == 2147483646) {
|
if (this.mMaxProgresstime == 2147483646 && this.mEUt == 2147483646) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -257,7 +263,7 @@ public class GT_MetaTileEntity_ResearchCompleter
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create a completed version of the note to output
|
// Create a completed version of the note to output
|
||||||
this.mOutputItems = new ItemStack[] { GT_Utility.copyAmount(1L, stack) };
|
this.mOutputItems = new ItemStack[] { GT_Utility.copyAmount(1, stack) };
|
||||||
this.mOutputItems[0].stackTagCompound.setBoolean("complete", true);
|
this.mOutputItems[0].stackTagCompound.setBoolean("complete", true);
|
||||||
this.mOutputItems[0].setItemDamage(64);
|
this.mOutputItems[0].setItemDamage(64);
|
||||||
stack.stackSize -= 1;
|
stack.stackSize -= 1;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import net.minecraft.nbt.NBTTagList;
|
|||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
||||||
|
import com.gtnewhorizons.modularui.api.drawable.UITexture;
|
||||||
import com.gtnewhorizons.modularui.api.forge.InvWrapper;
|
import com.gtnewhorizons.modularui.api.forge.InvWrapper;
|
||||||
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
||||||
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
||||||
@@ -20,13 +21,13 @@ import com.gtnewhorizons.modularui.common.widget.TextWidget;
|
|||||||
import emt.init.EMTBlocks;
|
import emt.init.EMTBlocks;
|
||||||
import emt.util.EMTConfigHandler;
|
import emt.util.EMTConfigHandler;
|
||||||
import emt.util.EMTTextHelper;
|
import emt.util.EMTTextHelper;
|
||||||
import gregtech.api.gui.modularui.GT_UITextures;
|
|
||||||
import ic2.api.tile.IWrenchable;
|
import ic2.api.tile.IWrenchable;
|
||||||
import thaumcraft.common.config.ConfigItems;
|
import thaumcraft.common.config.ConfigItems;
|
||||||
|
|
||||||
public class TileEntityEtherealMacerator extends TileEntityEMT
|
public class TileEntityEtherealMacerator extends TileEntityEMT
|
||||||
implements ISidedInventory, IWrenchable, ITileWithModularUI {
|
implements ISidedInventory, IWrenchable, ITileWithModularUI {
|
||||||
|
|
||||||
|
private static final UITexture PROGRESSBAR_MACERATE = UITexture.fullImage("gregtech", "gui/progressbar/macerate");
|
||||||
private static final int[] slots_top = new int[] { 0 };
|
private static final int[] slots_top = new int[] { 0 };
|
||||||
private static final int[] slots_bottom = new int[] { 2, 1 };
|
private static final int[] slots_bottom = new int[] { 2, 1 };
|
||||||
private static final int[] slots_sides = new int[] { 1 };
|
private static final int[] slots_sides = new int[] { 1 };
|
||||||
@@ -306,7 +307,7 @@ public class TileEntityEtherealMacerator extends TileEntityEMT
|
|||||||
.setPos(115, 25))
|
.setPos(115, 25))
|
||||||
.widget(new SlotWidget(invWrapper, 1).setAccess(true, false).setPos(115, 52))
|
.widget(new SlotWidget(invWrapper, 1).setAccess(true, false).setPos(115, 52))
|
||||||
.widget(
|
.widget(
|
||||||
new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_MACERATE, 20)
|
new ProgressBar().setTexture(PROGRESSBAR_MACERATE, 20)
|
||||||
.setProgress(() -> (float) cookTime / maceratingSpeed).setPos(81, 36).setSize(20, 18))
|
.setProgress(() -> (float) cookTime / maceratingSpeed).setPos(81, 36).setSize(20, 18))
|
||||||
.widget(new TextWidget(EMTTextHelper.localize("gui.EMT.etherealMacerator.title")).setPos(6, 6));
|
.widget(new TextWidget(EMTTextHelper.localize("gui.EMT.etherealMacerator.title")).setPos(6, 6));
|
||||||
|
|
||||||
|
|||||||
@@ -152,9 +152,9 @@ public class TileEntityIndustrialWandRecharge extends TileEntityEMT
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readFromNBT(NBTTagCompound p_145839_1_) {
|
public void readFromNBT(NBTTagCompound compound) {
|
||||||
super.readFromNBT(p_145839_1_);
|
super.readFromNBT(compound);
|
||||||
NBTTagList nbttaglist = p_145839_1_.getTagList("Items", 10);
|
NBTTagList nbttaglist = compound.getTagList("Items", 10);
|
||||||
this.ItemStacks = new ItemStack[this.getSizeInventory()];
|
this.ItemStacks = new ItemStack[this.getSizeInventory()];
|
||||||
|
|
||||||
for (int i = 0; i < nbttaglist.tagCount(); ++i) {
|
for (int i = 0; i < nbttaglist.tagCount(); ++i) {
|
||||||
@@ -167,13 +167,13 @@ public class TileEntityIndustrialWandRecharge extends TileEntityEMT
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.energyStored == 0) {
|
if (this.energyStored == 0) {
|
||||||
this.energyStored = p_145839_1_.getDouble("Energy");
|
this.energyStored = compound.getDouble("Energy");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToNBT(NBTTagCompound p_145841_1_) {
|
public void writeToNBT(NBTTagCompound compound) {
|
||||||
super.writeToNBT(p_145841_1_);
|
super.writeToNBT(compound);
|
||||||
NBTTagList nbttaglist = new NBTTagList();
|
NBTTagList nbttaglist = new NBTTagList();
|
||||||
|
|
||||||
for (int i = 0; i < this.ItemStacks.length; ++i) {
|
for (int i = 0; i < this.ItemStacks.length; ++i) {
|
||||||
@@ -185,8 +185,8 @@ public class TileEntityIndustrialWandRecharge extends TileEntityEMT
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p_145841_1_.setTag("Items", nbttaglist);
|
compound.setTag("Items", nbttaglist);
|
||||||
p_145841_1_.setDouble("Energy", this.energyStored);
|
compound.setDouble("Energy", this.energyStored);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import net.minecraftforge.common.util.ForgeDirection;
|
|||||||
import net.minecraftforge.fluids.IFluidHandler;
|
import net.minecraftforge.fluids.IFluidHandler;
|
||||||
|
|
||||||
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
||||||
|
import com.gtnewhorizons.modularui.api.NumberFormatMUI;
|
||||||
import com.gtnewhorizons.modularui.api.drawable.Text;
|
import com.gtnewhorizons.modularui.api.drawable.Text;
|
||||||
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
||||||
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
||||||
@@ -28,7 +29,6 @@ import emt.tile.DefinitelyNotAIC2Source;
|
|||||||
import emt.tile.TileEntityEMT;
|
import emt.tile.TileEntityEMT;
|
||||||
import emt.util.EMTConfigHandler;
|
import emt.util.EMTConfigHandler;
|
||||||
import emt.util.EMTEssentiasOutputs;
|
import emt.util.EMTEssentiasOutputs;
|
||||||
import emt.util.EMTTextHelper;
|
|
||||||
import gregtech.api.enums.GT_Values;
|
import gregtech.api.enums.GT_Values;
|
||||||
import gregtech.api.interfaces.tileentity.IBasicEnergyContainer;
|
import gregtech.api.interfaces.tileentity.IBasicEnergyContainer;
|
||||||
import gregtech.api.interfaces.tileentity.IEnergyConnected;
|
import gregtech.api.interfaces.tileentity.IEnergyConnected;
|
||||||
@@ -36,7 +36,11 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
|||||||
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
|
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
|
||||||
import gregtech.api.net.GT_Packet_Block_Event;
|
import gregtech.api.net.GT_Packet_Block_Event;
|
||||||
import thaumcraft.api.ThaumcraftApiHelper;
|
import thaumcraft.api.ThaumcraftApiHelper;
|
||||||
import thaumcraft.api.aspects.*;
|
import thaumcraft.api.aspects.Aspect;
|
||||||
|
import thaumcraft.api.aspects.AspectList;
|
||||||
|
import thaumcraft.api.aspects.IAspectContainer;
|
||||||
|
import thaumcraft.api.aspects.IAspectSource;
|
||||||
|
import thaumcraft.api.aspects.IEssentiaTransport;
|
||||||
import thaumcraft.common.lib.network.PacketHandler;
|
import thaumcraft.common.lib.network.PacketHandler;
|
||||||
import thaumcraft.common.lib.network.fx.PacketFXEssentiaSource;
|
import thaumcraft.common.lib.network.fx.PacketFXEssentiaSource;
|
||||||
|
|
||||||
@@ -60,6 +64,8 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
|||||||
public byte color;
|
public byte color;
|
||||||
private boolean side;
|
private boolean side;
|
||||||
|
|
||||||
|
protected static final NumberFormatMUI numberFormat = new NumberFormatMUI();
|
||||||
|
|
||||||
public TileEntityBaseGenerator(int aspect) {
|
public TileEntityBaseGenerator(int aspect) {
|
||||||
this();
|
this();
|
||||||
switch (aspect) {
|
switch (aspect) {
|
||||||
@@ -233,17 +239,17 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_) {
|
public ItemStack decrStackSize(int index, int count) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack getStackInSlotOnClosing(int p_70304_1_) {
|
public ItemStack getStackInSlotOnClosing(int index) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {}
|
public void setInventorySlotContents(int index, ItemStack stack) {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasCustomInventoryName() {
|
public boolean hasCustomInventoryName() {
|
||||||
@@ -256,7 +262,7 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isUseableByPlayer(EntityPlayer p_70300_1_) {
|
public boolean isUseableByPlayer(EntityPlayer player) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -886,33 +892,35 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
|||||||
.setProgress(() -> (float) fuel / this.maxfuel).setSynced(false, false).setPos(9, 43)
|
.setProgress(() -> (float) fuel / this.maxfuel).setSynced(false, false).setPos(9, 43)
|
||||||
.setSize(25, 11))
|
.setSize(25, 11))
|
||||||
.widget(
|
.widget(
|
||||||
TextWidget
|
new TextWidget().setStringSupplier(
|
||||||
.dynamicString(
|
() -> StatCollector.translateToLocal("emt.Storage") + " "
|
||||||
() -> StatCollector.translateToLocal("emt.Storage")
|
+ numberFormat.formatWithSuffix(storage)
|
||||||
+ EMTTextHelper.formatNumber(storage)
|
+ "/"
|
||||||
+ "/"
|
+ numberFormat.formatWithSuffix(maxstorage)
|
||||||
+ EMTTextHelper.formatNumber(maxstorage)
|
+ " EU")
|
||||||
+ "EU")
|
.setDefaultColor(0).setPos(36, 22))
|
||||||
.setSynced(false).setDefaultColor(0).setPos(36, 22))
|
|
||||||
.widget(new FakeSyncWidget.IntegerSyncer(() -> storage, val -> storage = val))
|
.widget(new FakeSyncWidget.IntegerSyncer(() -> storage, val -> storage = val))
|
||||||
.widget(
|
.widget(
|
||||||
TextWidget.dynamicString(
|
new TextWidget().setStringSupplier(
|
||||||
() -> StatCollector.translateToLocal("emt.Generating")
|
() -> StatCollector.translateToLocal("emt.Generating") + " "
|
||||||
+ (isActive ? generating / 20 / 20 : 0)
|
+ numberFormat.formatWithSuffix(isActive ? (long) (generating / 20 / 20) : 0)
|
||||||
+ " EU/t")
|
+ " EU/t")
|
||||||
.setSynced(false).setDefaultColor(0).setPos(36, 35))
|
.setDefaultColor(0).setPos(36, 35))
|
||||||
.widget(new FakeSyncWidget.DoubleSyncer(() -> generating, val -> generating = val))
|
.widget(new FakeSyncWidget.DoubleSyncer(() -> generating, val -> generating = val))
|
||||||
.widget(new FakeSyncWidget.BooleanSyncer(() -> isActive, val -> isActive = val))
|
.widget(new FakeSyncWidget.BooleanSyncer(() -> isActive, val -> isActive = val))
|
||||||
.widget(
|
.widget(
|
||||||
TextWidget.dynamicString(() -> StatCollector.translateToLocal("emt.Fuel") + ": " + fuel)
|
new TextWidget()
|
||||||
.setSynced(false).setDefaultColor(0).setPos(36, 48))
|
.setStringSupplier(
|
||||||
|
() -> StatCollector.translateToLocal("emt.Fuel") + ": "
|
||||||
|
+ numberFormat.formatWithSuffix(fuel))
|
||||||
|
.setDefaultColor(0).setPos(36, 48))
|
||||||
.widget(new FakeSyncWidget.ByteSyncer(() -> fuel, val -> fuel = val))
|
.widget(new FakeSyncWidget.ByteSyncer(() -> fuel, val -> fuel = val))
|
||||||
.widget(
|
.widget(
|
||||||
TextWidget
|
new TextWidget()
|
||||||
.dynamicString(
|
.setStringSupplier(
|
||||||
() -> StatCollector.translateToLocal("emt.remaining_second")
|
() -> StatCollector.translateToLocal("emt.remaining_second") + " "
|
||||||
+ ((fuel * 20 * 20) - tick) / 20)
|
+ numberFormat.format(((fuel * 20 * 20) - tick) / 20))
|
||||||
.setSynced(false).setDefaultColor(0).setPos(36, 63))
|
.setDefaultColor(0).setPos(36, 63))
|
||||||
.widget(new FakeSyncWidget.IntegerSyncer(() -> tick, val -> tick = val));
|
.widget(new FakeSyncWidget.IntegerSyncer(() -> tick, val -> tick = val));
|
||||||
|
|
||||||
return builder.build();
|
return builder.build();
|
||||||
|
|||||||
@@ -1,17 +1,24 @@
|
|||||||
package emt.tile.solar;
|
package emt.tile.solar;
|
||||||
|
|
||||||
|
import static gregtech.api.recipe.RecipeMaps.chemicalBathRecipes;
|
||||||
|
import static gregtech.api.util.GT_RecipeBuilder.SECONDS;
|
||||||
import static thaumcraft.api.aspects.Aspect.*;
|
import static thaumcraft.api.aspects.Aspect.*;
|
||||||
|
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
|
import emt.block.BlockSolars;
|
||||||
import emt.init.EMTBlocks;
|
import emt.init.EMTBlocks;
|
||||||
|
import emt.item.block.ItemBlockSolars;
|
||||||
import emt.util.EMTConfigHandler;
|
import emt.util.EMTConfigHandler;
|
||||||
import gregtech.api.enums.GT_Values;
|
import gregtech.api.enums.GT_Values;
|
||||||
import gregtech.api.enums.Materials;
|
import gregtech.api.enums.Materials;
|
||||||
|
import gregtech.api.enums.TierEU;
|
||||||
import thaumcraft.api.aspects.Aspect;
|
import thaumcraft.api.aspects.Aspect;
|
||||||
|
|
||||||
// Solar Factory
|
// Solar Factory
|
||||||
@@ -133,20 +140,14 @@ public enum Solars {
|
|||||||
public static void registerReverseRecipes() {
|
public static void registerReverseRecipes() {
|
||||||
for (Solars s : Solars.values()) {
|
for (Solars s : Solars.values()) {
|
||||||
if (s.aspect != null) {
|
if (s.aspect != null) {
|
||||||
// ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, ItemStack aOutput2, ItemStack
|
GT_Values.RA.stdBuilder().itemInputs(new ItemStack(EMTBlocks.solars[s.instance], 1, s.meta))
|
||||||
// aOutput3, int[] aChances, int aDuration, int aEUt
|
.fluidInputs(Materials.Chlorine.getGas(1000))
|
||||||
GT_Values.RA.addChemicalBathRecipe(
|
.itemOutputs(
|
||||||
new ItemStack(EMTBlocks.solars[s.instance], 1, s.meta),
|
new ItemStack(
|
||||||
Materials.Chlorine.getGas(1000),
|
EMTBlocks.solars[getBaseSolar(s.output).instance],
|
||||||
new ItemStack(
|
1,
|
||||||
EMTBlocks.solars[getBaseSolar(s.output).instance],
|
getBaseSolar(s.output).meta))
|
||||||
1,
|
.duration(2 * SECONDS).eut(TierEU.RECIPE_LV).addTo(chemicalBathRecipes);
|
||||||
getBaseSolar(s.output).meta),
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
30,
|
|
||||||
30);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -205,4 +206,18 @@ public enum Solars {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Block[] registerBlocks() {
|
||||||
|
Block[] solars = new Block[getCountOfInstances()];
|
||||||
|
for (int i = 0; i < solars.length; i++) {
|
||||||
|
if (i == 0) {
|
||||||
|
solars[i] = new BlockSolars("solar", Solars.getCountOfMetas(i), i);
|
||||||
|
GameRegistry.registerBlock(solars[i], ItemBlockSolars.class, "EMTSolars");
|
||||||
|
} else {
|
||||||
|
solars[i] = new BlockSolars("solar" + (i + 1), Solars.getCountOfMetas(i), i);
|
||||||
|
GameRegistry.registerBlock(solars[i], ItemBlockSolars.class, "EMTSolars" + (i + 1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return solars;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -15,6 +15,7 @@ import net.minecraftforge.common.util.ForgeDirection;
|
|||||||
import net.minecraftforge.fluids.IFluidHandler;
|
import net.minecraftforge.fluids.IFluidHandler;
|
||||||
|
|
||||||
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
||||||
|
import com.gtnewhorizons.modularui.api.NumberFormatMUI;
|
||||||
import com.gtnewhorizons.modularui.api.drawable.Text;
|
import com.gtnewhorizons.modularui.api.drawable.Text;
|
||||||
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
||||||
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
||||||
@@ -28,7 +29,6 @@ import emt.client.gui.EMT_UITextures;
|
|||||||
import emt.init.EMTBlocks;
|
import emt.init.EMTBlocks;
|
||||||
import emt.tile.DefinitelyNotAIC2Source;
|
import emt.tile.DefinitelyNotAIC2Source;
|
||||||
import emt.tile.TileEntityEMT;
|
import emt.tile.TileEntityEMT;
|
||||||
import emt.util.EMTTextHelper;
|
|
||||||
import gregtech.api.enums.GT_Values;
|
import gregtech.api.enums.GT_Values;
|
||||||
import gregtech.api.interfaces.tileentity.IBasicEnergyContainer;
|
import gregtech.api.interfaces.tileentity.IBasicEnergyContainer;
|
||||||
import gregtech.api.interfaces.tileentity.IEnergyConnected;
|
import gregtech.api.interfaces.tileentity.IEnergyConnected;
|
||||||
@@ -68,6 +68,8 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
|||||||
protected boolean side;
|
protected boolean side;
|
||||||
private int instance, meta;
|
private int instance, meta;
|
||||||
|
|
||||||
|
protected static NumberFormatMUI numberFormat = new NumberFormatMUI();
|
||||||
|
|
||||||
public TileEntitySolarBase(double output, Aspect aspect, String guiname, int instance, int meta) {
|
public TileEntitySolarBase(double output, Aspect aspect, String guiname, int instance, int meta) {
|
||||||
this.tick = 10;
|
this.tick = 10;
|
||||||
this.storage = 0;
|
this.storage = 0;
|
||||||
@@ -308,17 +310,17 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_) {
|
public ItemStack decrStackSize(int index, int count) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack getStackInSlotOnClosing(int p_70304_1_) {
|
public ItemStack getStackInSlotOnClosing(int index) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {}
|
public void setInventorySlotContents(int index, ItemStack stack) {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasCustomInventoryName() {
|
public boolean hasCustomInventoryName() {
|
||||||
@@ -336,7 +338,7 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isUseableByPlayer(EntityPlayer p_70300_1_) {
|
public boolean isUseableByPlayer(EntityPlayer player) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -351,7 +353,7 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {
|
public boolean isItemValidForSlot(int index, ItemStack stack) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -903,16 +905,20 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
|||||||
.setProgress(() -> generating > 9 ? 1f : 0f).setSynced(false, false).setPos(9, 43)
|
.setProgress(() -> generating > 9 ? 1f : 0f).setSynced(false, false).setPos(9, 43)
|
||||||
.setSize(11, 11))
|
.setSize(11, 11))
|
||||||
.widget(
|
.widget(
|
||||||
TextWidget.dynamicString(
|
new TextWidget().setStringSupplier(
|
||||||
() -> StatCollector.translateToLocal("emt.Storage") + EMTTextHelper
|
() -> StatCollector.translateToLocal("emt.Storage") + " "
|
||||||
.formatNumber(storage) + "/" + EMTTextHelper.formatNumber(maxstorage) + "EU")
|
+ numberFormat.formatWithSuffix(storage)
|
||||||
.setSynced(false).setDefaultColor(0).setPos(36, 22))
|
+ "/"
|
||||||
|
+ numberFormat.formatWithSuffix(maxstorage)
|
||||||
|
+ " EU")
|
||||||
|
.setDefaultColor(0).setPos(36, 22))
|
||||||
.widget(new FakeSyncWidget.LongSyncer(() -> storage, val -> storage = val))
|
.widget(new FakeSyncWidget.LongSyncer(() -> storage, val -> storage = val))
|
||||||
.widget(
|
.widget(
|
||||||
TextWidget
|
new TextWidget().setStringSupplier(
|
||||||
.dynamicString(
|
() -> StatCollector.translateToLocal("emt.Generating") + " "
|
||||||
() -> StatCollector.translateToLocal("emt.Generating") + generating + " EU/t")
|
+ numberFormat.formatWithSuffix((long) generating)
|
||||||
.setSynced(false).setDefaultColor(0).setPos(36, 35))
|
+ " EU/t")
|
||||||
|
.setDefaultColor(0).setPos(36, 35))
|
||||||
.widget(new FakeSyncWidget.DoubleSyncer(() -> generating, val -> generating = val));
|
.widget(new FakeSyncWidget.DoubleSyncer(() -> generating, val -> generating = val));
|
||||||
|
|
||||||
return builder.build();
|
return builder.build();
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import net.minecraftforge.common.config.Configuration;
|
import net.minecraftforge.common.config.Configuration;
|
||||||
|
|
||||||
import emt.gthandler.common.loader.EMT_GT_Loader;
|
|
||||||
import gregtech.api.enums.GT_Values;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: Need to rewrite...
|
* TODO: Need to rewrite...
|
||||||
**/
|
**/
|
||||||
@@ -55,6 +52,7 @@ public class EMTConfigHandler {
|
|||||||
public static double quantumBootsMaxDrop;
|
public static double quantumBootsMaxDrop;
|
||||||
|
|
||||||
public static double EssentiaGeneratorStorage;
|
public static double EssentiaGeneratorStorage;
|
||||||
|
public static int aIDoffset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Essentias
|
* Essentias
|
||||||
@@ -235,14 +233,11 @@ public class EMTConfigHandler {
|
|||||||
"This is the number you have to modify if you want to change the size of the "
|
"This is the number you have to modify if you want to change the size of the "
|
||||||
+ "internal buffer of the Essentia Generator")
|
+ "internal buffer of the Essentia Generator")
|
||||||
.getDouble(EssentiaGeneratorStorage);
|
.getDouble(EssentiaGeneratorStorage);
|
||||||
EMT_GT_Loader.aIDoffset = config
|
aIDoffset = config.get(
|
||||||
.get(
|
VALUES,
|
||||||
VALUES,
|
"aID offset for Gregetch Machinery",
|
||||||
"aID offset for Gregetch Machinery",
|
12983,
|
||||||
(13000 - GT_Values.VN.length - 1),
|
"This Mod will use 17 IDs, do not change if you dont know what you are doing!").getInt();
|
||||||
"This Mod will use " + Integer.toString(GT_Values.VN.length + 1)
|
|
||||||
+ " IDs, do not change if you dont know what you are doing!")
|
|
||||||
.getInt(13000 - GT_Values.VN.length - 1);
|
|
||||||
|
|
||||||
wandChargerConsumption = config
|
wandChargerConsumption = config
|
||||||
.get(
|
.get(
|
||||||
|
|||||||
@@ -42,16 +42,4 @@ public class EMTTextHelper {
|
|||||||
public static String localize(String key) {
|
public static String localize(String key) {
|
||||||
return StatCollector.translateToLocal(key);
|
return StatCollector.translateToLocal(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatNumber(long number) {
|
|
||||||
if (number < 10_000) {
|
|
||||||
return String.valueOf(number);
|
|
||||||
} else if (number < 10_000_000) {
|
|
||||||
return (number / 1000) + "k";
|
|
||||||
} else if (number < 1_000_000_000) {
|
|
||||||
return (number / 1_000_000) + "M";
|
|
||||||
} else {
|
|
||||||
return (number / 1_000_000_000) + "G";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,6 @@ tooltip.EMT.output.double.nether=wenn es im Nether steht
|
|||||||
tooltip.EMT.output.double.lava=wenn mit Ignis Centivis befüllt
|
tooltip.EMT.output.double.lava=wenn mit Ignis Centivis befüllt
|
||||||
tooltip.EMT.output.double.half.height=höhere Leistung in Höhen (x1 bei y=5, x3 bei y=220)
|
tooltip.EMT.output.double.half.height=höhere Leistung in Höhen (x1 bei y=5, x3 bei y=220)
|
||||||
tooltip.EMT.output.double.half.low=höhere Leistung in Tiefen (x1 bei y=220, x3 bei y=5)
|
tooltip.EMT.output.double.half.low=höhere Leistung in Tiefen (x1 bei y=220, x3 bei y=5)
|
||||||
tooltip.EMT.draconicSchematic=Diesen Bauplan kann man in Pluto Dungeons finden
|
|
||||||
|
|
||||||
#=============Entity Names=============
|
#=============Entity Names=============
|
||||||
entity.EMT.laser.name=Laser
|
entity.EMT.laser.name=Laser
|
||||||
@@ -136,14 +135,6 @@ tile.EMT.solar2.earth.name=Erde Infundierte Verdichte Solarzelle
|
|||||||
tile.EMT.solar2.doubleearth.name=Erde Infundierte Doppelt Verdichte Solarzelle
|
tile.EMT.solar2.doubleearth.name=Erde Infundierte Doppelt Verdichte Solarzelle
|
||||||
tile.EMT.solar2.tripleearth.name=Erde Infundierte Dreifach Verdichte Solarzelle
|
tile.EMT.solar2.tripleearth.name=Erde Infundierte Dreifach Verdichte Solarzelle
|
||||||
|
|
||||||
#===============Gregtech Compat===============
|
|
||||||
EMT_GTBLOCK_CASEING.0.name=Magie Zurückhaltender Strahlenschutz
|
|
||||||
EMT_GTBLOCK_CASEING.1.name=Essenz Diffusions Zelle
|
|
||||||
EMT_GTBLOCK_CASEING.2.name=Iridium Osmiridium Bewehrungskorb
|
|
||||||
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Bewehrungskorb
|
|
||||||
EMT_GTBLOCK_CASEING.4.name=Halb-Fertiger Magie Zurückhaltender Strahlenschutz
|
|
||||||
EMT_GTBLOCK_CASEING.5.name=Halb-Fertige Essenz Diffusions Zelle
|
|
||||||
|
|
||||||
|
|
||||||
#=============Thaumonomicon Texts=============
|
#=============Thaumonomicon Texts=============
|
||||||
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ tooltip.EMT.output.double.nether=when located in the Nether
|
|||||||
tooltip.EMT.output.double.lava=when fed with Ignis Centivis
|
tooltip.EMT.output.double.lava=when fed with Ignis Centivis
|
||||||
tooltip.EMT.output.double.half.height=Higher output at heights (x1 at y = 5, x3 at y=220)
|
tooltip.EMT.output.double.half.height=Higher output at heights (x1 at y = 5, x3 at y=220)
|
||||||
tooltip.EMT.output.double.half.low=Higher output at depths (x1 at y = 220, x3 at y=5)
|
tooltip.EMT.output.double.half.low=Higher output at depths (x1 at y = 220, x3 at y=5)
|
||||||
tooltip.EMT.draconicSchematic=This Schematic can be found in Pluto Dungeons
|
|
||||||
|
|
||||||
#=============Entity Names=============
|
#=============Entity Names=============
|
||||||
entity.EMT.laser.name=Laser
|
entity.EMT.laser.name=Laser
|
||||||
@@ -69,10 +68,10 @@ item.EMT.denseIronSheet.name=Dense Iron Sheet
|
|||||||
item.EMT.taintedFeather.name=Tainted Feather
|
item.EMT.taintedFeather.name=Tainted Feather
|
||||||
item.EMT.thaumiumWing.name=Thaumium Reinforced Wing
|
item.EMT.thaumiumWing.name=Thaumium Reinforced Wing
|
||||||
item.EMT.uumatterDrop.name=Crystallized UU-Matter Drop
|
item.EMT.uumatterDrop.name=Crystallized UU-Matter Drop
|
||||||
item.EMT.draconicSchematic.name=Draconic Core Schematic
|
item.EMT.draconicSchematic.name=[DEPRECATED] Draconic Core Schematic
|
||||||
item.EMT.wyvernSchematic.name=Wyvern Core Schematic
|
item.EMT.wyvernSchematic.name=[DEPRECATED] Wyvern Core Schematic
|
||||||
item.EMT.awakenedSchematic.name=Awakened Core Schematic
|
item.EMT.awakenedSchematic.name=[DEPRECATED] Awakened Core Schematic
|
||||||
item.EMT.chaoticSchematic.name=Chaotic Core Schematic
|
item.EMT.chaoticSchematic.name=[DEPRECATED] Chaotic Core Schematic
|
||||||
item.EMT.bauble.euMaker.armor.name=Armor Charging Ring
|
item.EMT.bauble.euMaker.armor.name=Armor Charging Ring
|
||||||
item.EMT.bauble.euMaker.inventory.name=Inventory Charging Ring
|
item.EMT.bauble.euMaker.inventory.name=Inventory Charging Ring
|
||||||
item.EMT.bauble.oneRing.name=The One Ring
|
item.EMT.bauble.oneRing.name=The One Ring
|
||||||
@@ -122,7 +121,7 @@ tile.EMT.essentia.aer.name=Aer Generator
|
|||||||
tile.EMT.essentia.lucrum.name=Lucrum Generator
|
tile.EMT.essentia.lucrum.name=Lucrum Generator
|
||||||
tile.EMT.machine.wandrecharge.name=Industrial Wand Charging Station
|
tile.EMT.machine.wandrecharge.name=Industrial Wand Charging Station
|
||||||
tile.EMT.machine.etheralprocessor.name=Ethereal Processor
|
tile.EMT.machine.etheralprocessor.name=Ethereal Processor
|
||||||
tile.EMT.machine.essentiafiller.name=Essentia Filler
|
tile.EMT.machine.essentiafiller.name=Essentia Filler - Marked for deprecation
|
||||||
tile.EMT.solar.compressed.name=Compressed Solar Panel
|
tile.EMT.solar.compressed.name=Compressed Solar Panel
|
||||||
tile.EMT.solar.doublecompressed.name=Double Compressed Solar Panel
|
tile.EMT.solar.doublecompressed.name=Double Compressed Solar Panel
|
||||||
tile.EMT.solar.triplecompressed.name=Triple Compressed Solar Panel
|
tile.EMT.solar.triplecompressed.name=Triple Compressed Solar Panel
|
||||||
@@ -180,20 +179,6 @@ tile.EMT.Sextuple_Compressed_Terra_Solar.name=Sextuple Compressed Terra Solar
|
|||||||
tile.EMT.Septuple_Compressed_Terra_Solar.name=Septuple Compressed Terra Solar
|
tile.EMT.Septuple_Compressed_Terra_Solar.name=Septuple Compressed Terra Solar
|
||||||
tile.EMT.Octuple_Compressed_Terra_Solar.name=Octuple Compressed Terra Solar
|
tile.EMT.Octuple_Compressed_Terra_Solar.name=Octuple Compressed Terra Solar
|
||||||
|
|
||||||
#===============Gregtech Compat===============
|
|
||||||
EMT_GTBLOCK_CASEING.0.name=Magic Containing Casing
|
|
||||||
EMT_GTBLOCK_CASEING.1.name=Essentia Diffusion Cell
|
|
||||||
EMT_GTBLOCK_CASEING.2.name=Iridium Ruridit Framebox
|
|
||||||
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Framebox
|
|
||||||
EMT_GTBLOCK_CASEING.4.name=Raw Magic Containing Casing
|
|
||||||
EMT_GTBLOCK_CASEING.5.name=Raw Essentia Diffusion Cell
|
|
||||||
EMT_GTBLOCK_CASEING.7.name=Naquadah Alloy Fusion Casing
|
|
||||||
EMT_GTBLOCK_CASEING.8.name=Bloody Ichorium Fusion Casing
|
|
||||||
EMT_GTBLOCK_CASEING.9.name=Draconium Fusion Casing
|
|
||||||
EMT_GTBLOCK_CASEING.10.name=Wyvern Fusion Casing
|
|
||||||
EMT_GTBLOCK_CASEING.11.name=Awakened Draconium Fusion Casing
|
|
||||||
EMT_GTBLOCK_CASEING.12.name=Chaotic Fusion Casing
|
|
||||||
|
|
||||||
#=============Thaumonomicon Texts=============
|
#=============Thaumonomicon Texts=============
|
||||||
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
||||||
emt.tag.Electric Magic Tools=Who says magic and technology can't go together?
|
emt.tag.Electric Magic Tools=Who says magic and technology can't go together?
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ item.EMT.focus.christmas.name=Набалдашник: Рождество
|
|||||||
item.EMT.focus.shield.name=Набалдашник: Щит
|
item.EMT.focus.shield.name=Набалдашник: Щит
|
||||||
item.EMT.focus.charge.name=Набалдашник: Зарядка
|
item.EMT.focus.charge.name=Набалдашник: Зарядка
|
||||||
item.EMT.focus.chargeWand.name=Набалдашник: Зарядка жезла
|
item.EMT.focus.chargeWand.name=Набалдашник: Зарядка жезла
|
||||||
|
item.EMT.focus.maintenance.name=Набалдашник: Обслуживание
|
||||||
item.EMT.focus.electricCloud.name=Электризованное облако
|
item.EMT.focus.electricCloud.name=Электризованное облако
|
||||||
item.EMT.focus.energyBall.name=Набалдашник: Наэлектризованное облако
|
item.EMT.focus.energyBall.name=Набалдашник: Наэлектризованное облако
|
||||||
|
|
||||||
@@ -118,39 +119,67 @@ tile.EMT.machine.essentiafiller.name=Эфирный наполнитель
|
|||||||
tile.EMT.solar.compressed.name=Сжатая солнечная панель
|
tile.EMT.solar.compressed.name=Сжатая солнечная панель
|
||||||
tile.EMT.solar.doublecompressed.name=Дважды сжатая солнечная панель
|
tile.EMT.solar.doublecompressed.name=Дважды сжатая солнечная панель
|
||||||
tile.EMT.solar.triplecompressed.name=Трижды сжатая солнечная панель
|
tile.EMT.solar.triplecompressed.name=Трижды сжатая солнечная панель
|
||||||
|
tile.EMT.Quadruple_Compressed_Solar.name=Четырежды сжатая солнечная панель
|
||||||
|
tile.EMT.Quintuple_Compressed_Solar.name=Пятикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Sextuple_Compressed_Solar.name=Шестикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Septuple_Compressed_Solar.name=Семикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Octuple_Compressed_Solar.name=Восьмикратная сжатая солнечная панель
|
||||||
tile.EMT.solar.water.name=Наполненная водой, сжатая солнечная панель
|
tile.EMT.solar.water.name=Наполненная водой, сжатая солнечная панель
|
||||||
tile.EMT.solar.doublewater.name=Наполненная водой, дважды сжатая солнечная панель
|
tile.EMT.solar.doublewater.name=Наполненная водой, дважды сжатая солнечная панель
|
||||||
tile.EMT.solar.triplewater.name=Наполненная водой, трижды сжатая солнечная панель
|
tile.EMT.solar.triplewater.name=Наполненная водой, трижды сжатая солнечная панель
|
||||||
|
tile.EMT.Quadruple_Compressed_Aqua_Solar.name=Наполненная водой, четырежды сжатая солнечная панель
|
||||||
|
tile.EMT.Quintuple_Compressed_Aqua_Solar.name=Наполненная водой, пятикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Sextuple_Compressed_Aqua_Solar.name=Наполненная водой, шестикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Septuple_Compressed_Aqua_Solar.name=Наполненная водой, семикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Octuple_Compressed_Aqua_Solar.name=Наполненная водой, восьмикратная сжатая солнечная панель
|
||||||
tile.EMT.solar.dark.name=Наполненная энтропией, сжатая солнечная панель
|
tile.EMT.solar.dark.name=Наполненная энтропией, сжатая солнечная панель
|
||||||
tile.EMT.solar.doubledark.name=Наполненная энтропией, дважды сжатая солнечная панель
|
tile.EMT.solar.doubledark.name=Наполненная энтропией, дважды сжатая солнечная панель
|
||||||
tile.EMT.solar.tripledark.name=Наполненная энтропией, трижды сжатая солнечная панель
|
tile.EMT.solar.tripledark.name=Наполненная энтропией, трижды сжатая солнечная панель
|
||||||
|
tile.EMT.Quadruple_Compressed_Perditio_Solar.name=Наполненная энтропией, четырежды сжатая солнечная панель
|
||||||
|
tile.EMT.Quintuple_Compressed_Perditio_Solar.name=Наполненная энтропией, пятикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Sextuple_Compressed_Perditio_Solar.name=Наполненная энтропией, шестикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Septuple_Compressed_Perditio_Solar.name=Наполненная энтропией, семикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Octuple_Compressed_Perditio_Solar.name=Наполненная энтропией, восьмикратная сжатая солнечная панель
|
||||||
tile.EMT.solar.order.name=Наполненная порядком, сжатая солнечная панель
|
tile.EMT.solar.order.name=Наполненная порядком, сжатая солнечная панель
|
||||||
tile.EMT.solar.doubleorder.name=Наполненная порядком, дважды сжатая солнечная панель
|
tile.EMT.solar.doubleorder.name=Наполненная порядком, дважды сжатая солнечная панель
|
||||||
tile.EMT.solar.tripleorder.name=Наполненная порядком, трижды сжатая солнечная панель
|
tile.EMT.solar.tripleorder.name=Наполненная порядком, трижды сжатая солнечная панель
|
||||||
|
tile.EMT.Quadruple_Compressed_Ordo_Solar.name=Наполненная порядком, четырежды сжатая солнечная панель
|
||||||
|
tile.EMT.Quintuple_Compressed_Ordo_Solar.name=Наполненная порядком, пятикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Sextuple_Compressed_Ordo_Solar.name=Наполненная порядком, шестикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Septuple_Compressed_Ordo_Solar.name=Наполненная порядком, семикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Octuple_Compressed_Ordo_Solar.name=Наполненная порядком, восьмикратная сжатая солнечная панель
|
||||||
tile.EMT.solar.fire.name=Наполненная огнём, сжатая солнечная панель
|
tile.EMT.solar.fire.name=Наполненная огнём, сжатая солнечная панель
|
||||||
tile.EMT.solar.doublefire.name=Наполненная огнём, дважды сжатая солнечная панель
|
tile.EMT.solar.doublefire.name=Наполненная огнём, дважды сжатая солнечная панель
|
||||||
tile.EMT.solar.triplefire.name=Наполненная огнём, трижды сжатая солнечная панель
|
tile.EMT.solar.triplefire.name=Наполненная огнём, трижды сжатая солнечная панель
|
||||||
|
tile.EMT.Quadruple_Compressed_Ignis_Solar.name=Наполненная огнём, четырежды сжатая солнечная панель
|
||||||
|
tile.EMT.Quintuple_Compressed_Ignis_Solar.name=Наполненная огнём, пятикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Sextuple_Compressed_Ignis_Solar.name=Наполненная огнём, шестикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Septuple_Compressed_Ignis_Solar.name=Наполненная огнём, семикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Octuple_Compressed_Ignis_Solar.name=Наполненная огнём, восьмикратная сжатая солнечная панель
|
||||||
tile.EMT.solar.air.name=Наполненная воздухом, сжатая солнечная панель
|
tile.EMT.solar.air.name=Наполненная воздухом, сжатая солнечная панель
|
||||||
tile.EMT.solar2.doubleair.name=Наполненная воздухом, дважды сжатая солнечная панель
|
tile.EMT.solar2.doubleair.name=Наполненная воздухом, дважды сжатая солнечная панель
|
||||||
tile.EMT.solar2.tripleair.name=Наполненная воздухом, трижды сжатая солнечная панель
|
tile.EMT.solar2.tripleair.name=Наполненная воздухом, трижды сжатая солнечная панель
|
||||||
|
tile.EMT.Quadruple_Compressed_Aer_Solar.name=Наполненная воздухом, четырежды сжатая солнечная панель
|
||||||
|
tile.EMT.Quintuple_Compressed_Aer_Solar.name=Наполненная воздухом, пятикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Sextuple_Compressed_Aer_Solar.name=Наполненная воздухом, шестикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Septuple_Compressed_Aer_Solar.name=Наполненная воздухом, семикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Octuple_Compressed_Aer_Solar.name=Наполненная воздухом, восьмикратная сжатая солнечная панель
|
||||||
tile.EMT.solar2.earth.name=Наполненная землёй, сжатая солнечная панель
|
tile.EMT.solar2.earth.name=Наполненная землёй, сжатая солнечная панель
|
||||||
tile.EMT.solar2.doubleearth.name=Наполненная землёй, дважды сжатая солнечная панель
|
tile.EMT.solar2.doubleearth.name=Наполненная землёй, дважды сжатая солнечная панель
|
||||||
tile.EMT.solar2.tripleearth.name=Наполненная землёй, трижды сжатая солнечная панель
|
tile.EMT.solar2.tripleearth.name=Наполненная землёй, трижды сжатая солнечная панель
|
||||||
|
tile.EMT.Quadruple_Compressed_Terra_Solar.name=Наполненная землёй, четырежды сжатая солнечная панель
|
||||||
|
tile.EMT.Quintuple_Compressed_Terra_Solar.name=Наполненная землёй, пятикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Sextuple_Compressed_Terra_Solar.name=Наполненная землёй, шестикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Septuple_Compressed_Terra_Solar.name=Наполненная землёй, семикратно сжатая солнечная панель
|
||||||
|
tile.EMT.Octuple_Compressed_Terra_Solar.name=Наполненная землёй, восьмикратная сжатая солнечная панель
|
||||||
|
|
||||||
#===============Gregtech Compat===============
|
|
||||||
EMT_GTBLOCK_CASEING.0.name=Магический Корпус
|
|
||||||
EMT_GTBLOCK_CASEING.1.name=Эфирная Диффузионная Ячейка
|
|
||||||
EMT_GTBLOCK_CASEING.2.name=Иридиево-Осмиридиевый Framebox
|
|
||||||
EMT_GTBLOCK_CASEING.3.name=Иридиево-Вольфрамовый Framebox
|
|
||||||
EMT_GTBLOCK_CASEING.4.name=Необработанный Магический Корпус
|
|
||||||
EMT_GTBLOCK_CASEING.5.name=Необработанная Эфирная Диффузионная Ячейка
|
|
||||||
|
|
||||||
#=============Thaumonomicon=============
|
#=============Thaumonomicon=============
|
||||||
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
||||||
emt.tag.Electric Magic Tools=Кто сказал что магия и технология не дружат вместе?
|
emt.tag.Electric Magic Tools=Кто сказал что магия и технология не дружат вместе?
|
||||||
emt.text.Electric Magic Tools=Кто сказал, что магия не может дружить с технологией? Наши исследователи сотрудничали с лучшими магами школы тауматургов, чтобы приподнести Вам эффективность магии, в сочетании с удобством электроинструментов.
|
emt.text.Electric Magic Tools=Кто сказал, что магия не может дружить с технологией? Наши исследователи сотрудничали с лучшими магами школы тауматургов, чтобы приподнести Вам эффективность магии, в сочетании с удобством электроинструментов.
|
||||||
|
|
||||||
emt.rsname.Energy Ball Focus=Набалдашник: энерго-шар
|
emt.rsname.Energy Ball Focus=Набалдашник: Наэлектризованное облако
|
||||||
emt.tag.Energy Ball Focus=Не игрушка
|
emt.tag.Energy Ball Focus=Не игрушка
|
||||||
emt.text.Energy Ball Focus=Для использования этого наболдашника необходимо надеть аккумуляторный ранец или нано/квантовую кирасу. Для создания одного шара необходимо 5120EU. Крайне не рекомендуется использовать в замкнутом пространстве!
|
emt.text.Energy Ball Focus=Для использования этого наболдашника необходимо надеть аккумуляторный ранец или нано/квантовую кирасу. Для создания одного шара необходимо 5120EU. Крайне не рекомендуется использовать в замкнутом пространстве!
|
||||||
|
|
||||||
@@ -203,6 +232,10 @@ emt.rsname.Shield Focus=Набалдашник: Щит
|
|||||||
emt.tag.Shield Focus=З.А.Щ.И.Т.А.
|
emt.tag.Shield Focus=З.А.Щ.И.Т.А.
|
||||||
emt.text.Shield Focus=После некоторых экспериментов с червоточиной, Вы узнали больше о транспортировке объектов в альтернативные измерения. Вы верите, что Вы сможете обратить эти эффекты, чтобы призвать ряд блоков из измерения, сделанного из материи, которые будут защищать Вас от любой беды. Будьте внимательны, используя этот набалдашник, так как когда эти блоки появятся в нашем измерении, они будут переносить любые встречные блоки в своё измерение, которые никогда не вернуться. Вы также не сможете двигаться, во время существования этого щита.
|
emt.text.Shield Focus=После некоторых экспериментов с червоточиной, Вы узнали больше о транспортировке объектов в альтернативные измерения. Вы верите, что Вы сможете обратить эти эффекты, чтобы призвать ряд блоков из измерения, сделанного из материи, которые будут защищать Вас от любой беды. Будьте внимательны, используя этот набалдашник, так как когда эти блоки появятся в нашем измерении, они будут переносить любые встречные блоки в своё измерение, которые никогда не вернуться. Вы также не сможете двигаться, во время существования этого щита.
|
||||||
|
|
||||||
|
emt.rsname.Wand Focus: Maintenance=Таумическое обслуживание
|
||||||
|
emt.tag.Wand Focus: Maintenance=Кому нужен ящик с инструментами, когда у вас есть магия?
|
||||||
|
emt.text.Wand Focus: Maintenance=После интенсивного изучения предположительно механической природы вашего аппарата вы, наконец, сделали это, вы обнаружили метод, позволяющий использовать Вис в ремонте. <BR> Что представляют собой несколько взорванных чистых помещений на фоне явного прогресса? Теперь вы можете избавиться от этих подлых обыденных инструментов...
|
||||||
|
|
||||||
emt.rsname.Potentia Generator=Potentia генератор
|
emt.rsname.Potentia Generator=Potentia генератор
|
||||||
emt.tag.Potentia Generator=Освоение производящего потенциала эссенции
|
emt.tag.Potentia Generator=Освоение производящего потенциала эссенции
|
||||||
emt.text.Potentia Generator=После долгих изучений и исследований, Вы, наконец-то, узнали как получить электричество от остатков эссенции.<BR><BR>Просто поместите банку, содержащую Potentia, в радиусе 8 блоков от механизма и она заставит его вырабатывать EU.<BR><BR>Хотя Potentia кажется наиболее логичным выбором для производства EU с помощью эссенции, Вы уверены, что Вы сможете производить электричество из различных эссенций в ближайшем будущем.
|
emt.text.Potentia Generator=После долгих изучений и исследований, Вы, наконец-то, узнали как получить электричество от остатков эссенции.<BR><BR>Просто поместите банку, содержащую Potentia, в радиусе 8 блоков от механизма и она заставит его вырабатывать EU.<BR><BR>Хотя Potentia кажется наиболее логичным выбором для производства EU с помощью эссенции, Вы уверены, что Вы сможете производить электричество из различных эссенций в ближайшем будущем.
|
||||||
@@ -378,3 +411,7 @@ emt.text.Quantum Wings=После исследования всех возмож
|
|||||||
emt.rsname.Infused Quantum Armor=Наполненный квантовый нагрудник.
|
emt.rsname.Infused Quantum Armor=Наполненный квантовый нагрудник.
|
||||||
emt.tag.Infused Quantum Armor=Последний шаг...
|
emt.tag.Infused Quantum Armor=Последний шаг...
|
||||||
emt.text.Infused Quantum Armor=Вам было нечего делать, и Вы решили заняться хоть чем-то полезным. Вам в голову пришла идея создания брони, на которую можно нацепить крылья или ранец, чтобы быть защищёнными в полёте. Возмите в руку крылья или ранец, и присядьте чтобы надеть их на броню. Чтобы снять их, зажмите Shift + "Снять"(Смотрите в настройках).
|
emt.text.Infused Quantum Armor=Вам было нечего делать, и Вы решили заняться хоть чем-то полезным. Вам в голову пришла идея создания брони, на которую можно нацепить крылья или ранец, чтобы быть защищёнными в полёте. Возмите в руку крылья или ранец, и присядьте чтобы надеть их на броню. Чтобы снять их, зажмите Shift + "Снять"(Смотрите в настройках).
|
||||||
|
|
||||||
|
emt.rsname.ResearchCompleter=Автоматизированное исследование
|
||||||
|
emt.tag.ResearchCompleter=Больше никакого спама
|
||||||
|
emt.text.ResearchCompleter=Поначалу это было весело, но вы решили, что пришло время найти лучший способ провести все эти исследования. Смешав технологию и магию, вы создали мультиблок, который может самостоятельно завершить исследовательскую заметку.<BR><BR>Для работы ему необходимо, чтобы узлы были размещены в центре конструкции, и он будет медленно разрушать их во время работы. Стабилизаторы узлов не являются обязательными, но рекомендуются для удержания большого количества узлов близко друг к другу, не разрушая друг друга.
|
||||||
@@ -43,7 +43,6 @@ tooltip.EMT.output.double.nether=处于下界时发电量
|
|||||||
tooltip.EMT.output.double.lava=每秒供给0.01vis火之要素时发电量
|
tooltip.EMT.output.double.lava=每秒供给0.01vis火之要素时发电量
|
||||||
tooltip.EMT.output.double.half.height=位置越高发电量越高(y=5时1倍,y=220时3倍)
|
tooltip.EMT.output.double.half.height=位置越高发电量越高(y=5时1倍,y=220时3倍)
|
||||||
tooltip.EMT.output.double.half.low=位置越低发电量越高(y=220时1倍,y=5时3倍)
|
tooltip.EMT.output.double.half.low=位置越低发电量越高(y=220时1倍,y=5时3倍)
|
||||||
tooltip.EMT.draconicSchematic=可在冥王星地牢找到相关图纸
|
|
||||||
|
|
||||||
#=============Entity Names=============
|
#=============Entity Names=============
|
||||||
entity.EMT.laser.name=镭射器
|
entity.EMT.laser.name=镭射器
|
||||||
@@ -68,10 +67,6 @@ item.EMT.denseIronSheet.name=致密铁片
|
|||||||
item.EMT.taintedFeather.name=腐化羽毛
|
item.EMT.taintedFeather.name=腐化羽毛
|
||||||
item.EMT.thaumiumWing.name=神秘增强羽翼
|
item.EMT.thaumiumWing.name=神秘增强羽翼
|
||||||
item.EMT.uumatterDrop.name=结晶UU物质液滴
|
item.EMT.uumatterDrop.name=结晶UU物质液滴
|
||||||
item.EMT.draconicSchematic.name=龙芯图纸
|
|
||||||
item.EMT.wyvernSchematic.name=双足飞龙核心图纸
|
|
||||||
item.EMT.awakenedSchematic.name=觉醒核心图纸
|
|
||||||
item.EMT.chaoticSchematic.name=混沌核心图纸
|
|
||||||
item.EMT.bauble.euMaker.armor.name=装备充电指环
|
item.EMT.bauble.euMaker.armor.name=装备充电指环
|
||||||
item.EMT.bauble.euMaker.inventory.name=物品充能指环
|
item.EMT.bauble.euMaker.inventory.name=物品充能指环
|
||||||
item.EMT.bauble.oneRing.name=魔戒
|
item.EMT.bauble.oneRing.name=魔戒
|
||||||
@@ -178,20 +173,6 @@ tile.EMT.Sextuple_Compressed_Terra_Solar.name=地注魔太阳能(6级)
|
|||||||
tile.EMT.Septuple_Compressed_Terra_Solar.name=地注魔太阳能(7级)
|
tile.EMT.Septuple_Compressed_Terra_Solar.name=地注魔太阳能(7级)
|
||||||
tile.EMT.Octuple_Compressed_Terra_Solar.name=地注魔太阳能(8级)
|
tile.EMT.Octuple_Compressed_Terra_Solar.name=地注魔太阳能(8级)
|
||||||
|
|
||||||
#===============Gregtech Compat===============
|
|
||||||
EMT_GTBLOCK_CASEING.0.name=魔法机械方块
|
|
||||||
EMT_GTBLOCK_CASEING.1.name=源质扩散单元
|
|
||||||
EMT_GTBLOCK_CASEING.2.name=铱锇魔法框架
|
|
||||||
EMT_GTBLOCK_CASEING.3.name=铟钨魔法框架
|
|
||||||
EMT_GTBLOCK_CASEING.4.name=源质扩散单元半成品
|
|
||||||
EMT_GTBLOCK_CASEING.5.name=魔法机械方块半成品
|
|
||||||
EMT_GTBLOCK_CASEING.7.name=硅岩合金聚合机械方块
|
|
||||||
EMT_GTBLOCK_CASEING.8.name=血腥灵宝聚合机械方块
|
|
||||||
EMT_GTBLOCK_CASEING.9.name=龙锭聚合机械方块
|
|
||||||
EMT_GTBLOCK_CASEING.10.name=双足飞龙聚合机械方块
|
|
||||||
EMT_GTBLOCK_CASEING.11.name=觉醒龙聚合机械方块
|
|
||||||
EMT_GTBLOCK_CASEING.12.name=混沌聚合机械方块
|
|
||||||
|
|
||||||
#=============Thaumonomicon Texts=============
|
#=============Thaumonomicon Texts=============
|
||||||
emt.rsname.Electric Magic Tools=电力魔法工具
|
emt.rsname.Electric Magic Tools=电力魔法工具
|
||||||
emt.tag.Electric Magic Tools=谁说科技和魔法不能互相结合?
|
emt.tag.Electric Magic Tools=谁说科技和魔法不能互相结合?
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 694 B |
|
Before Width: | Height: | Size: 372 B |
|
Before Width: | Height: | Size: 647 B |
|
Before Width: | Height: | Size: 512 B |
|
Before Width: | Height: | Size: 469 B |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |