mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e1a996798 | ||
|
|
29144cfe3e |
No files matched your search
@@ -1,51 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# bashsupport disable=BP5006 # Global environment variables
|
|
||||||
RUNDIR="run" \
|
|
||||||
CRASH="crash-reports" \
|
|
||||||
SERVERLOG="server.log"
|
|
||||||
|
|
||||||
# enable nullglob to get 0 results when no match rather than the pattern
|
|
||||||
shopt -s nullglob
|
|
||||||
|
|
||||||
# store matches in array
|
|
||||||
crash_reports=("$RUNDIR/$CRASH/crash"*.txt)
|
|
||||||
|
|
||||||
# if array not empty there are crash_reports
|
|
||||||
if [ "${#crash_reports[@]}" -gt 0 ]; then
|
|
||||||
# get the latest crash_report from array
|
|
||||||
latest_crash_report="${crash_reports[-1]}"
|
|
||||||
{
|
|
||||||
printf 'Latest crash report detected %s:\n' "${latest_crash_report##*/}"
|
|
||||||
cat "$latest_crash_report"
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep --quiet --fixed-strings 'Fatal errors were detected' "$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Fatal errors detected:\n'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED' \
|
|
||||||
"$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Server force stopped:'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! grep --quiet --perl-regexp --only-matching '.+Done \(.+\)\! For help, type "help" or "\?"' "$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Server did not finish startup:'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf 'No crash reports detected'
|
|
||||||
exit 0
|
|
||||||
+215
-84
@@ -1,4 +1,4 @@
|
|||||||
//version: 1683056771
|
//version: 1696952014
|
||||||
/*
|
/*
|
||||||
DO NOT CHANGE THIS FILE!
|
DO NOT CHANGE THIS FILE!
|
||||||
Also, you may replace this file at any time if there is an update available.
|
Also, you may replace this file at any time if there is an update available.
|
||||||
@@ -69,10 +69,10 @@ plugins {
|
|||||||
id 'com.diffplug.spotless' version '6.13.0' apply false // 6.13.0 is the last jvm8 supporting version
|
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.modrinth.minotaur' version '2.+' apply false
|
||||||
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
|
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
|
||||||
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.7'
|
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.24'
|
||||||
}
|
}
|
||||||
|
|
||||||
print("You might want to check out './gradlew :faq' if your build fails.")
|
print("You might want to check out './gradlew :faq' if your build fails.\n")
|
||||||
|
|
||||||
boolean settingsupdated = verifySettingsGradle()
|
boolean settingsupdated = verifySettingsGradle()
|
||||||
settingsupdated = verifyGitAttributes() || settingsupdated
|
settingsupdated = verifyGitAttributes() || settingsupdated
|
||||||
@@ -89,6 +89,23 @@ def out = services.get(StyledTextOutputFactory).create('an-output')
|
|||||||
def projectJavaVersion = JavaLanguageVersion.of(8)
|
def projectJavaVersion = JavaLanguageVersion.of(8)
|
||||||
|
|
||||||
boolean disableSpotless = project.hasProperty("disableSpotless") ? project.disableSpotless.toBoolean() : false
|
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("modName")
|
||||||
checkPropertyExists("modId")
|
checkPropertyExists("modId")
|
||||||
@@ -115,6 +132,8 @@ propertyDefaultIfUnset("usesMixinDebug", project.usesMixins)
|
|||||||
propertyDefaultIfUnset("forceEnableMixins", false)
|
propertyDefaultIfUnset("forceEnableMixins", false)
|
||||||
propertyDefaultIfUnset("channel", "stable")
|
propertyDefaultIfUnset("channel", "stable")
|
||||||
propertyDefaultIfUnset("mappingsVersion", "12")
|
propertyDefaultIfUnset("mappingsVersion", "12")
|
||||||
|
propertyDefaultIfUnset("usesMavenPublishing", true)
|
||||||
|
propertyDefaultIfUnset("mavenPublishUrl", "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases")
|
||||||
propertyDefaultIfUnset("modrinthProjectId", "")
|
propertyDefaultIfUnset("modrinthProjectId", "")
|
||||||
propertyDefaultIfUnset("modrinthRelations", "")
|
propertyDefaultIfUnset("modrinthRelations", "")
|
||||||
propertyDefaultIfUnset("curseForgeProjectId", "")
|
propertyDefaultIfUnset("curseForgeProjectId", "")
|
||||||
@@ -138,6 +157,17 @@ if (!disableSpotless) {
|
|||||||
apply from: Blowdryer.file('spotless.gradle')
|
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 javaSourceDir = "src/main/java/"
|
||||||
String scalaSourceDir = "src/main/scala/"
|
String scalaSourceDir = "src/main/scala/"
|
||||||
String kotlinSourceDir = "src/main/kotlin/"
|
String kotlinSourceDir = "src/main/kotlin/"
|
||||||
@@ -222,6 +252,8 @@ if (enableModernJavaSyntax.toBoolean()) {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:1.0.0'
|
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') {
|
compileOnly('com.github.bsideup.jabel:jabel-javac-plugin:1.0.0') {
|
||||||
transitive = false // We only care about the 1 annotation class
|
transitive = false // We only care about the 1 annotation class
|
||||||
}
|
}
|
||||||
@@ -355,7 +387,27 @@ catch (Exception ignored) {
|
|||||||
String identifiedVersion
|
String identifiedVersion
|
||||||
String versionOverride = System.getenv("VERSION") ?: null
|
String versionOverride = System.getenv("VERSION") ?: null
|
||||||
try {
|
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) {
|
catch (Exception ignored) {
|
||||||
out.style(Style.Failure).text(
|
out.style(Style.Failure).text(
|
||||||
@@ -377,9 +429,13 @@ if (identifiedVersion == versionOverride) {
|
|||||||
|
|
||||||
group = "com.github.GTNewHorizons"
|
group = "com.github.GTNewHorizons"
|
||||||
if (project.hasProperty("customArchiveBaseName") && customArchiveBaseName) {
|
if (project.hasProperty("customArchiveBaseName") && customArchiveBaseName) {
|
||||||
archivesBaseName = customArchiveBaseName
|
base {
|
||||||
|
archivesName = customArchiveBaseName
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
archivesBaseName = modId
|
base {
|
||||||
|
archivesName = modId
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -463,10 +519,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'
|
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
|
// Allow unsafe repos but warn
|
||||||
repositories.configureEach { repo ->
|
repositories.configureEach { repo ->
|
||||||
if (repo instanceof org.gradle.api.artifacts.repositories.UrlArtifactRepository) {
|
if (repo instanceof org.gradle.api.artifacts.repositories.UrlArtifactRepository) {
|
||||||
@@ -477,7 +542,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 {
|
configurations {
|
||||||
runtimeClasspath.extendsFrom(runtimeOnlyNonPublishable)
|
runtimeClasspath.extendsFrom(runtimeOnlyNonPublishable)
|
||||||
@@ -518,9 +590,6 @@ repositories {
|
|||||||
maven {
|
maven {
|
||||||
name 'Overmind forge repo mirror'
|
name 'Overmind forge repo mirror'
|
||||||
url 'https://gregtech.overminddl1.com/'
|
url 'https://gregtech.overminddl1.com/'
|
||||||
mavenContent {
|
|
||||||
excludeGroup("net.minecraftforge") // missing the `universal` artefact
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
name = "GTNH Maven"
|
name = "GTNH Maven"
|
||||||
@@ -535,24 +604,34 @@ repositories {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (includeWellKnownRepositories.toBoolean()) {
|
if (includeWellKnownRepositories.toBoolean()) {
|
||||||
maven {
|
exclusiveContent {
|
||||||
name "CurseMaven"
|
forRepository {
|
||||||
url "https://cursemaven.com"
|
maven {
|
||||||
content {
|
name "CurseMaven"
|
||||||
|
url "https://cursemaven.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filter {
|
||||||
includeGroup "curse.maven"
|
includeGroup "curse.maven"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exclusiveContent {
|
||||||
|
forRepository {
|
||||||
|
maven {
|
||||||
|
name = "Modrinth"
|
||||||
|
url = "https://api.modrinth.com/maven"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filter {
|
||||||
|
includeGroup "maven.modrinth"
|
||||||
|
}
|
||||||
|
}
|
||||||
maven {
|
maven {
|
||||||
name = "ic2"
|
name = "ic2"
|
||||||
url = "https://maven.ic2.player.to/"
|
url = getURL("https://maven.ic2.player.to/", "https://maven2.ic2.player.to/")
|
||||||
metadataSources {
|
content {
|
||||||
mavenPom()
|
includeGroup "net.industrial-craft"
|
||||||
artifact()
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = "ic2-mirror"
|
|
||||||
url = "https://maven2.ic2.player.to/"
|
|
||||||
metadataSources {
|
metadataSources {
|
||||||
mavenPom()
|
mavenPom()
|
||||||
artifact()
|
artifact()
|
||||||
@@ -567,9 +646,12 @@ repositories {
|
|||||||
|
|
||||||
def mixinProviderGroup = "io.github.legacymoddingmc"
|
def mixinProviderGroup = "io.github.legacymoddingmc"
|
||||||
def mixinProviderModule = "unimixins"
|
def mixinProviderModule = "unimixins"
|
||||||
def mixinProviderVersion = "0.1.6"
|
def mixinProviderVersion = "0.1.7.1"
|
||||||
def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}:${mixinProviderVersion}"
|
def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}:${mixinProviderVersion}"
|
||||||
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
|
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
|
||||||
|
ext.mixinProviderSpec = mixinProviderSpec
|
||||||
|
|
||||||
|
def mixingConfigRefMap = 'mixins.' + modId + '.refmap.json'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
if (usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
@@ -582,7 +664,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
implementation(mixinProviderSpec)
|
implementation(modUtils.enableMixins(mixinProviderSpec, mixingConfigRefMap))
|
||||||
} else if (forceEnableMixins.toBoolean()) {
|
} else if (forceEnableMixins.toBoolean()) {
|
||||||
runtimeOnlyNonPublishable(mixinProviderSpec)
|
runtimeOnlyNonPublishable(mixinProviderSpec)
|
||||||
}
|
}
|
||||||
@@ -608,12 +690,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'
|
if (file('dependencies.gradle.kts').exists()) {
|
||||||
def mixinTmpDir = buildDir.path + File.separator + 'tmp' + File.separator + 'mixins'
|
apply from: 'dependencies.gradle.kts'
|
||||||
def refMap = "${mixinTmpDir}" + File.separator + mixingConfigRefMap
|
} else if (file('dependencies.gradle').exists()) {
|
||||||
def mixinSrg = "${mixinTmpDir}" + File.separator + "mixins.srg"
|
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') {
|
tasks.register('generateAssets') {
|
||||||
group = "GTNH Buildscript"
|
group = "GTNH Buildscript"
|
||||||
@@ -645,46 +747,17 @@ tasks.register('generateAssets') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
tasks.named("reobfJar", ReobfuscatedJar).configure {
|
|
||||||
extraSrgFiles.from(mixinSrg)
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.named("processResources").configure {
|
tasks.named("processResources").configure {
|
||||||
dependsOn("generateAssets")
|
dependsOn("generateAssets")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("compileJava", JavaCompile).configure {
|
tasks.named("compileJava", JavaCompile).configure {
|
||||||
doFirst {
|
|
||||||
new File(mixinTmpDir).mkdirs()
|
|
||||||
}
|
|
||||||
options.compilerArgs += [
|
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
|
// Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
|
||||||
"-XDenableSunApiLintControl",
|
"-XDenableSunApiLintControl",
|
||||||
"-XDignore.symbol.file"
|
"-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 {
|
tasks.named("processResources", ProcessResources).configure {
|
||||||
@@ -702,7 +775,6 @@ tasks.named("processResources", ProcessResources).configure {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
from refMap
|
|
||||||
dependsOn("compileJava", "compileScala")
|
dependsOn("compileJava", "compileScala")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -721,23 +793,14 @@ ext.java17PatchDependenciesCfg = configurations.create("java17PatchDependencies"
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
def lwjgl3ifyVersion = '1.3.5'
|
def lwjgl3ifyVersion = '1.5.1'
|
||||||
def asmVersion = '9.4'
|
|
||||||
if (modId != 'lwjgl3ify') {
|
if (modId != 'lwjgl3ify') {
|
||||||
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
|
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
|
||||||
}
|
}
|
||||||
if (modId != 'hodgepodge') {
|
if (modId != 'hodgepodge') {
|
||||||
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.2.8')
|
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.7')
|
||||||
}
|
}
|
||||||
|
|
||||||
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}
|
java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -820,6 +883,18 @@ public abstract class RunHotswappableMinecraftTask extends RunMinecraftTask {
|
|||||||
}
|
}
|
||||||
this.classpath(project.java17DependenciesCfg)
|
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, Distribution.CLIENT, "runClient")
|
def runClient17Task = tasks.register("runClient17", RunHotswappableMinecraftTask, Distribution.CLIENT, "runClient")
|
||||||
@@ -964,6 +1039,9 @@ idea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
runConfigurations {
|
runConfigurations {
|
||||||
|
"0. Build and Test"(Gradle) {
|
||||||
|
taskNames = ["build"]
|
||||||
|
}
|
||||||
"1. Run Client"(Gradle) {
|
"1. Run Client"(Gradle) {
|
||||||
taskNames = ["runClient"]
|
taskNames = ["runClient"]
|
||||||
}
|
}
|
||||||
@@ -1083,6 +1161,14 @@ tasks.named("processIdeaSettings").configure {
|
|||||||
dependsOn("injectTags")
|
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
|
// workaround variable hiding in pom processing
|
||||||
def projectConfigs = project.configurations
|
def projectConfigs = project.configurations
|
||||||
|
|
||||||
@@ -1103,12 +1189,14 @@ publishing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
if (usesMavenPublishing.toBoolean()) {
|
||||||
url = "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases"
|
maven {
|
||||||
allowInsecureProtocol = true
|
url = mavenPublishUrl
|
||||||
credentials {
|
allowInsecureProtocol = mavenPublishUrl.startsWith("http://") // Mostly for the GTNH maven
|
||||||
username = System.getenv("MAVEN_USER") ?: "NONE"
|
credentials {
|
||||||
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
|
username = System.getenv("MAVEN_USER") ?: "NONE"
|
||||||
|
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1223,7 +1311,7 @@ def addCurseForgeRelation(String type, String name) {
|
|||||||
|
|
||||||
// Updating
|
// Updating
|
||||||
|
|
||||||
def buildscriptGradleVersion = "8.1.1"
|
def buildscriptGradleVersion = "8.2.1"
|
||||||
|
|
||||||
tasks.named('wrapper', Wrapper).configure {
|
tasks.named('wrapper', Wrapper).configure {
|
||||||
gradleVersion = buildscriptGradleVersion
|
gradleVersion = buildscriptGradleVersion
|
||||||
@@ -1261,10 +1349,14 @@ tasks.register('faq') {
|
|||||||
description = 'Prints frequently asked questions about building a project'
|
description = 'Prints frequently asked questions about building a project'
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
print("If your build fails to fetch dependencies, they might have been deleted and replaced by newer " +
|
print("If your build fails to fetch dependencies, run './gradlew updateDependencies'. " +
|
||||||
"versions.\nCheck if the versions you try to fetch are still on the distributing sites.\n" +
|
"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, " +
|
"the links can be found in repositories.gradle and build.gradle:repositories, " +
|
||||||
"not build.gradle:buildscript.repositories - this one is for gradle plugin metadata.")
|
"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.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1325,8 +1417,14 @@ boolean isNewBuildScriptVersionAvailable() {
|
|||||||
|
|
||||||
String currentBuildScript = getFile("build.gradle").getText()
|
String currentBuildScript = getFile("build.gradle").getText()
|
||||||
String currentBuildScriptHash = getVersionHash(currentBuildScript)
|
String currentBuildScriptHash = getVersionHash(currentBuildScript)
|
||||||
String availableBuildScript = availableBuildScriptUrl().newInputStream(parameters).getText()
|
String availableBuildScriptHash
|
||||||
String availableBuildScriptHash = getVersionHash(availableBuildScript)
|
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
|
boolean isUpToDate = currentBuildScriptHash.empty || availableBuildScriptHash.empty || currentBuildScriptHash == availableBuildScriptHash
|
||||||
return !isUpToDate
|
return !isUpToDate
|
||||||
@@ -1491,3 +1589,36 @@ def getSecondaryArtifacts() {
|
|||||||
if (apiPackage) secondaryArtifacts += [apiJar]
|
if (apiPackage) secondaryArtifacts += [apiJar]
|
||||||
return secondaryArtifacts
|
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
@@ -1,9 +1,9 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.GTNewHorizons:GT5-Unofficial:5.09.43.07:dev'
|
api 'com.github.GTNewHorizons:GT5-Unofficial:5.09.44.35:dev'
|
||||||
compile 'com.github.GTNewHorizons:Baubles:1.0.1.16:dev'
|
api 'com.github.GTNewHorizons:Baubles:1.0.1.16:dev'
|
||||||
|
|
||||||
compile 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
|
api 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
|
||||||
compile 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev'
|
api 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev'
|
||||||
}
|
}
|
||||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
@@ -85,9 +85,6 @@ done
|
|||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
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.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
|
|
||||||
@@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then
|
|||||||
done
|
done
|
||||||
fi
|
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;
|
# Collect all arguments for the java command;
|
||||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||||
# shell script including quotes and variable substitutions, so put them in
|
# shell script including quotes and variable substitutions, so put them in
|
||||||
|
|||||||
+1
-25
@@ -1,28 +1,4 @@
|
|||||||
// Add any additional repositiroes for your dependencies here
|
// Add any additional repositories for your dependencies here
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
|
||||||
name 'GTNH Maven'
|
|
||||||
url 'http://jenkins.usrv.eu:8081/nexus/content/groups/public/'
|
|
||||||
allowInsecureProtocol
|
|
||||||
}
|
|
||||||
mavenCentral()
|
|
||||||
maven {
|
|
||||||
name 'ic2'
|
|
||||||
url 'https://maven.ic2.player.to/'
|
|
||||||
metadataSources {
|
|
||||||
mavenPom()
|
|
||||||
artifact()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
url 'https://cursemaven.com'
|
|
||||||
content {
|
|
||||||
includeGroup "curse.maven"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
maven {
|
|
||||||
url 'https://jitpack.io'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,12 @@ import emt.network.PacketEMTKeys;
|
|||||||
import emt.network.PacketNodeInfo;
|
import emt.network.PacketNodeInfo;
|
||||||
import emt.proxy.CommonProxy;
|
import emt.proxy.CommonProxy;
|
||||||
import emt.tile.solar.Solars;
|
import emt.tile.solar.Solars;
|
||||||
import emt.util.*;
|
import emt.util.EMTClientEventHandler;
|
||||||
|
import emt.util.EMTConfigHandler;
|
||||||
|
import emt.util.EMTCreativeTab;
|
||||||
|
import emt.util.EMTDungeonChestGenerator;
|
||||||
|
import emt.util.EMTEssentiasOutputs;
|
||||||
|
import emt.util.EMTEventHandler;
|
||||||
|
|
||||||
@Mod(
|
@Mod(
|
||||||
modid = EMT.MOD_ID,
|
modid = EMT.MOD_ID,
|
||||||
|
|||||||
@@ -39,15 +39,15 @@ public class EMT_GT_Loader implements Runnable {
|
|||||||
for (int i = 0; i < TIERS; i++) {
|
for (int i = 0; i < TIERS; i++) {
|
||||||
EHatch[i] = new EssentiaHatch(
|
EHatch[i] = new EssentiaHatch(
|
||||||
aIDoffset + i,
|
aIDoffset + i,
|
||||||
"Essentia Hatch " + GT_Values.VN[i],
|
"Essentia Hatch" + GT_Values.VN[i] + " - Marked for Deprecation",
|
||||||
"Essentia Hatch " + GT_Values.VN[i],
|
"Essentia Hatch " + GT_Values.VN[i] + " - Marked for Deprecation",
|
||||||
i).getStackForm(1L);
|
i).getStackForm(1L);
|
||||||
}
|
}
|
||||||
|
|
||||||
LEG = new EMT_Large_Essentia_Gen(
|
LEG = new EMT_Large_Essentia_Gen(
|
||||||
aIDoffset + GT_Values.VN.length + 1,
|
aIDoffset + GT_Values.VN.length + 1,
|
||||||
"Large Essentia Generator",
|
"Large Essentia Generator - Marked for Deprecation",
|
||||||
"Large Essentia Generator").getStackForm(1L);
|
"Large Essentia Generator - Marked for Deprecation").getStackForm(1L);
|
||||||
|
|
||||||
// Dragonblood recipe for magics haters
|
// Dragonblood recipe for magics haters
|
||||||
if (Loader.isModLoaded("miscutils")) {
|
if (Loader.isModLoaded("miscutils")) {
|
||||||
|
|||||||
@@ -13,7 +13,11 @@ import net.minecraftforge.fluids.FluidStack;
|
|||||||
import cpw.mods.fml.common.Loader;
|
import cpw.mods.fml.common.Loader;
|
||||||
import emt.client.gui.EMT_UITextures;
|
import emt.client.gui.EMT_UITextures;
|
||||||
import emt.init.EMTItems;
|
import emt.init.EMTItems;
|
||||||
import gregtech.api.enums.*;
|
import gregtech.api.enums.GT_Values;
|
||||||
|
import gregtech.api.enums.ItemList;
|
||||||
|
import gregtech.api.enums.Materials;
|
||||||
|
import gregtech.api.enums.MaterialsUEVplus;
|
||||||
|
import gregtech.api.enums.OrePrefixes;
|
||||||
import gregtech.api.util.GT_ModHandler;
|
import gregtech.api.util.GT_ModHandler;
|
||||||
import gregtech.api.util.GT_OreDictUnificator;
|
import gregtech.api.util.GT_OreDictUnificator;
|
||||||
import gregtech.api.util.GT_Recipe;
|
import gregtech.api.util.GT_Recipe;
|
||||||
|
|||||||
+2
-14
@@ -41,20 +41,8 @@ public class EMT_Large_Essentia_Gen extends GT_MetaTileEntity_MultiBlockBase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
return new String[] { "Controller Block for the Large Essentia Generator.",
|
return new String[] { "Does not work, please don't use", "Marked for deprecation", "Added by EMT",
|
||||||
"Produces energy from magical essentia decay.", "Size(WxHxD): 7x4x7, Controller (Bottom, Center)",
|
"Made by bartimaeusnek" };
|
||||||
"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) {
|
public int getCurrentEfficiency(ItemStack itemStack) {
|
||||||
|
|||||||
@@ -5,7 +5,12 @@ import static thaumcraft.api.ThaumcraftApi.registerObjectTag;
|
|||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import emt.block.*;
|
import emt.block.BlockElectricCloud;
|
||||||
|
import emt.block.BlockEssentiaGenerators;
|
||||||
|
import emt.block.BlockMachines;
|
||||||
|
import emt.block.BlockPortableNode;
|
||||||
|
import emt.block.BlockShield;
|
||||||
|
import emt.block.BlockSolars;
|
||||||
import emt.item.block.ItemBlockElectricCloud;
|
import emt.item.block.ItemBlockElectricCloud;
|
||||||
import emt.item.block.ItemBlockEssentiaGenerators;
|
import emt.item.block.ItemBlockEssentiaGenerators;
|
||||||
import emt.item.block.ItemBlockMachines;
|
import emt.item.block.ItemBlockMachines;
|
||||||
|
|||||||
@@ -24,7 +24,13 @@ import emt.item.armor.wings.ItemFeatherWing;
|
|||||||
import emt.item.armor.wings.ItemNanoWing;
|
import emt.item.armor.wings.ItemNanoWing;
|
||||||
import emt.item.armor.wings.ItemQuantumWing;
|
import emt.item.armor.wings.ItemQuantumWing;
|
||||||
import emt.item.armor.wings.ItemThaumiumReinforcedWing;
|
import emt.item.armor.wings.ItemThaumiumReinforcedWing;
|
||||||
import emt.item.focus.*;
|
import emt.item.focus.ItemChargeFocus;
|
||||||
|
import emt.item.focus.ItemChristmasFocus;
|
||||||
|
import emt.item.focus.ItemEnergyBallFocus;
|
||||||
|
import emt.item.focus.ItemExplosionFocus;
|
||||||
|
import emt.item.focus.ItemMaintenanceFocus;
|
||||||
|
import emt.item.focus.ItemShieldFocus;
|
||||||
|
import emt.item.focus.ItemWandChargingFocus;
|
||||||
import emt.item.tool.ItemElectricHoeGrowth;
|
import emt.item.tool.ItemElectricHoeGrowth;
|
||||||
import emt.item.tool.ItemElectricThorHammer;
|
import emt.item.tool.ItemElectricThorHammer;
|
||||||
import emt.item.tool.ItemThorHammer;
|
import emt.item.tool.ItemThorHammer;
|
||||||
|
|||||||
@@ -12,8 +12,13 @@ import net.minecraft.item.EnumAction;
|
|||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.potion.PotionEffect;
|
import net.minecraft.potion.PotionEffect;
|
||||||
import net.minecraft.util.*;
|
import net.minecraft.util.EnumChatFormatting;
|
||||||
|
import net.minecraft.util.IIcon;
|
||||||
|
import net.minecraft.util.MathHelper;
|
||||||
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.util.MovingObjectPosition.MovingObjectType;
|
import net.minecraft.util.MovingObjectPosition.MovingObjectType;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
|
import net.minecraft.util.Vec3;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.entity.player.ArrowNockEvent;
|
import net.minecraftforge.event.entity.player.ArrowNockEvent;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package emt.item.tool.chainsaw;
|
package emt.item.tool.chainsaw;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.Color;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
|||||||
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
|
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
|
||||||
import gregtech.api.net.GT_Packet_Block_Event;
|
import gregtech.api.net.GT_Packet_Block_Event;
|
||||||
import thaumcraft.api.ThaumcraftApiHelper;
|
import thaumcraft.api.ThaumcraftApiHelper;
|
||||||
import thaumcraft.api.aspects.*;
|
import thaumcraft.api.aspects.Aspect;
|
||||||
|
import thaumcraft.api.aspects.AspectList;
|
||||||
|
import thaumcraft.api.aspects.IAspectContainer;
|
||||||
|
import thaumcraft.api.aspects.IAspectSource;
|
||||||
|
import thaumcraft.api.aspects.IEssentiaTransport;
|
||||||
import thaumcraft.common.lib.network.PacketHandler;
|
import thaumcraft.common.lib.network.PacketHandler;
|
||||||
import thaumcraft.common.lib.network.fx.PacketFXEssentiaSource;
|
import thaumcraft.common.lib.network.fx.PacketFXEssentiaSource;
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ tile.EMT.essentia.aer.name=Aer Generator
|
|||||||
tile.EMT.essentia.lucrum.name=Lucrum Generator
|
tile.EMT.essentia.lucrum.name=Lucrum Generator
|
||||||
tile.EMT.machine.wandrecharge.name=Industrial Wand Charging Station
|
tile.EMT.machine.wandrecharge.name=Industrial Wand Charging Station
|
||||||
tile.EMT.machine.etheralprocessor.name=Ethereal Processor
|
tile.EMT.machine.etheralprocessor.name=Ethereal Processor
|
||||||
tile.EMT.machine.essentiafiller.name=Essentia Filler
|
tile.EMT.machine.essentiafiller.name=Essentia Filler - Marked for deprecation
|
||||||
tile.EMT.solar.compressed.name=Compressed Solar Panel
|
tile.EMT.solar.compressed.name=Compressed Solar Panel
|
||||||
tile.EMT.solar.doublecompressed.name=Double Compressed Solar Panel
|
tile.EMT.solar.doublecompressed.name=Double Compressed Solar Panel
|
||||||
tile.EMT.solar.triplecompressed.name=Triple Compressed Solar Panel
|
tile.EMT.solar.triplecompressed.name=Triple Compressed Solar Panel
|
||||||
@@ -181,12 +181,12 @@ tile.EMT.Septuple_Compressed_Terra_Solar.name=Septuple Compressed Terra Solar
|
|||||||
tile.EMT.Octuple_Compressed_Terra_Solar.name=Octuple Compressed Terra Solar
|
tile.EMT.Octuple_Compressed_Terra_Solar.name=Octuple Compressed Terra Solar
|
||||||
|
|
||||||
#===============Gregtech Compat===============
|
#===============Gregtech Compat===============
|
||||||
EMT_GTBLOCK_CASEING.0.name=Magic Containing Casing
|
EMT_GTBLOCK_CASEING.0.name=Magic Containing Casing - Marked for deprecation
|
||||||
EMT_GTBLOCK_CASEING.1.name=Essentia Diffusion Cell
|
EMT_GTBLOCK_CASEING.1.name=Essentia Diffusion Cell - Marked for deprecation
|
||||||
EMT_GTBLOCK_CASEING.2.name=Iridium Ruridit Framebox
|
EMT_GTBLOCK_CASEING.2.name=Iridium Ruridit Framebox
|
||||||
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Framebox
|
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Framebox
|
||||||
EMT_GTBLOCK_CASEING.4.name=Raw Magic Containing Casing
|
EMT_GTBLOCK_CASEING.4.name=Raw Magic Containing Casing
|
||||||
EMT_GTBLOCK_CASEING.5.name=Raw Essentia Diffusion Cell
|
EMT_GTBLOCK_CASEING.5.name=Raw Essentia Diffusion Cell - Marked for deprecation
|
||||||
EMT_GTBLOCK_CASEING.7.name=Naquadah Alloy Fusion Casing
|
EMT_GTBLOCK_CASEING.7.name=Naquadah Alloy Fusion Casing
|
||||||
EMT_GTBLOCK_CASEING.8.name=Bloody Ichorium Fusion Casing
|
EMT_GTBLOCK_CASEING.8.name=Bloody Ichorium Fusion Casing
|
||||||
EMT_GTBLOCK_CASEING.9.name=Draconium Fusion Casing
|
EMT_GTBLOCK_CASEING.9.name=Draconium Fusion Casing
|
||||||
|
|||||||
Reference in new issue
Block a user