Compare commits

..
16 Commits
Author SHA1 Message Date
Martin Robertz 37ec69859d update gradle+dep+bs 2023-12-03 12:46:53 +01:00
GitHub GTNH Actions f84acae4c4 spotlessApply 2023-12-03 12:34:16 +01:00
glowredman 8541c421eb Register blocks/items/TEs in preInit 2023-12-03 12:34:16 +01:00
Martin Robertz 68351caa3f update deps 2023-10-30 08:36:00 +01:00
kuba6000 cecd0b34ea Remove textures 2023-10-30 08:24:44 +01:00
kuba6000 37aac854b5 Remove DEFC 2023-10-30 08:24:44 +01:00
Martin Robertz e6fe00e986 update bs+deps+gitignore 2023-10-25 19:05:28 +02:00
Alastors bf496967aa Say goodbye to your LEGs (#66) 2023-10-25 10:15:22 -04:00
Caedis 5e1a996798 Update buildscript (#65)
* Update buildscript

+update deps and nuke repositories.gradle

* Remove wildcard imports

* Remove .github/scripts folder as well
2023-10-11 00:37:18 -05:00
AlastorsGitHub GTNH Actionsgithub-actions[bot]
29144cfe3e Mark Bart's LEG for termination (#61)
* Mark Bart's LEG for termination

marking as deprecated for it's future termination.

* spotlessApply (#62)

Co-authored-by: GitHub GTNH Actions <>

* Mark the Hatch and LEG

* Update en_US.lang

* Update EMT_Large_Essentia_Gen.java

* spotlessApply (#64)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-13 20:20:25 +02:00
Dakota Jones 78b68dec47 Fix maintenance focus NPE (#63) 2023-07-04 03:57:15 -07:00
Martin Robertz 5053be782b update bs 2023-05-06 08:40:47 +02:00
Ryan Nasers c5a72c0dff Adding a maintenance foci, thaumic alternative to carrying a toolbox/duct-tape (#60)
* Added maintenance focus.

* Changing some lang to alastor's liking.

* Some tweaks and spotless apply.

* Some tweaks and spotless apply.

* Removed as many extra calls as I could.
2023-05-06 08:38:34 +02:00
Jason MitchellandMartin Robertz e20ae4f103 ForgeDirection (#59)
* ForgeDirection

* Update dependencies.gradle

* update bs

---------

Co-authored-by: Martin Robertz <[email protected]>
2023-05-01 14:03:15 +02:00
Martin Robertz fe84247b9e Update dependencies.gradle 2023-04-23 10:09:50 +02:00
Martin Robertz 0a55e842b1 Fix Materials (#58)
* update buildscript + spottless

* update to newest gt version

* spotless
2023-04-21 19:11:20 +02:00
79 changed files with 652 additions and 2084 deletions

No files matched your search

-51
View File
@@ -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
+1
View File
@@ -30,3 +30,4 @@ src/main/resources/mixins.*.json
*.bat
*.DS_Store
!gradlew.bat
layout.json
+242 -119
View File
@@ -1,4 +1,4 @@
//version: 1681680742
//version: 1701530445
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
@@ -6,53 +6,34 @@
*/
import com.diffplug.blowdryer.Blowdryer
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import com.gtnewhorizons.retrofuturagradle.ObfuscationAttribute
import com.gtnewhorizons.retrofuturagradle.mcp.ReobfuscatedJar
import com.gtnewhorizons.retrofuturagradle.minecraft.RunMinecraftTask
import com.gtnewhorizons.retrofuturagradle.util.Distribution
import com.matthewprenger.cursegradle.CurseArtifact
import com.matthewprenger.cursegradle.CurseRelation
import com.modrinth.minotaur.dependencies.ModDependency
import com.modrinth.minotaur.dependencies.VersionDependency
import cpw.mods.fml.relauncher.Side
import org.gradle.api.tasks.options.Option;
import org.gradle.internal.logging.text.StyledTextOutput.Style
import org.gradle.internal.logging.text.StyledTextOutputFactory
import org.gradle.internal.xml.XmlTransformer
import org.jetbrains.gradle.ext.*
import org.jetbrains.gradle.ext.Application
import org.jetbrains.gradle.ext.Gradle
import javax.inject.Inject
import java.nio.file.Files
import java.nio.file.Paths
import java.util.concurrent.TimeUnit
import java.util.zip.ZipEntry
import java.util.zip.ZipOutputStream
import javax.inject.Inject
buildscript {
repositories {
mavenCentral()
maven {
name 'forge'
url 'https://maven.minecraftforge.net'
}
maven {
// GTNH RetroFuturaGradle and ASM Fork
name "GTNH Maven"
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
allowInsecureProtocol = true
}
maven {
name 'sonatype'
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
name 'Scala CI dependencies'
url 'https://repo1.maven.org/maven2/'
}
mavenLocal()
}
}
@@ -66,15 +47,18 @@ plugins {
id 'org.jetbrains.kotlin.kapt' version '1.8.0' apply false
id 'com.google.devtools.ksp' version '1.8.0-1.0.9' apply false
id 'org.ajoberstar.grgit' version '4.1.1' // 4.1.1 is the last jvm8 supporting version, unused, available for addon.gradle
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id 'com.palantir.git-version' version '3.0.0' apply false
id 'de.undercouch.download' version '5.3.0'
id 'de.undercouch.download' version '5.4.0'
id 'com.github.gmazzo.buildconfig' version '3.1.0' apply false // Unused, available for addon.gradle
id 'com.diffplug.spotless' version '6.7.2' apply false
id 'com.diffplug.spotless' version '6.13.0' apply false // 6.13.0 is the last jvm8 supporting version
id 'com.modrinth.minotaur' version '2.+' apply false
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
id 'com.gtnewhorizons.retrofuturagradle' version '1.2.5'
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.24'
}
print("You might want to check out './gradlew :faq' if your build fails.\n")
boolean settingsupdated = verifySettingsGradle()
settingsupdated = verifyGitAttributes() || settingsupdated
if (settingsupdated)
@@ -90,6 +74,23 @@ def out = services.get(StyledTextOutputFactory).create('an-output')
def projectJavaVersion = JavaLanguageVersion.of(8)
boolean disableSpotless = project.hasProperty("disableSpotless") ? project.disableSpotless.toBoolean() : false
boolean disableCheckstyle = project.hasProperty("disableCheckstyle") ? project.disableCheckstyle.toBoolean() : false
final String CHECKSTYLE_CONFIG = """
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="TreeWalker">
<!-- Use CHECKSTYLE:OFF and CHECKSTYLE:ON comments to suppress checkstyle lints in a block -->
<module name="SuppressionCommentFilter"/>
<module name="AvoidStarImport">
<!-- Allow static wildcard imports for cases like Opcodes and LWJGL classes, these don't get created accidentally by the IDE -->
<property name="allowStaticMemberImports" value="true"/>
</module>
</module>
</module>
"""
checkPropertyExists("modName")
checkPropertyExists("modId")
@@ -116,6 +117,8 @@ propertyDefaultIfUnset("usesMixinDebug", project.usesMixins)
propertyDefaultIfUnset("forceEnableMixins", false)
propertyDefaultIfUnset("channel", "stable")
propertyDefaultIfUnset("mappingsVersion", "12")
propertyDefaultIfUnset("usesMavenPublishing", true)
propertyDefaultIfUnset("mavenPublishUrl", "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases")
propertyDefaultIfUnset("modrinthProjectId", "")
propertyDefaultIfUnset("modrinthRelations", "")
propertyDefaultIfUnset("curseForgeProjectId", "")
@@ -133,12 +136,23 @@ propertyDefaultIfUnset("enableGenericInjection", false) // On by default for new
// this is meant to be set using the user wide property file. by default we do nothing.
propertyDefaultIfUnset("ideaOverrideBuildType", "") // Can be nothing, "gradle" or "idea"
project.extensions.add(Blowdryer, "Blowdryer", Blowdryer) // Make blowdryer available in "apply from:" scripts
project.extensions.add(com.diffplug.blowdryer.Blowdryer, "Blowdryer", com.diffplug.blowdryer.Blowdryer) // Make blowdryer available in "apply from:" scripts
if (!disableSpotless) {
apply plugin: 'com.diffplug.spotless'
apply from: Blowdryer.file('spotless.gradle')
}
if (!disableCheckstyle) {
apply plugin: 'checkstyle'
tasks.named("checkstylePatchedMc") { enabled = false }
tasks.named("checkstyleMcLauncher") { enabled = false }
tasks.named("checkstyleIdeVirtualMain") { enabled = false }
tasks.named("checkstyleInjectedTags") { enabled = false }
checkstyle {
config = resources.text.fromString(CHECKSTYLE_CONFIG)
}
}
String javaSourceDir = "src/main/java/"
String scalaSourceDir = "src/main/scala/"
String kotlinSourceDir = "src/main/kotlin/"
@@ -223,6 +237,8 @@ if (enableModernJavaSyntax.toBoolean()) {
dependencies {
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:1.0.0'
// workaround for https://github.com/bsideup/jabel/issues/174
annotationProcessor 'net.java.dev.jna:jna-platform:5.13.0'
compileOnly('com.github.bsideup.jabel:jabel-javac-plugin:1.0.0') {
transitive = false // We only care about the 1 annotation class
}
@@ -271,7 +287,7 @@ if (apiPackage) {
}
if (accessTransformersFile) {
for (atFile in accessTransformersFile.split(",")) {
for (atFile in accessTransformersFile.split(" ")) {
String targetFile = "src/main/resources/META-INF/" + atFile.trim()
if (!getFile(targetFile).exists()) {
throw new GradleException("Could not resolve \"accessTransformersFile\"! Could not find " + targetFile)
@@ -356,7 +372,27 @@ catch (Exception ignored) {
String identifiedVersion
String versionOverride = System.getenv("VERSION") ?: null
try {
identifiedVersion = versionOverride == null ? gitVersion() : versionOverride
// Produce a version based on the tag, or for branches something like 0.2.2-configurable-maven-and-extras.38+43090270b6-dirty
if (versionOverride == null) {
def gitDetails = versionDetails()
def isDirty = gitVersion().endsWith(".dirty") // No public API for this, isCleanTag has a different meaning
String branchName = gitDetails.branchName ?: (System.getenv('GIT_BRANCH') ?: 'git')
if (branchName.startsWith('origin/')) {
branchName = branchName.minus('origin/')
}
branchName = branchName.replaceAll("[^a-zA-Z0-9-]+", "-") // sanitize branch names for semver
identifiedVersion = gitDetails.lastTag ?: '${gitDetails.gitHash}'
if (gitDetails.commitDistance > 0) {
identifiedVersion += "-${branchName}.${gitDetails.commitDistance}+${gitDetails.gitHash}"
if (isDirty) {
identifiedVersion += "-dirty"
}
} else if (isDirty) {
identifiedVersion += "-${branchName}+${gitDetails.gitHash}-dirty"
}
} else {
identifiedVersion = versionOverride
}
}
catch (Exception ignored) {
out.style(Style.Failure).text(
@@ -378,9 +414,13 @@ if (identifiedVersion == versionOverride) {
group = "com.github.GTNewHorizons"
if (project.hasProperty("customArchiveBaseName") && customArchiveBaseName) {
archivesBaseName = customArchiveBaseName
base {
archivesName = customArchiveBaseName
}
} else {
archivesBaseName = modId
base {
archivesName = modId
}
}
@@ -408,7 +448,7 @@ minecraft {
username = developmentEnvironmentUserName.toString()
lwjgl3Version = "3.3.2-SNAPSHOT"
lwjgl3Version = "3.3.2"
// Enable assertions in the current mod
extraRunJvmArguments.add("-ea:${modGroup}")
@@ -464,10 +504,19 @@ sourceSets {
}
}
if (file('addon.gradle').exists()) {
if (file('addon.gradle.kts').exists()) {
apply from: 'addon.gradle.kts'
} else if (file('addon.gradle').exists()) {
apply from: 'addon.gradle'
}
// File for local tweaks not commited to Git
if (file('addon.local.gradle.kts').exists()) {
apply from: 'addon.local.gradle.kts'
} else if (file('addon.local.gradle').exists()) {
apply from: 'addon.local.gradle'
}
// Allow unsafe repos but warn
repositories.configureEach { repo ->
if (repo instanceof org.gradle.api.artifacts.repositories.UrlArtifactRepository) {
@@ -478,7 +527,14 @@ repositories.configureEach { repo ->
}
}
apply from: 'repositories.gradle'
if (file('repositories.gradle.kts').exists()) {
apply from: 'repositories.gradle.kts'
} else if (file('repositories.gradle').exists()) {
apply from: 'repositories.gradle'
} else {
logger.error("Neither repositories.gradle.kts nor repositories.gradle was found, make sure you extracted the full ExampleMod template.")
throw new RuntimeException("Missing repositories.gradle[.kts]")
}
configurations {
runtimeClasspath.extendsFrom(runtimeOnlyNonPublishable)
@@ -519,9 +575,6 @@ repositories {
maven {
name 'Overmind forge repo mirror'
url 'https://gregtech.overminddl1.com/'
mavenContent {
excludeGroup("net.minecraftforge") // missing the `universal` artefact
}
}
maven {
name = "GTNH Maven"
@@ -536,24 +589,34 @@ repositories {
}
}
if (includeWellKnownRepositories.toBoolean()) {
maven {
name "CurseMaven"
url "https://cursemaven.com"
content {
exclusiveContent {
forRepository {
maven {
name "CurseMaven"
url "https://cursemaven.com"
}
}
filter {
includeGroup "curse.maven"
}
}
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
maven {
name = "ic2"
url = "https://maven.ic2.player.to/"
metadataSources {
mavenPom()
artifact()
url = getURL("https://maven.ic2.player.to/", "https://maven2.ic2.player.to/")
content {
includeGroup "net.industrial-craft"
}
}
maven {
name = "ic2-mirror"
url = "https://maven2.ic2.player.to/"
metadataSources {
mavenPom()
artifact()
@@ -568,9 +631,12 @@ repositories {
def mixinProviderGroup = "io.github.legacymoddingmc"
def mixinProviderModule = "unimixins"
def mixinProviderVersion = "0.1.6"
def mixinProviderVersion = "0.1.13"
def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}:${mixinProviderVersion}"
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
ext.mixinProviderSpec = mixinProviderSpec
def mixingConfigRefMap = 'mixins.' + modId + '.refmap.json'
dependencies {
if (usesMixins.toBoolean()) {
@@ -583,7 +649,7 @@ dependencies {
}
}
if (usesMixins.toBoolean()) {
implementation(mixinProviderSpec)
implementation(modUtils.enableMixins(mixinProviderSpec, mixingConfigRefMap))
} else if (forceEnableMixins.toBoolean()) {
runtimeOnlyNonPublishable(mixinProviderSpec)
}
@@ -609,12 +675,32 @@ configurations.all {
}
}
apply from: 'dependencies.gradle'
dependencies {
constraints {
def minGtnhLibVersion = "0.0.13"
implementation("com.github.GTNewHorizons:GTNHLib:${minGtnhLibVersion}") {
because("fixes duplicate mod errors in java 17 configurations using old gtnhlib")
}
runtimeOnly("com.github.GTNewHorizons:GTNHLib:${minGtnhLibVersion}") {
because("fixes duplicate mod errors in java 17 configurations using old gtnhlib")
}
devOnlyNonPublishable("com.github.GTNewHorizons:GTNHLib:${minGtnhLibVersion}") {
because("fixes duplicate mod errors in java 17 configurations using old gtnhlib")
}
runtimeOnlyNonPublishable("com.github.GTNewHorizons:GTNHLib:${minGtnhLibVersion}") {
because("fixes duplicate mod errors in java 17 configurations using old gtnhlib")
}
}
}
def mixingConfigRefMap = 'mixins.' + modId + '.refmap.json'
def mixinTmpDir = buildDir.path + File.separator + 'tmp' + File.separator + 'mixins'
def refMap = "${mixinTmpDir}" + File.separator + mixingConfigRefMap
def mixinSrg = "${mixinTmpDir}" + File.separator + "mixins.srg"
if (file('dependencies.gradle.kts').exists()) {
apply from: 'dependencies.gradle.kts'
} else if (file('dependencies.gradle').exists()) {
apply from: 'dependencies.gradle'
} else {
logger.error("Neither dependencies.gradle.kts nor dependencies.gradle was found, make sure you extracted the full ExampleMod template.")
throw new RuntimeException("Missing dependencies.gradle[.kts]")
}
tasks.register('generateAssets') {
group = "GTNH Buildscript"
@@ -646,46 +732,17 @@ tasks.register('generateAssets') {
}
if (usesMixins.toBoolean()) {
tasks.named("reobfJar", ReobfuscatedJar).configure {
extraSrgFiles.from(mixinSrg)
}
tasks.named("processResources").configure {
dependsOn("generateAssets")
}
tasks.named("compileJava", JavaCompile).configure {
doFirst {
new File(mixinTmpDir).mkdirs()
}
options.compilerArgs += [
"-AreobfSrgFile=${tasks.reobfJar.srg.get().asFile}",
"-AoutSrgFile=${mixinSrg}",
"-AoutRefMapFile=${refMap}",
// Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
"-XDenableSunApiLintControl",
"-XDignore.symbol.file"
]
}
pluginManager.withPlugin('org.jetbrains.kotlin.kapt') {
kapt {
correctErrorTypes = true
javacOptions {
option("-AreobfSrgFile=${tasks.reobfJar.srg.get().asFile}")
option("-AoutSrgFile=$mixinSrg")
option("-AoutRefMapFile=$refMap")
}
}
tasks.configureEach { task ->
if (task.name == "kaptKotlin") {
task.doFirst {
new File(mixinTmpDir).mkdirs()
}
}
}
}
}
tasks.named("processResources", ProcessResources).configure {
@@ -703,7 +760,6 @@ tasks.named("processResources", ProcessResources).configure {
}
if (usesMixins.toBoolean()) {
from refMap
dependsOn("compileJava", "compileScala")
}
}
@@ -722,23 +778,14 @@ ext.java17PatchDependenciesCfg = configurations.create("java17PatchDependencies"
}
dependencies {
def lwjgl3ifyVersion = '1.3.3'
def asmVersion = '9.4'
def lwjgl3ifyVersion = '1.5.7'
if (modId != 'lwjgl3ify') {
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
}
if (modId != 'hodgepodge') {
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.2.4')
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.35')
}
java17PatchDependencies('net.minecraft:launchwrapper:1.15') {transitive = false}
java17PatchDependencies("org.ow2.asm:asm:${asmVersion}")
java17PatchDependencies("org.ow2.asm:asm-commons:${asmVersion}")
java17PatchDependencies("org.ow2.asm:asm-tree:${asmVersion}")
java17PatchDependencies("org.ow2.asm:asm-analysis:${asmVersion}")
java17PatchDependencies("org.ow2.asm:asm-util:${asmVersion}")
java17PatchDependencies('org.ow2.asm:asm-deprecated:7.1')
java17PatchDependencies("org.apache.commons:commons-lang3:3.12.0")
java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
}
@@ -802,7 +849,7 @@ public abstract class RunHotswappableMinecraftTask extends RunMinecraftTask {
public boolean setEnableHotswap(boolean enable) { enableHotswap = enable }
@Inject
public RunHotswappableMinecraftTask(Side side, String superTask, org.gradle.api.invocation.Gradle gradle) {
public RunHotswappableMinecraftTask(Distribution side, String superTask, org.gradle.api.invocation.Gradle gradle) {
super(side, gradle)
this.lwjglVersion = 3
@@ -811,7 +858,7 @@ public abstract class RunHotswappableMinecraftTask extends RunMinecraftTask {
this.extraJvmArgs.addAll(project.provider(() -> enableHotswap ? project.hotswapJvmArgs : []))
this.classpath(project.java17PatchDependenciesCfg)
if (side == Side.CLIENT) {
if (side == Distribution.CLIENT) {
this.classpath(project.minecraftTasks.lwjgl3Configuration)
}
// Use a raw provider instead of map to not create a dependency on the task
@@ -821,9 +868,21 @@ public abstract class RunHotswappableMinecraftTask extends RunMinecraftTask {
}
this.classpath(project.java17DependenciesCfg)
}
public void setup(Project project) {
super.setup(project)
if (project.usesMixins.toBoolean()) {
this.extraJvmArgs.addAll(project.provider(() -> {
def mixinCfg = project.configurations.detachedConfiguration(project.dependencies.create(project.mixinProviderSpec))
mixinCfg.canBeConsumed = false
mixinCfg.transitive = false
enableHotswap ? ["-javaagent:" + mixinCfg.singleFile.absolutePath] : []
}))
}
}
}
def runClient17Task = tasks.register("runClient17", RunHotswappableMinecraftTask, Side.CLIENT, "runClient")
def runClient17Task = tasks.register("runClient17", RunHotswappableMinecraftTask, Distribution.CLIENT, "runClient")
runClient17Task.configure {
setup(project)
group = "Modded Minecraft"
@@ -834,7 +893,7 @@ runClient17Task.configure {
userUUID = minecraft.userUUID
}
def runServer17Task = tasks.register("runServer17", RunHotswappableMinecraftTask, Side.SERVER, "runServer")
def runServer17Task = tasks.register("runServer17", RunHotswappableMinecraftTask, Distribution.DEDICATED_SERVER, "runServer")
runServer17Task.configure {
setup(project)
group = "Modded Minecraft"
@@ -875,11 +934,6 @@ tasks.named("jar", Jar).configure {
}
if (usesShadowedDependencies.toBoolean()) {
tasks.register('relocateShadowJar', ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = modGroup + ".shadow"
enabled = relocateShadowedDependencies.toBoolean()
}
tasks.named("shadowJar", ShadowJar).configure {
manifest {
attributes(getManifestAttributes())
@@ -895,7 +949,8 @@ if (usesShadowedDependencies.toBoolean()) {
]
archiveClassifier.set('dev')
if (relocateShadowedDependencies.toBoolean()) {
dependsOn(relocateShadowJar)
relocationPrefix = modGroup + ".shadow"
enableRelocation = true
}
}
configurations.runtimeElements.outgoing.artifacts.clear()
@@ -969,6 +1024,9 @@ idea {
}
}
runConfigurations {
"0. Build and Test"(Gradle) {
taskNames = ["build"]
}
"1. Run Client"(Gradle) {
taskNames = ["runClient"]
}
@@ -1088,6 +1146,14 @@ tasks.named("processIdeaSettings").configure {
dependsOn("injectTags")
}
tasks.named("ideVirtualMainClasses").configure {
// Make IntelliJ "Build project" build the mod jars
dependsOn("jar", "reobfJar")
if (!disableSpotless) {
dependsOn("spotlessCheck")
}
}
// workaround variable hiding in pom processing
def projectConfigs = project.configurations
@@ -1106,14 +1172,15 @@ publishing {
version = System.getenv("RELEASE_VERSION") ?: identifiedVersion
}
}
repositories {
maven {
url = "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases"
allowInsecureProtocol = true
credentials {
username = System.getenv("MAVEN_USER") ?: "NONE"
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
if (usesMavenPublishing.toBoolean() && System.getenv("MAVEN_USER") != null) {
maven {
url = mavenPublishUrl
allowInsecureProtocol = mavenPublishUrl.startsWith("http://") // Mostly for the GTNH maven
credentials {
username = System.getenv("MAVEN_USER") ?: "NONE"
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
}
}
}
}
@@ -1228,7 +1295,7 @@ def addCurseForgeRelation(String type, String name) {
// Updating
def buildscriptGradleVersion = "8.0.2"
def buildscriptGradleVersion = "8.5"
tasks.named('wrapper', Wrapper).configure {
gradleVersion = buildscriptGradleVersion
@@ -1260,6 +1327,23 @@ if (!project.getGradle().startParameter.isOffline() && !Boolean.getBoolean('DISA
}
}
// If you want to add more cases to this task, implement them as arguments if total amount to print gets too large
tasks.register('faq') {
group = 'GTNH Buildscript'
description = 'Prints frequently asked questions about building a project'
doLast {
print("If your build fails to fetch dependencies, run './gradlew updateDependencies'. " +
"Or you can manually check if the versions are still on the distributing sites - " +
"the links can be found in repositories.gradle and build.gradle:repositories, " +
"but not build.gradle:buildscript.repositories - those ones are for gradle plugin metadata.\n\n" +
"If your build fails to recognize the syntax of new Java versions, enable Jabel in your " +
"gradle.properties. See how it's done in GTNH ExampleMod/gradle.properties. " +
"However, keep in mind that Jabel enables only syntax features, but not APIs that were introduced in " +
"Java 9 or later.")
}
}
static URL availableBuildScriptUrl() {
new URL("https://raw.githubusercontent.com/GTNewHorizons/ExampleMod1.7.10/master/build.gradle")
}
@@ -1317,8 +1401,14 @@ boolean isNewBuildScriptVersionAvailable() {
String currentBuildScript = getFile("build.gradle").getText()
String currentBuildScriptHash = getVersionHash(currentBuildScript)
String availableBuildScript = availableBuildScriptUrl().newInputStream(parameters).getText()
String availableBuildScriptHash = getVersionHash(availableBuildScript)
String availableBuildScriptHash
try {
String availableBuildScript = availableBuildScriptUrl().newInputStream(parameters).getText()
availableBuildScriptHash = getVersionHash(availableBuildScript)
} catch (IOException e) {
logger.warn("Could not check for buildscript update availability: {}", e.message)
return false
}
boolean isUpToDate = currentBuildScriptHash.empty || availableBuildScriptHash.empty || currentBuildScriptHash == availableBuildScriptHash
return !isUpToDate
@@ -1483,3 +1573,36 @@ def getSecondaryArtifacts() {
if (apiPackage) secondaryArtifacts += [apiJar]
return secondaryArtifacts
}
def getURL(String main, String fallback) {
return pingURL(main, 10000) ? main : fallback
}
// credit: https://stackoverflow.com/a/3584332
def pingURL(String url, int timeout) {
url = url.replaceFirst("^https", "http") // Otherwise an exception may be thrown on invalid SSL certificates.
try {
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection()
connection.setConnectTimeout(timeout)
connection.setReadTimeout(timeout)
connection.setRequestMethod("HEAD")
int responseCode = connection.getResponseCode()
return 200 <= responseCode && responseCode <= 399
} catch (IOException ignored) {
return false
}
}
// For easier scripting of things that require variables defined earlier in the buildscript
if (file('addon.late.gradle.kts').exists()) {
apply from: 'addon.late.gradle.kts'
} else if (file('addon.late.gradle').exists()) {
apply from: 'addon.late.gradle'
}
// File for local tweaks not commited to Git
if (file('addon.late.local.gradle.kts').exists()) {
apply from: 'addon.late.local.gradle.kts'
} else if (file('addon.late.local.gradle').exists()) {
apply from: 'addon.late.local.gradle'
}
+4 -4
View File
@@ -1,9 +1,9 @@
// Add your dependencies here
dependencies {
compile 'com.github.GTNewHorizons:GT5-Unofficial:5.09.42.65-pre:dev'
compile 'com.github.GTNewHorizons:Baubles:1.0.1.14:dev'
api 'com.github.GTNewHorizons:GT5-Unofficial:5.09.44.91:dev'
api 'com.github.GTNewHorizons:Baubles:1.0.2:dev'
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'
}
Binary file not shown.
+2 -1
View File
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+10 -6
View File
@@ -85,9 +85,6 @@ done
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && 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.
MAX_FD=maximum
@@ -133,10 +130,13 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
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
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
@@ -144,7 +144,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
@@ -152,7 +152,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
@@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
done
fi
# 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"'
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
+1 -25
View File
@@ -1,28 +1,4 @@
// Add any additional repositiroes for your dependencies here
// Add any additional repositories for your dependencies here
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'
}
}
+6 -4
View File
@@ -19,12 +19,16 @@ import cpw.mods.fml.relauncher.Side;
import emt.command.CommandOutputs;
import emt.init.EMTEntities;
import emt.init.Registry;
import emt.nei.NEI_Config;
import emt.network.PacketEMTKeys;
import emt.network.PacketNodeInfo;
import emt.proxy.CommonProxy;
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(
modid = EMT.MOD_ID,
@@ -85,8 +89,6 @@ public class EMT {
}
EMTDungeonChestGenerator.generateLoot();
EMTEntities.registerEMTEntities();
NEI_Config.Init();
}
@Mod.EventHandler
@@ -10,12 +10,12 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import thaumcraft.client.fx.ParticleEngine;
import thaumcraft.client.fx.particles.FXSparkle;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.tile.TileElectricCloud;
import thaumcraft.client.fx.ParticleEngine;
import thaumcraft.client.fx.particles.FXSparkle;
public class BlockElectricCloud extends BlockBase {
@@ -21,7 +21,6 @@ import com.gtnewhorizons.modularui.api.UIInfos;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.gthandler.common.implementations.automation.EssentiaFiller;
import emt.tile.TileEntityEtherealMacerator;
import emt.tile.TileEntityIndustrialWandRecharge;
import ic2.api.item.IC2Items;
@@ -73,8 +72,6 @@ public class BlockMachines extends BlockBaseContainer {
return new TileEntityIndustrialWandRecharge();
} else if (meta == 1) {
return new TileEntityEtherealMacerator();
} else if (meta == 2) {
return new EssentiaFiller();
}
return super.createTileEntity(world, meta);
}
@@ -10,11 +10,11 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.Explosion;
import net.minecraft.world.World;
import thaumcraft.common.blocks.BlockAiry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.tile.TileEntityPortableNode;
import thaumcraft.common.blocks.BlockAiry;
public class BlockPortableNode extends BlockAiry {
@@ -12,9 +12,9 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagString;
import thaumcraft.api.aspects.Aspect;
import emt.util.EMTEssentiasOutputs;
import emt.util.EMTTextHelper;
import thaumcraft.api.aspects.Aspect;
public class CommandOutputs extends CommandBase {
@@ -14,11 +14,11 @@ import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import thaumcraft.common.Thaumcraft;
import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import io.netty.buffer.ByteBuf;
import thaumcraft.common.Thaumcraft;
public class EntityEnergyBall extends Entity implements IProjectile, IEntityAdditionalSpawnData {
@@ -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,160 +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.fluids.FluidStack;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
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;
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, byte aSide, ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte 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 thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.aspects.IAspectContainer;
import thaumcraft.api.aspects.IEssentiaTransport;
import emt.gthandler.common.implementations.EssentiaHatch;
import emt.tile.TileEntityEMT;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
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_);
}
}
@@ -2,181 +2,24 @@ package emt.gthandler.common.loader;
import static emt.command.CommandOutputs.mkbook;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.config.ConfigItems;
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 gregtech.api.enums.GT_Values;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import thaumcraft.common.config.ConfigItems;
public class EMT_GT_Loader implements Runnable {
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;
@Override
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(
aIDoffset + GT_Values.VN.length + 2,
"Research Completer",
@@ -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.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;
}
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex,
boolean aActive, boolean aRedstone) {
if (aSide == aFacing) {
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 thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.visnet.VisNetHandler;
import thaumcraft.common.config.ConfigBlocks;
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;
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, byte aSide, byte aFacing, byte aColorIndex,
boolean aActive, boolean aRedstone) {
if (aSide == aFacing) {
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 = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX * 3;
final int zDir = ForgeDirection.getOrientation(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();
* }
*/
}
+8 -3
View File
@@ -4,16 +4,21 @@ import static thaumcraft.api.ThaumcraftApi.registerObjectTag;
import net.minecraft.block.Block;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
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.block.BlockSolars;
import emt.item.block.ItemBlockElectricCloud;
import emt.item.block.ItemBlockEssentiaGenerators;
import emt.item.block.ItemBlockMachines;
import emt.item.block.ItemBlockSolars;
import emt.tile.solar.Solars;
import ic2.api.item.IC2Items;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
public class EMTBlocks {
+12 -2
View File
@@ -6,7 +6,6 @@ import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.ThaumcraftApi;
import cpw.mods.fml.common.registry.GameRegistry;
import emt.EMT;
import emt.item.ItemElectricScribingTools;
@@ -25,7 +24,13 @@ import emt.item.armor.wings.ItemFeatherWing;
import emt.item.armor.wings.ItemNanoWing;
import emt.item.armor.wings.ItemQuantumWing;
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.ItemElectricThorHammer;
import emt.item.tool.ItemThorHammer;
@@ -39,6 +44,7 @@ import emt.item.tool.omnitool.ItemOmnitoolDiamond;
import emt.item.tool.omnitool.ItemOmnitoolIron;
import emt.item.tool.omnitool.ItemOmnitoolThaumium;
import ic2.core.init.InternalName;
import thaumcraft.api.ThaumcraftApi;
public class EMTItems {
@@ -58,6 +64,7 @@ public class EMTItems {
public static Item christmasFocus;
public static Item shieldFocus;
public static Item energyBallFocus;
public static Item maintenanceFocus;
public static Item electricGoggles;
public static Item streamChainsaw;
public static Item rockbreakerDrill;
@@ -197,5 +204,8 @@ public class EMTItems {
energyBallFocus = new ItemEnergyBallFocus();
GameRegistry.registerItem(energyBallFocus, "EnergyBallFocus");
maintenanceFocus = new ItemMaintenanceFocus();
GameRegistry.registerItem(maintenanceFocus, "MaintenanceFocus");
}
}
+25 -11
View File
@@ -12,6 +12,18 @@ import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.registry.GameRegistry;
import emt.EMT;
import emt.util.EMTConfigHandler;
import emt.util.EMTCraftingAspects;
import emt.util.EMTResearchAspects;
import gregtech.api.enums.ItemList;
import ic2.api.item.IC2Items;
import ic2.api.recipe.IRecipeInput;
import ic2.api.recipe.RecipeInputItemStack;
import ic2.api.recipe.Recipes;
import ic2.core.BasicMachineRecipeManager;
import ic2.core.Ic2Items;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.crafting.CrucibleRecipe;
@@ -21,17 +33,6 @@ import thaumcraft.api.crafting.ShapelessArcaneRecipe;
import thaumcraft.common.blocks.ItemJarNode;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.config.ConfigItems;
import cpw.mods.fml.common.registry.GameRegistry;
import emt.EMT;
import emt.util.EMTConfigHandler;
import emt.util.EMTCraftingAspects;
import emt.util.EMTResearchAspects;
import ic2.api.item.IC2Items;
import ic2.api.recipe.IRecipeInput;
import ic2.api.recipe.RecipeInputItemStack;
import ic2.api.recipe.Recipes;
import ic2.core.BasicMachineRecipeManager;
import ic2.core.Ic2Items;
public class EMTRecipes {
@@ -67,6 +68,7 @@ public class EMTRecipes {
public static InfusionRecipe thaumicNanoHelmet;
public static InfusionRecipe explosionFocus;
public static InfusionRecipe shieldFocus;
public static InfusionRecipe maintenanceFocus;
public static InfusionRecipe potentiaGenerator;
public static InfusionRecipe streamChainsaw;
public static InfusionRecipe rockbreakerDrill;
@@ -534,6 +536,18 @@ public class EMTRecipes {
new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian),
new ItemStack(Blocks.obsidian) });
maintenanceFocus = addInfusionCraftingRecipe(
"Wand Focus: Maintenance",
new ItemStack(EMTItems.maintenanceFocus),
6,
EMTCraftingAspects.maintenanceFocus,
new ItemStack(EMTItems.chargeFocus),
new ItemStack[] { new ItemStack(ConfigItems.itemShard, 1, 5),
new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 3),
new ItemStack(EMTItems.itemEMTItems, 1, 9), new ItemStack(ConfigItems.itemShard, 1, 2),
new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 0),
ItemList.Duct_Tape.get(1) });
potentiaGenerator = addInfusionCraftingRecipe(
"Potentia Generator",
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
+13 -2
View File
@@ -3,13 +3,13 @@ package emt.init;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import thaumcraft.api.research.ResearchCategories;
import thaumcraft.api.research.ResearchPage;
import emt.EMT;
import emt.util.EMTConfigHandler;
import emt.util.EMTResearchAspects;
import emt.util.EMTResearchItem;
import ic2.api.item.IC2Items;
import thaumcraft.api.research.ResearchCategories;
import thaumcraft.api.research.ResearchPage;
public class EMTResearches {
@@ -648,6 +648,17 @@ public class EMTResearches {
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.chargeFocus));
}
if (!EMTConfigHandler.maintenanceFocusResearch) {
new EMTResearchItem(
"Wand Focus: Maintenance",
EMTResearchAspects.maintenanceFocus,
7,
4,
4,
new ItemStack(EMTItems.maintenanceFocus)).setParents("Wand Focus: Charging").setConcealed()
.registerResearchItem()
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.maintenanceFocus));
}
if (!EMTConfigHandler.wandChargeFocusResearch) {
new EMTResearchItem(
"Wand Focus: Wand Charging",
-2
View File
@@ -1,7 +1,6 @@
package emt.init;
import cpw.mods.fml.common.registry.GameRegistry;
import emt.gthandler.common.implementations.automation.EssentiaFiller;
import emt.tile.TileElectricCloud;
import emt.tile.TileEntityEtherealMacerator;
import emt.tile.TileEntityIndustrialWandRecharge;
@@ -28,7 +27,6 @@ public class EMTTiles {
// Machinery
GameRegistry.registerTileEntity(TileEntityIndustrialWandRecharge.class, "tileentityindustrialwandrecharge");
GameRegistry.registerTileEntity(TileEntityEtherealMacerator.class, "tileentityetherealmacerator");
GameRegistry.registerTileEntity(EssentiaFiller.class, "EssentiaFillerTE");
// Solars
// legacy support
@@ -14,6 +14,13 @@ import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.oredict.OreDictionary;
import emt.EMT;
import emt.util.EMTResearchItem;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Utility;
import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.AspectList;
@@ -23,13 +30,6 @@ import thaumcraft.api.crafting.InfusionRecipe;
import thaumcraft.api.crafting.ShapedArcaneRecipe;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.api.research.ResearchPage;
import emt.EMT;
import emt.util.EMTResearchItem;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Utility;
public class EMT_GTNH_Recipes_And_Researches implements Runnable {
+4 -3
View File
@@ -8,12 +8,13 @@ public class Registry {
private static final EMT_GT_Loader gtloader = new EMT_GT_Loader();
public static void registerPreInit() {}
public static void registerInit() {
public static void registerPreInit() {
EMTBlocks.registerBlocks();
EMTItems.registerItems();
EMTTiles.registerTileEntities();
}
public static void registerInit() {
gtloader.run();
EMTRecipes.registerEarlyRecipes();
}
@@ -8,13 +8,13 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import thaumcraft.api.IScribeTools;
import thaumcraft.common.items.ItemInkwell;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import thaumcraft.api.IScribeTools;
import thaumcraft.common.items.ItemInkwell;
public class ItemElectricScribingTools extends ItemInkwell implements IElectricItem, IScribeTools {
+1 -1
View File
@@ -11,7 +11,6 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import thaumcraft.api.IRunicArmor;
import baubles.api.BaubleType;
import baubles.api.IBauble;
import cpw.mods.fml.relauncher.Side;
@@ -20,6 +19,7 @@ import emt.EMT;
import emt.util.EMTConfigHandler;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import thaumcraft.api.IRunicArmor;
public class ItemIC2Baubles extends ItemBase implements IBauble, IRunicArmor {
+11 -4
View File
@@ -12,17 +12,21 @@ import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
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.Vec3;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.player.ArrowNockEvent;
import thaumcraft.common.config.Config;
import thaumcraft.common.lib.utils.InventoryUtils;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import thaumcraft.common.config.Config;
import thaumcraft.common.lib.utils.InventoryUtils;
public class ItemMaterials extends Item {
@@ -110,7 +114,10 @@ public class ItemMaterials extends Item {
public void addInformation(ItemStack stack, EntityPlayer player, List result, boolean advanced) {
switch (stack.getItemDamage()) {
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;
}
}
+3 -3
View File
@@ -16,15 +16,15 @@ import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IIcon;
import thaumcraft.api.IRunicArmor;
import thaumcraft.api.IWarpingGear;
import thaumcraft.api.ThaumcraftApiHelper;
import baubles.api.BaubleType;
import baubles.api.IBauble;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.util.EMTTextHelper;
import thaumcraft.api.IRunicArmor;
import thaumcraft.api.IWarpingGear;
import thaumcraft.api.ThaumcraftApiHelper;
public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRunicArmor {
@@ -18,11 +18,6 @@ import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.living.LivingEvent;
import net.minecraftforge.event.entity.living.LivingFallEvent;
import thaumcraft.api.IRunicArmor;
import thaumcraft.api.IVisDiscountGear;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.items.armor.Hover;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -33,6 +28,11 @@ import emt.util.EMTTextHelper;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import ic2.api.item.IMetalArmor;
import thaumcraft.api.IRunicArmor;
import thaumcraft.api.IVisDiscountGear;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.items.armor.Hover;
public class ItemElectricBootsTraveller extends ItemArmor
implements IRunicArmor, IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor {
@@ -21,7 +21,6 @@ import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.living.LivingFallEvent;
import thaumcraft.api.IRunicArmor;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@@ -37,6 +36,7 @@ import ic2.core.audio.PositionSpec;
import ic2.core.init.InternalName;
import ic2.core.item.armor.ItemArmorElectric;
import ic2.core.util.StackUtil;
import thaumcraft.api.IRunicArmor;
public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements IRunicArmor {
@@ -15,11 +15,6 @@ import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.ISpecialArmor;
import thaumcraft.api.IGoggles;
import thaumcraft.api.IRunicArmor;
import thaumcraft.api.IVisDiscountGear;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.nodes.IRevealer;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
@@ -28,6 +23,11 @@ import emt.util.EMTTextHelper;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import ic2.api.item.IMetalArmor;
import thaumcraft.api.IGoggles;
import thaumcraft.api.IRunicArmor;
import thaumcraft.api.IVisDiscountGear;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.nodes.IRevealer;
public class ItemElectricGoggles extends ItemArmor
implements IRunicArmor, IElectricItem, IVisDiscountGear, IGoggles, IRevealer, IMetalArmor, ISpecialArmor {
@@ -10,7 +10,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import thaumcraft.api.IRunicArmor;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
@@ -19,6 +18,7 @@ import emt.util.EMTConfigHandler;
import ic2.api.item.ElectricItem;
import ic2.core.IC2;
import ic2.core.util.StackUtil;
import thaumcraft.api.IRunicArmor;
public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
@@ -8,13 +8,13 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import thaumcraft.api.IRepairable;
import thaumcraft.api.IVisDiscountGear;
import thaumcraft.api.aspects.Aspect;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.util.EMTTextHelper;
import thaumcraft.api.IRepairable;
import thaumcraft.api.IVisDiscountGear;
import thaumcraft.api.aspects.Aspect;
public class ItemThaumiumReinforcedWing extends ItemFeatherWing implements IVisDiscountGear, IRepairable {
@@ -10,11 +10,11 @@ import net.minecraft.util.StatCollector;
import org.lwjgl.input.Keyboard;
import thaumcraft.api.aspects.Aspect;
import emt.util.EMTConfigHandler;
import emt.util.EMTEssentiasOutputs;
import emt.util.EMTTextHelper;
import gregtech.api.enums.GT_Values;
import thaumcraft.api.aspects.Aspect;
public class ItemBlockEssentiaGenerators extends ItemBlock {
@@ -11,12 +11,12 @@ import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.wands.ItemFocusBasic;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.wands.ItemFocusBasic;
public abstract class ItemBaseFocus extends ItemFocusBasic {
@@ -7,13 +7,13 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import emt.util.EMTConfigHandler;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.wands.FocusUpgradeType;
import thaumcraft.common.items.wands.ItemWandCasting;
import emt.util.EMTConfigHandler;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
public class ItemChargeFocus extends ItemBaseFocus {
@@ -5,11 +5,11 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import emt.entity.EntityLaser;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.wands.FocusUpgradeType;
import thaumcraft.common.items.wands.ItemWandCasting;
import emt.entity.EntityLaser;
public class ItemExplosionFocus extends ItemBaseFocus {
@@ -0,0 +1,77 @@
package emt.item.focus;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.metatileentity.BaseMetaTileEntity;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Maintenance;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.wands.FocusUpgradeType;
import thaumcraft.common.items.wands.ItemWandCasting;
public class ItemMaintenanceFocus extends ItemBaseFocus {
private static final AspectList visCost = new AspectList().add(Aspect.FIRE, 2500).add(Aspect.EARTH, 2500)
.add(Aspect.ORDER, 2500);
public ItemMaintenanceFocus() {
super("maintenance");
}
@Override
public int getFocusColor(ItemStack stack) {
return 0xC0C0C0;
}
@Override
public AspectList getVisCost(ItemStack focusstack) {
return visCost;
}
@Override
public String getSortingHelper(ItemStack itemstack) {
return "MAINTENANCE";
}
@Override
public FocusUpgradeType[] getPossibleUpgradesByRank(ItemStack focusstack, int rank) {
return new FocusUpgradeType[] { FocusUpgradeType.frugal };
}
@Override
public ItemStack onFocusRightClick(ItemStack itemStack, World world, EntityPlayer player,
MovingObjectPosition mop) {
if (mop == null) return itemStack;
ItemWandCasting wand = (ItemWandCasting) itemStack.getItem();
if (!world.isRemote) {
if (!player.isSneaking()) {
return itemStack;
}
TileEntity hatchCandidateTile = world.getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
if (hatchCandidateTile instanceof BaseMetaTileEntity) {
IMetaTileEntity hatchCandidateMetaTile = ((BaseMetaTileEntity) hatchCandidateTile).getMetaTileEntity();
if (hatchCandidateMetaTile instanceof GT_MetaTileEntity_Hatch_Maintenance) {
GT_MetaTileEntity_Hatch_Maintenance hatch = (GT_MetaTileEntity_Hatch_Maintenance) hatchCandidateMetaTile;
if (player.capabilities.isCreativeMode
|| wand.consumeAllVis(itemStack, player, getVisCost(itemStack), true, true)) {
hatch.mCrowbar = true;
hatch.mScrewdriver = true;
hatch.mHardHammer = true;
hatch.mSolderingTool = true;
hatch.mWrench = true;
hatch.mSoftHammer = true;
}
}
}
}
player.swingItem();
return itemStack;
}
}
@@ -8,11 +8,11 @@ import net.minecraft.potion.PotionEffect;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import emt.entity.EntityShield;
import ic2.core.IC2;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.common.items.wands.ItemWandCasting;
import emt.entity.EntityShield;
import ic2.core.IC2;
public class ItemShieldFocus extends ItemBaseFocus {
@@ -5,12 +5,12 @@ import java.util.Map.Entry;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import emt.util.EMTConfigHandler;
import ic2.api.item.ElectricItem;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.wands.FocusUpgradeType;
import thaumcraft.common.items.wands.ItemWandCasting;
import emt.util.EMTConfigHandler;
import ic2.api.item.ElectricItem;
public class ItemWandChargingFocus extends ItemBaseFocus {
@@ -13,15 +13,15 @@ import net.minecraft.util.IIcon;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.blocks.BlockCustomPlant;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.lib.utils.Utils;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.blocks.BlockCustomPlant;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.lib.utils.Utils;
public class ItemElectricHoeGrowth extends ItemHoe implements IElectricItem {
@@ -16,11 +16,11 @@ import net.minecraft.util.MovingObjectPosition.MovingObjectType;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import thaumcraft.api.IRepairable;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.util.EMTTextHelper;
import thaumcraft.api.IRepairable;
public class ItemThorHammer extends ItemSword implements IRepairable {
@@ -12,12 +12,12 @@ import net.minecraft.world.World;
import org.lwjgl.input.Keyboard;
import thaumcraft.api.IRepairable;
import thaumcraft.common.entities.projectile.EntityAlumentum;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.util.EMTTextHelper;
import thaumcraft.api.IRepairable;
import thaumcraft.common.entities.projectile.EntityAlumentum;
public class ItemThorHammerBroken extends ItemSword implements IRepairable {
@@ -1,6 +1,6 @@
package emt.item.tool.chainsaw;
import java.awt.*;
import java.awt.Color;
import java.util.ArrayList;
import net.minecraft.block.Block;
@@ -10,15 +10,15 @@ import net.minecraft.item.EnumAction;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import thaumcraft.common.lib.network.PacketHandler;
import thaumcraft.common.lib.network.fx.PacketFXBlockBubble;
import thaumcraft.common.lib.utils.BlockUtils;
import thaumcraft.common.lib.utils.Utils;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import ic2.api.item.ElectricItem;
import thaumcraft.common.lib.network.PacketHandler;
import thaumcraft.common.lib.network.fx.PacketFXBlockBubble;
import thaumcraft.common.lib.utils.BlockUtils;
import thaumcraft.common.lib.utils.Utils;
public class ItemStreamChainsaw extends ItemThaumiumChainsaw {
@@ -23,14 +23,14 @@ import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.event.ForgeEventFactory;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.entities.EntityFollowingItem;
import thaumcraft.common.lib.utils.BlockUtils;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
import emt.util.EMTConfigHandler;
import ic2.api.item.ElectricItem;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.entities.EntityFollowingItem;
import thaumcraft.common.lib.utils.BlockUtils;
public class ItemRockbreakerDrill extends ItemThaumiumDrill {
+7 -37
View File
@@ -1,19 +1,20 @@
package emt.nei;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.item.ItemStack;
import codechicken.nei.api.API;
import codechicken.nei.api.IConfigureNEI;
import cpw.mods.fml.common.event.FMLInterModComms;
import emt.EMT;
import emt.init.EMTItems;
public class NEI_Config implements IConfigureNEI {
public static boolean isAdded = true;
@Override
public void loadConfig() {
NEI_Config.isAdded = false;
NEI_Config.isAdded = true;
API.hideItem(new ItemStack(EMTItems.itemEMTItems, 1, 16));
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
@@ -25,35 +26,4 @@ public class NEI_Config implements IConfigureNEI {
public String getVersion() {
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);
}
}
@@ -11,17 +11,6 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.research.ResearchCategories;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.config.ConfigItems;
import thaumcraft.common.lib.research.ResearchManager;
import thaumcraft.common.lib.research.ResearchNoteData;
import thaumcraft.common.tiles.TileNode;
import com.gtnewhorizon.structurelib.structure.IStructureDefinition;
import com.gtnewhorizon.structurelib.structure.StructureDefinition;
@@ -37,6 +26,16 @@ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_EnhancedMul
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
import gregtech.api.util.GT_Utility;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.research.ResearchCategories;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.config.ConfigItems;
import thaumcraft.common.lib.research.ResearchManager;
import thaumcraft.common.lib.research.ResearchNoteData;
import thaumcraft.common.tiles.TileNode;
public class GT_MetaTileEntity_ResearchCompleter
extends GT_MetaTileEntity_EnhancedMultiBlockBase<GT_MetaTileEntity_ResearchCompleter> {
@@ -132,9 +131,9 @@ public class GT_MetaTileEntity_ResearchCompleter
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
if (aBaseMetaTileEntity.isClientSide()) {
if (aBaseMetaTileEntity.isActive()) {
int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;
int yDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetY;
int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
int xDir = aBaseMetaTileEntity.getBackFacing().offsetX;
int yDir = aBaseMetaTileEntity.getBackFacing().offsetY;
int zDir = aBaseMetaTileEntity.getBackFacing().offsetZ;
double xCoord = aBaseMetaTileEntity.getXCoord() + 0.5;
double yCoord = aBaseMetaTileEntity.getYCoord() + 0.5;
double zCoord = aBaseMetaTileEntity.getZCoord() + 0.5;
@@ -167,9 +166,9 @@ public class GT_MetaTileEntity_ResearchCompleter
syncTimer--;
IGregTechTileEntity aBaseMetaTileEntity = this.getBaseMetaTileEntity();
int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;
int yDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetY;
int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
int xDir = aBaseMetaTileEntity.getBackFacing().offsetX;
int yDir = aBaseMetaTileEntity.getBackFacing().offsetY;
int zDir = aBaseMetaTileEntity.getBackFacing().offsetZ;
int i = 1;
// Loop through node spaces and drain them from front to back
@@ -331,9 +330,9 @@ public class GT_MetaTileEntity_ResearchCompleter
}
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex,
boolean aActive, boolean aRedstone) {
if (aSide == aFacing) {
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, ForgeDirection facing,
int ColorIndex, boolean aActive, boolean aRedstone) {
if (side == facing) {
if (aActive) return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(CASING_INDEX),
TextureFactory.builder().addIcon(OVERLAY_FRONT_RESEARCH_COMPLETER_ACTIVE).extFacing().build(),
TextureFactory.builder().addIcon(OVERLAY_FRONT_RESEARCH_COMPLETER_ACTIVE_GLOW).extFacing().glow()
@@ -2,13 +2,13 @@ package emt.tile;
import net.minecraft.tileentity.TileEntity;
import thaumcraft.client.fx.ParticleEngine;
import thaumcraft.client.fx.particles.FXWisp;
import thaumcraft.common.Thaumcraft;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import thaumcraft.client.fx.ParticleEngine;
import thaumcraft.client.fx.particles.FXWisp;
import thaumcraft.common.Thaumcraft;
public class TileElectricCloud extends TileEntity {
@@ -8,8 +8,6 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.common.config.ConfigItems;
import com.gtnewhorizons.modularui.api.ModularUITextures;
import com.gtnewhorizons.modularui.api.forge.InvWrapper;
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
@@ -24,6 +22,7 @@ import emt.util.EMTConfigHandler;
import emt.util.EMTTextHelper;
import gregtech.api.gui.modularui.GT_UITextures;
import ic2.api.tile.IWrenchable;
import thaumcraft.common.config.ConfigItems;
public class TileEntityEtherealMacerator extends TileEntityEMT
implements ISidedInventory, IWrenchable, ITileWithModularUI {
@@ -8,10 +8,6 @@ import net.minecraft.nbt.NBTTagList;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.common.items.wands.ItemWandCasting;
import com.gtnewhorizons.modularui.api.ModularUITextures;
import com.gtnewhorizons.modularui.api.forge.InvWrapper;
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
@@ -27,6 +23,9 @@ import emt.util.EMTConfigHandler;
import emt.util.EMTTextHelper;
import ic2.api.energy.tile.IEnergySink;
import ic2.api.tile.IWrenchable;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.common.items.wands.ItemWandCasting;
public class TileEntityIndustrialWandRecharge extends TileEntityEMT
implements IInventory, IWrenchable, IEnergySink, ITileWithModularUI {
@@ -13,11 +13,6 @@ import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.IFluidHandler;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.*;
import thaumcraft.common.lib.network.PacketHandler;
import thaumcraft.common.lib.network.fx.PacketFXEssentiaSource;
import com.gtnewhorizons.modularui.api.ModularUITextures;
import com.gtnewhorizons.modularui.api.drawable.Text;
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
@@ -40,6 +35,14 @@ import gregtech.api.interfaces.tileentity.IEnergyConnected;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
import gregtech.api.net.GT_Packet_Block_Event;
import thaumcraft.api.ThaumcraftApiHelper;
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.fx.PacketFXEssentiaSource;
public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory, IAspectContainer, IEssentiaTransport,
IHasWorldObjectAndCoords, IEnergyConnected, IBasicEnergyContainer, ITileWithModularUI {
@@ -397,7 +400,7 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
if (isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage())) {
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
drainEnergyUnits((byte) 0, getOutputVoltage(), tEU);
drainEnergyUnits(ForgeDirection.DOWN, getOutputVoltage(), tEU);
}
}
@@ -469,7 +472,7 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public boolean drainEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
public boolean drainEnergyUnits(ForgeDirection side, long aVoltage, long aAmperage) {
return decreaseStoredEnergyUnits(
aVoltage * aAmperage,
this.energySource.getEnergyStored() > aVoltage * aAmperage);
@@ -511,17 +514,17 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
public long injectEnergyUnits(ForgeDirection side, long aVoltage, long aAmperage) {
return 0L;
}
@Override
public boolean inputEnergyFrom(byte aSide) {
public boolean inputEnergyFrom(ForgeDirection side) {
return false;
}
@Override
public boolean outputsEnergyTo(byte aSide) {
public boolean outputsEnergyTo(ForgeDirection side) {
return true;
}
@@ -575,22 +578,22 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public TileEntity getTileEntityAtSide(byte aSide) {
if ((aSide < 0) || (aSide >= 6)) {
public TileEntity getTileEntityAtSide(ForgeDirection side) {
if (side == ForgeDirection.UNKNOWN) {
return null;
}
int tX = getOffsetX(aSide, 1);
int tY = getOffsetY(aSide, 1);
int tZ = getOffsetZ(aSide, 1);
int tX = getOffsetX(side, 1);
int tY = getOffsetY(side, 1);
int tZ = getOffsetZ(side, 1);
return this.worldObj.getTileEntity(tX, tY, tZ);
}
@Override
public TileEntity getTileEntityAtSideAndDistance(byte aSide, int aDistance) {
public TileEntity getTileEntityAtSideAndDistance(ForgeDirection side, int aDistance) {
if (aDistance == 1) {
return getTileEntityAtSide(aSide);
return getTileEntityAtSide(side);
}
return getTileEntity(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
return getTileEntity(getOffsetX(side, aDistance), getOffsetY(side, aDistance), getOffsetZ(side, aDistance));
}
@Override
@@ -604,12 +607,12 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public IInventory getIInventoryAtSide(byte aSide) {
public IInventory getIInventoryAtSide(ForgeDirection side) {
return null;
}
@Override
public IInventory getIInventoryAtSideAndDistance(byte aSide, int aDistance) {
public IInventory getIInventoryAtSideAndDistance(ForgeDirection side, int aDistance) {
return null;
}
@@ -624,12 +627,12 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public IFluidHandler getITankContainerAtSide(byte aSide) {
public IFluidHandler getITankContainerAtSide(ForgeDirection side) {
return null;
}
@Override
public IFluidHandler getITankContainerAtSideAndDistance(byte aSide, int aDistance) {
public IFluidHandler getITankContainerAtSideAndDistance(ForgeDirection side, int aDistance) {
return null;
}
@@ -648,8 +651,8 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public IGregTechTileEntity getIGregTechTileEntityAtSide(byte aSide) {
TileEntity tTileEntity = getTileEntityAtSide(aSide);
public IGregTechTileEntity getIGregTechTileEntityAtSide(ForgeDirection side) {
TileEntity tTileEntity = getTileEntityAtSide(side);
if ((tTileEntity instanceof IGregTechTileEntity)) {
return (IGregTechTileEntity) tTileEntity;
}
@@ -657,8 +660,8 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public IGregTechTileEntity getIGregTechTileEntityAtSideAndDistance(byte aSide, int aDistance) {
TileEntity tTileEntity = getTileEntityAtSideAndDistance(aSide, aDistance);
public IGregTechTileEntity getIGregTechTileEntityAtSideAndDistance(ForgeDirection side, int aDistance) {
TileEntity tTileEntity = getTileEntityAtSideAndDistance(side, aDistance);
if ((tTileEntity instanceof IGregTechTileEntity)) {
return (IGregTechTileEntity) tTileEntity;
}
@@ -676,22 +679,22 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public Block getBlockAtSide(byte aSide) {
if ((aSide < 0) || (aSide >= 6)) {
public Block getBlockAtSide(ForgeDirection side) {
if (side == ForgeDirection.UNKNOWN) {
return null;
}
int tX = getOffsetX(aSide, 1);
int tY = getOffsetY(aSide, 1);
int tZ = getOffsetZ(aSide, 1);
int tX = getOffsetX(side, 1);
int tY = getOffsetY(side, 1);
int tZ = getOffsetZ(side, 1);
return this.worldObj.getBlock(tX, tY, tZ);
}
@Override
public Block getBlockAtSideAndDistance(byte aSide, int aDistance) {
public Block getBlockAtSideAndDistance(ForgeDirection side, int aDistance) {
if (aDistance == 1) {
return getBlockAtSide(aSide);
return getBlockAtSide(side);
}
return getBlock(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
return getBlock(getOffsetX(side, aDistance), getOffsetY(side, aDistance), getOffsetZ(side, aDistance));
}
@Override
@@ -705,19 +708,19 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public byte getMetaIDAtSide(byte aSide) {
int tX = getOffsetX(aSide, 1);
int tY = getOffsetY(aSide, 1);
int tZ = getOffsetZ(aSide, 1);
public byte getMetaIDAtSide(ForgeDirection side) {
int tX = getOffsetX(side, 1);
int tY = getOffsetY(side, 1);
int tZ = getOffsetZ(side, 1);
return (byte) this.worldObj.getBlockMetadata(tX, tY, tZ);
}
@Override
public byte getMetaIDAtSideAndDistance(byte aSide, int aDistance) {
public byte getMetaIDAtSideAndDistance(ForgeDirection side, int aDistance) {
if (aDistance == 1) {
return getMetaIDAtSide(aSide);
return getMetaIDAtSide(side);
}
return getMetaID(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
return getMetaID(getOffsetX(side, aDistance), getOffsetY(side, aDistance), getOffsetZ(side, aDistance));
}
@Override
@@ -731,12 +734,12 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public byte getLightLevelAtSide(byte aSide) {
public byte getLightLevelAtSide(ForgeDirection side) {
return 0;
}
@Override
public byte getLightLevelAtSideAndDistance(byte aSide, int aDistance) {
public byte getLightLevelAtSideAndDistance(ForgeDirection side, int aDistance) {
return 0;
}
@@ -751,12 +754,12 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public boolean getOpacityAtSide(byte aSide) {
public boolean getOpacityAtSide(ForgeDirection side) {
return false;
}
@Override
public boolean getOpacityAtSideAndDistance(byte aSide, int aDistance) {
public boolean getOpacityAtSideAndDistance(ForgeDirection side, int aDistance) {
return false;
}
@@ -777,12 +780,12 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public boolean getSkyAtSide(byte aSide) {
public boolean getSkyAtSide(ForgeDirection side) {
return false;
}
@Override
public boolean getSkyAtSideAndDistance(byte aSide, int aDistance) {
public boolean getSkyAtSideAndDistance(ForgeDirection side, int aDistance) {
return false;
}
@@ -797,13 +800,13 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public boolean getAirAtSide(byte aSide) {
return getAirAtSideAndDistance(aSide, 1);
public boolean getAirAtSide(ForgeDirection side) {
return getAirAtSideAndDistance(side, 1);
}
@Override
public boolean getAirAtSideAndDistance(byte aSide, int aDistance) {
return getAir(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
public boolean getAirAtSideAndDistance(ForgeDirection side, int aDistance) {
return getAir(getOffsetX(side, aDistance), getOffsetY(side, aDistance), getOffsetZ(side, aDistance));
}
@Override
@@ -817,18 +820,18 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public int getOffsetX(byte aSide, int aMultiplier) {
return this.xCoord + ForgeDirection.getOrientation(aSide).offsetX * aMultiplier;
public int getOffsetX(ForgeDirection side, int aMultiplier) {
return this.xCoord + side.offsetX * aMultiplier;
}
@Override
public short getOffsetY(byte aSide, int aMultiplier) {
return (short) (this.yCoord + ForgeDirection.getOrientation(aSide).offsetY * aMultiplier);
public short getOffsetY(ForgeDirection side, int aMultiplier) {
return (short) (this.yCoord + side.offsetY * aMultiplier);
}
@Override
public int getOffsetZ(byte aSide, int aMultiplier) {
return this.zCoord + ForgeDirection.getOrientation(aSide).offsetZ * aMultiplier;
public int getOffsetZ(ForgeDirection side, int aMultiplier) {
return this.zCoord + side.offsetZ * aMultiplier;
}
@Override
@@ -859,12 +862,12 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
}
@Override
public boolean outputsEnergyTo(byte b, boolean b1) {
public boolean outputsEnergyTo(ForgeDirection side, boolean b1) {
return true;
}
@Override
public boolean inputEnergyFrom(byte b, boolean b1) {
public boolean inputEnergyFrom(ForgeDirection side, boolean b1) {
return false;
}
@@ -1,8 +1,8 @@
package emt.tile.generator;
import thaumcraft.api.aspects.Aspect;
import emt.tile.DefinitelyNotAIC2Source;
import emt.util.EMTConfigHandler;
import thaumcraft.api.aspects.Aspect;
public abstract class TileEntityCompressedGenerator extends TileEntityBaseGenerator {
+1 -1
View File
@@ -8,11 +8,11 @@ import javax.annotation.Nullable;
import net.minecraft.item.ItemStack;
import thaumcraft.api.aspects.Aspect;
import emt.init.EMTBlocks;
import emt.util.EMTConfigHandler;
import gregtech.api.enums.GT_Values;
import gregtech.api.enums.Materials;
import thaumcraft.api.aspects.Aspect;
// Solar Factory
public enum Solars {
@@ -14,9 +14,6 @@ import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.IFluidHandler;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.visnet.VisNetHandler;
import com.gtnewhorizons.modularui.api.ModularUITextures;
import com.gtnewhorizons.modularui.api.drawable.Text;
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
@@ -39,6 +36,8 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
import gregtech.api.net.GT_Packet_Block_Event;
import ic2.api.tile.IWrenchable;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.visnet.VisNetHandler;
public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IWrenchable, IHasWorldObjectAndCoords,
IEnergyConnected, IBasicEnergyContainer, ITileWithModularUI {
@@ -389,7 +388,7 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
if (isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage())) {
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
drainEnergyUnits((byte) 0, getOutputVoltage(), tEU);
drainEnergyUnits(ForgeDirection.DOWN, getOutputVoltage(), tEU);
}
}
@@ -486,7 +485,7 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public boolean drainEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
public boolean drainEnergyUnits(ForgeDirection side, long aVoltage, long aAmperage) {
return decreaseStoredEnergyUnits(
aVoltage * aAmperage,
this.energySource.getEnergyStored() > aVoltage * aAmperage);
@@ -528,17 +527,17 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
public long injectEnergyUnits(ForgeDirection side, long aVoltage, long aAmperage) {
return 0L;
}
@Override
public boolean inputEnergyFrom(byte aSide) {
public boolean inputEnergyFrom(ForgeDirection side) {
return false;
}
@Override
public boolean outputsEnergyTo(byte aSide) {
public boolean outputsEnergyTo(ForgeDirection side) {
return true;
}
@@ -592,22 +591,22 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public TileEntity getTileEntityAtSide(byte aSide) {
if ((aSide < 0) || (aSide >= 6)) {
public TileEntity getTileEntityAtSide(ForgeDirection side) {
if (side == ForgeDirection.UNKNOWN) {
return null;
}
int tX = getOffsetX(aSide, 1);
int tY = getOffsetY(aSide, 1);
int tZ = getOffsetZ(aSide, 1);
int tX = getOffsetX(side, 1);
int tY = getOffsetY(side, 1);
int tZ = getOffsetZ(side, 1);
return this.worldObj.getTileEntity(tX, tY, tZ);
}
@Override
public TileEntity getTileEntityAtSideAndDistance(byte aSide, int aDistance) {
public TileEntity getTileEntityAtSideAndDistance(ForgeDirection side, int aDistance) {
if (aDistance == 1) {
return getTileEntityAtSide(aSide);
return getTileEntityAtSide(side);
}
return getTileEntity(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
return getTileEntity(getOffsetX(side, aDistance), getOffsetY(side, aDistance), getOffsetZ(side, aDistance));
}
@Override
@@ -621,12 +620,12 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public IInventory getIInventoryAtSide(byte aSide) {
public IInventory getIInventoryAtSide(ForgeDirection side) {
return null;
}
@Override
public IInventory getIInventoryAtSideAndDistance(byte aSide, int aDistance) {
public IInventory getIInventoryAtSideAndDistance(ForgeDirection side, int aDistance) {
return null;
}
@@ -641,12 +640,12 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public IFluidHandler getITankContainerAtSide(byte aSide) {
public IFluidHandler getITankContainerAtSide(ForgeDirection side) {
return null;
}
@Override
public IFluidHandler getITankContainerAtSideAndDistance(byte aSide, int aDistance) {
public IFluidHandler getITankContainerAtSideAndDistance(ForgeDirection side, int aDistance) {
return null;
}
@@ -665,8 +664,8 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public IGregTechTileEntity getIGregTechTileEntityAtSide(byte aSide) {
TileEntity tTileEntity = getTileEntityAtSide(aSide);
public IGregTechTileEntity getIGregTechTileEntityAtSide(ForgeDirection side) {
TileEntity tTileEntity = getTileEntityAtSide(side);
if ((tTileEntity instanceof IGregTechTileEntity)) {
return (IGregTechTileEntity) tTileEntity;
}
@@ -674,8 +673,8 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public IGregTechTileEntity getIGregTechTileEntityAtSideAndDistance(byte aSide, int aDistance) {
TileEntity tTileEntity = getTileEntityAtSideAndDistance(aSide, aDistance);
public IGregTechTileEntity getIGregTechTileEntityAtSideAndDistance(ForgeDirection side, int aDistance) {
TileEntity tTileEntity = getTileEntityAtSideAndDistance(side, aDistance);
if ((tTileEntity instanceof IGregTechTileEntity)) {
return (IGregTechTileEntity) tTileEntity;
}
@@ -693,22 +692,22 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public Block getBlockAtSide(byte aSide) {
if ((aSide < 0) || (aSide >= 6)) {
public Block getBlockAtSide(ForgeDirection side) {
if (side == ForgeDirection.UNKNOWN) {
return null;
}
int tX = getOffsetX(aSide, 1);
int tY = getOffsetY(aSide, 1);
int tZ = getOffsetZ(aSide, 1);
int tX = getOffsetX(side, 1);
int tY = getOffsetY(side, 1);
int tZ = getOffsetZ(side, 1);
return this.worldObj.getBlock(tX, tY, tZ);
}
@Override
public Block getBlockAtSideAndDistance(byte aSide, int aDistance) {
public Block getBlockAtSideAndDistance(ForgeDirection side, int aDistance) {
if (aDistance == 1) {
return getBlockAtSide(aSide);
return getBlockAtSide(side);
}
return getBlock(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
return getBlock(getOffsetX(side, aDistance), getOffsetY(side, aDistance), getOffsetZ(side, aDistance));
}
@Override
@@ -722,19 +721,19 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public byte getMetaIDAtSide(byte aSide) {
int tX = getOffsetX(aSide, 1);
int tY = getOffsetY(aSide, 1);
int tZ = getOffsetZ(aSide, 1);
public byte getMetaIDAtSide(ForgeDirection side) {
int tX = getOffsetX(side, 1);
int tY = getOffsetY(side, 1);
int tZ = getOffsetZ(side, 1);
return (byte) this.worldObj.getBlockMetadata(tX, tY, tZ);
}
@Override
public byte getMetaIDAtSideAndDistance(byte aSide, int aDistance) {
public byte getMetaIDAtSideAndDistance(ForgeDirection side, int aDistance) {
if (aDistance == 1) {
return getMetaIDAtSide(aSide);
return getMetaIDAtSide(side);
}
return getMetaID(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
return getMetaID(getOffsetX(side, aDistance), getOffsetY(side, aDistance), getOffsetZ(side, aDistance));
}
@Override
@@ -748,12 +747,12 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public byte getLightLevelAtSide(byte aSide) {
public byte getLightLevelAtSide(ForgeDirection side) {
return 0;
}
@Override
public byte getLightLevelAtSideAndDistance(byte aSide, int aDistance) {
public byte getLightLevelAtSideAndDistance(ForgeDirection side, int aDistance) {
return 0;
}
@@ -768,12 +767,12 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public boolean getOpacityAtSide(byte aSide) {
public boolean getOpacityAtSide(ForgeDirection side) {
return false;
}
@Override
public boolean getOpacityAtSideAndDistance(byte aSide, int aDistance) {
public boolean getOpacityAtSideAndDistance(ForgeDirection side, int aDistance) {
return false;
}
@@ -794,12 +793,12 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public boolean getSkyAtSide(byte aSide) {
public boolean getSkyAtSide(ForgeDirection side) {
return false;
}
@Override
public boolean getSkyAtSideAndDistance(byte aSide, int aDistance) {
public boolean getSkyAtSideAndDistance(ForgeDirection side, int aDistance) {
return false;
}
@@ -814,13 +813,13 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public boolean getAirAtSide(byte aSide) {
return getAirAtSideAndDistance(aSide, 1);
public boolean getAirAtSide(ForgeDirection side) {
return getAirAtSideAndDistance(side, 1);
}
@Override
public boolean getAirAtSideAndDistance(byte aSide, int aDistance) {
return getAir(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
public boolean getAirAtSideAndDistance(ForgeDirection side, int aDistance) {
return getAir(getOffsetX(side, aDistance), getOffsetY(side, aDistance), getOffsetZ(side, aDistance));
}
@Override
@@ -834,18 +833,18 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public int getOffsetX(byte aSide, int aMultiplier) {
return this.xCoord + ForgeDirection.getOrientation(aSide).offsetX * aMultiplier;
public int getOffsetX(ForgeDirection side, int aMultiplier) {
return this.xCoord + side.offsetX * aMultiplier;
}
@Override
public short getOffsetY(byte aSide, int aMultiplier) {
return (short) (this.yCoord + ForgeDirection.getOrientation(aSide).offsetY * aMultiplier);
public short getOffsetY(ForgeDirection side, int aMultiplier) {
return (short) (this.yCoord + side.offsetY * aMultiplier);
}
@Override
public int getOffsetZ(byte aSide, int aMultiplier) {
return this.zCoord + ForgeDirection.getOrientation(aSide).offsetZ * aMultiplier;
public int getOffsetZ(ForgeDirection side, int aMultiplier) {
return this.zCoord + side.offsetZ * aMultiplier;
}
@Override
@@ -876,12 +875,12 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
}
@Override
public boolean outputsEnergyTo(byte b, boolean b1) {
public boolean outputsEnergyTo(ForgeDirection b, boolean b1) {
return true;
}
@Override
public boolean inputEnergyFrom(byte b, boolean b1) {
public boolean inputEnergyFrom(ForgeDirection b, boolean b1) {
return false;
}
@@ -107,6 +107,7 @@ public class EMTConfigHandler {
public static boolean christmasFocusResearch;
public static boolean energyBallFocusResearch;
public static boolean shieldFocusResearch;
public static boolean maintenanceFocusResearch;
public static boolean shieldBlockResearch;
public static boolean potentiaGeneratorResearch;
public static boolean ignisGeneratorResearch;
@@ -390,6 +391,8 @@ public class EMTConfigHandler {
christmasFocusResearch = config.get(RESEARCH, "Kris-tmas Focus", false).getBoolean(christmasFocusResearch);
energyBallFocusResearch = config.get(RESEARCH, "EnergyBall Focus", false).getBoolean(christmasFocusResearch);
shieldFocusResearch = config.get(RESEARCH, "Shield Focus", false).getBoolean(shieldFocusResearch);
maintenanceFocusResearch = config.get(RESEARCH, "Maintenance Focus", false)
.getBoolean(maintenanceFocusResearch);
shieldBlockResearch = config.get(RESEARCH, "Shield Block", false).getBoolean(shieldBlockResearch);
potentiaGeneratorResearch = config.get(RESEARCH, "Potentia Generator", false)
.getBoolean(potentiaGeneratorResearch);
@@ -83,6 +83,8 @@ public class EMTCraftingAspects {
.add(Aspect.MECHANISM, 32);
public static AspectList wandChargeFocus = new AspectList().add(Aspect.ENERGY, 48).add(Aspect.AURA, 32)
.add(Aspect.EXCHANGE, 48).add(Aspect.GREED, 64);
public static AspectList maintenanceFocus = new AspectList().add(Aspect.CRAFT, 32).add(Aspect.EXCHANGE, 48)
.add(Aspect.TOOL, 64).add(Aspect.MAGIC, 64).add(Aspect.MECHANISM, 32).add(Aspect.ENERGY, 32);
public static AspectList inventoryChargingRing = new AspectList().add(Aspect.ENERGY, 64).add(Aspect.CRYSTAL, 32)
.add(Aspect.MAGIC, 48);
public static AspectList armorChargingRing = new AspectList().add(Aspect.ENERGY, 64).add(Aspect.ARMOR, 32)
+2 -2
View File
@@ -12,8 +12,6 @@ import net.minecraftforge.event.entity.living.LivingHurtEvent;
import net.minecraftforge.event.entity.living.LivingSetAttackTargetEvent;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.entities.monster.EntityTaintChicken;
import baubles.api.BaublesApi;
import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
@@ -24,6 +22,8 @@ import emt.init.EMTBlocks;
import emt.init.EMTItems;
import emt.item.armor.wings.ItemFeatherWing;
import ic2.api.item.ElectricItem;
import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.entities.monster.EntityTaintChicken;
public class EMTEventHandler {
@@ -25,6 +25,8 @@ public class EMTResearchAspects {
.add(Aspect.LIFE, 6);
public static AspectList shieldFocusResearch = new AspectList().add(Aspect.ARMOR, 5).add(Aspect.AIR, 2)
.add(Aspect.CRYSTAL, 3).add(Aspect.TRAP, 2);
public static AspectList maintenanceFocus = new AspectList().add(Aspect.MECHANISM, 5).add(Aspect.FIRE, 3)
.add(Aspect.ORDER, 3).add(Aspect.ENERGY, 5).add(Aspect.MAGIC, 5).add(Aspect.TOOL, 5);
public static AspectList electricGogglesResearch = new AspectList().add(Aspect.ARMOR, 8).add(Aspect.ENERGY, 5)
.add(Aspect.SENSES, 6);
public static AspectList potentiaGeneratorResearch = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.EXCHANGE, 4)
+2 -2
View File
@@ -3,12 +3,12 @@ package emt.util;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.api.research.ResearchPage;
import thaumcraft.api.research.ResearchPage.PageType;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class EMTResearchItem extends ResearchItem {
@@ -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.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.draconicSchematic=Diesen Bauplan kann man in Pluto Dungeons finden
#=============Entity Names=============
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.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=============
emt.rsname.Electric Magic Tools=Electric Magic Tools
+10 -20
View File
@@ -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.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.draconicSchematic=This Schematic can be found in Pluto Dungeons
#=============Entity Names=============
entity.EMT.laser.name=Laser
@@ -69,10 +68,10 @@ item.EMT.denseIronSheet.name=Dense Iron Sheet
item.EMT.taintedFeather.name=Tainted Feather
item.EMT.thaumiumWing.name=Thaumium Reinforced Wing
item.EMT.uumatterDrop.name=Crystallized UU-Matter Drop
item.EMT.draconicSchematic.name=Draconic Core Schematic
item.EMT.wyvernSchematic.name=Wyvern Core Schematic
item.EMT.awakenedSchematic.name=Awakened Core Schematic
item.EMT.chaoticSchematic.name=Chaotic Core Schematic
item.EMT.draconicSchematic.name=[DEPRECATED] Draconic Core Schematic
item.EMT.wyvernSchematic.name=[DEPRECATED] Wyvern Core Schematic
item.EMT.awakenedSchematic.name=[DEPRECATED] Awakened Core Schematic
item.EMT.chaoticSchematic.name=[DEPRECATED] Chaotic Core Schematic
item.EMT.bauble.euMaker.armor.name=Armor Charging Ring
item.EMT.bauble.euMaker.inventory.name=Inventory Charging Ring
item.EMT.bauble.oneRing.name=The One Ring
@@ -106,6 +105,7 @@ item.EMT.focus.christmas.name=Wand Focus: Kris-tmas
item.EMT.focus.shield.name=Wand Focus: Shield
item.EMT.focus.charge.name=Wand Focus: Charging
item.EMT.focus.chargeWand.name=Wand Focus: Wand Charging
item.EMT.focus.maintenance.name=Wand Focus: Maintenance
item.EMT.focus.electricCloud.name=Electric Cloud
item.EMT.focus.energyBall.name=Energy Ball Focus
@@ -121,7 +121,7 @@ tile.EMT.essentia.aer.name=Aer Generator
tile.EMT.essentia.lucrum.name=Lucrum Generator
tile.EMT.machine.wandrecharge.name=Industrial Wand Charging Station
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.doublecompressed.name=Double Compressed Solar Panel
tile.EMT.solar.triplecompressed.name=Triple Compressed Solar Panel
@@ -179,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.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=============
emt.rsname.Electric Magic Tools=Electric Magic Tools
emt.tag.Electric Magic Tools=Who says magic and technology can't go together?
@@ -251,6 +237,10 @@ emt.rsname.Shield Focus=Shield Focus
emt.tag.Shield Focus=S.H.I.E.L.D.
emt.text.Shield Focus=With some experimentation with the Portable Hole, you have found out more about the transportation of objects to alternate dimensions. You believe you can reverse these effects to summon a swath of blocks from a dimension full of matter to shield you from any oncoming disaster. Caution is to be taken when using this focus, as when bringing these blocks into our dimension, it will transpose any blocks in the way into the dimension it came from, never to return again. You will also be unable to move while this shield is in existence.
emt.rsname.Wand Focus: Maintenance=Thaumic Maintenance
emt.tag.Wand Focus: Maintenance=Who needs a toolbox when you have magic?
emt.text.Wand Focus: Maintenance=After intense study of the supposedly mechanical nature of your apparati, you've finally done it, you've discovered a method allowing the use of vis in repair. <BR> What are a few exploded cleanrooms in the face of sheer progress? Now you can get rid of those dastardly mundane tools...
emt.rsname.Potentia Generator=Potentia Generator
emt.tag.Potentia Generator=Harnessing the power-producing potential of Essentia
emt.text.Potentia Generator=After much studying and research, you have finally discovered how to create electricity from your leftover Essentia.<BR><BR>Simply place a Warded Jar containing Potentia in a 8 blocks radius of the machine and it will draw it in to create EU.<BR><BR>While Potentia seems like the most logical choice for producing Essentia with EU, you believe you will be able to generate electricity from different Essentia in the near future with a bit of tinkering.
@@ -137,14 +137,6 @@ tile.EMT.solar2.earth.name=Наполненная землёй, сжатая с
tile.EMT.solar2.doubleearth.name=Наполненная землёй, дважды сжатая солнечная панель
tile.EMT.solar2.tripleearth.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=============
emt.rsname.Electric Magic Tools=Electric Magic Tools
emt.tag.Electric Magic Tools=Кто сказал что магия и технология не дружат вместе?
+1 -20
View File
@@ -43,7 +43,6 @@ tooltip.EMT.output.double.nether=处于下界时发电量
tooltip.EMT.output.double.lava=每秒供给0.01vis火之要素时发电量
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.draconicSchematic=可在冥王星地牢找到相关图纸
#=============Entity Names=============
entity.EMT.laser.name=镭射器
@@ -68,10 +67,6 @@ item.EMT.denseIronSheet.name=致密铁片
item.EMT.taintedFeather.name=腐化羽毛
item.EMT.thaumiumWing.name=神秘增强羽翼
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.inventory.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.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=============
emt.rsname.Electric Magic Tools=电力魔法工具
emt.tag.Electric Magic Tools=谁说科技和魔法不能互相结合?
@@ -428,4 +409,4 @@ emt.text.Infused Quantum Armor=你已经无事可做,但是你决定做一些有
emt.rsname.ResearchCompleter=自动化研究
emt.tag.ResearchCompleter=再也不用担心秩序危机了
emt.text.ResearchCompleter=连连看一开始很有趣,但你已经决定寻找一种更好的方法解决所有的研究.最终,你结合科技与魔法,制造出了一台多方块机器,可以自动完成研究笔记.<BR><BR>需要将灵气节点放在机器内部才能使其正常运行,而且在运行过程中,机器会缓慢摧毁这些节点.节点稳定器不是必须品,但为了让这么多节点不互相打架,我们还是推荐使用节点稳定器.
emt.text.ResearchCompleter=连连看一开始很有趣,但你已经决定寻找一种更好的方法解决所有的研究.最终,你结合科技与魔法,制造出了一台多方块机器,可以自动完成研究笔记.<BR><BR>需要将灵气节点放在机器内部才能使其正常运行,而且在运行过程中,机器会缓慢摧毁这些节点.节点稳定器不是必须品,但为了让这么多节点不互相打架,我们还是推荐使用节点稳定器.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB