Compare commits

...
11 Commits
Author SHA1 Message Date
Martin Robertz f1fb01f8c7 Merge pull request #30 from GTNewHorizons/fix/keybind-lang
Fix lang key for keybind
2023-08-08 13:45:22 +02:00
miozune 07688d5d51 Fix lang key for keybind 2023-08-08 18:36:27 +09:00
miozune 88b764a8a3 Fix formatting in lang files 2023-08-08 18:35:31 +09:00
miozune a0191c1527 Update dependencies 2023-08-08 18:35:11 +09:00
miozune 7ee36e544f updateBuildScript 2023-08-08 18:34:53 +09:00
miozune dd02423102 Remove outdated script 2023-08-08 18:34:31 +09:00
Martin Robertz 089d2fc3c2 Merge pull request #29 from GTNewHorizons/fix/magnet_npe_and_updates
Fix/magnet npe and updates
2023-07-30 17:43:57 +02:00
Firenoo 7a907225d6 Update dependencies 2023-07-30 08:25:27 -07:00
Firenoo bcd6fbbdf5 Update buildscript 2023-07-30 08:23:44 -07:00
Firenoo 9188911cce WCTGuiHandler: clean up some old code w/ Java 17 syntax 2023-07-30 08:23:38 -07:00
Firenoo 44d039a517 Fix NPE when magnet card is used w/o WCT in inventory 2023-07-30 08:22:54 -07:00
18 changed files with 273 additions and 279 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
+148 -64
View File
@@ -1,4 +1,4 @@
//version: 1684218858
//version: 1691351470
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
@@ -69,7 +69,7 @@ plugins {
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.3.14'
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.24'
}
print("You might want to check out './gradlew :faq' if your build fails.\n")
@@ -115,6 +115,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", "")
@@ -357,7 +359,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(
@@ -379,9 +401,13 @@ if (identifiedVersion == versionOverride) {
group = "com.github.GTNewHorizons"
if (project.hasProperty("customArchiveBaseName") && customArchiveBaseName) {
archivesBaseName = customArchiveBaseName
base {
archivesName = customArchiveBaseName
}
} else {
archivesBaseName = modId
base {
archivesName = modId
}
}
@@ -465,10 +491,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) {
@@ -479,7 +514,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)
@@ -537,13 +579,28 @@ 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/"
@@ -574,6 +631,8 @@ def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
ext.mixinProviderSpec = mixinProviderSpec
def mixingConfigRefMap = 'mixins.' + modId + '.refmap.json'
dependencies {
if (usesMixins.toBoolean()) {
annotationProcessor('org.ow2.asm:asm-debug-all:5.0.3')
@@ -585,7 +644,7 @@ dependencies {
}
}
if (usesMixins.toBoolean()) {
implementation(mixinProviderSpec)
implementation(modUtils.enableMixins(mixinProviderSpec, mixingConfigRefMap))
} else if (forceEnableMixins.toBoolean()) {
runtimeOnlyNonPublishable(mixinProviderSpec)
}
@@ -611,12 +670,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"
@@ -648,46 +727,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 {
@@ -705,7 +755,6 @@ tasks.named("processResources", ProcessResources).configure {
}
if (usesMixins.toBoolean()) {
from refMap
dependsOn("compileJava", "compileScala")
}
}
@@ -724,16 +773,16 @@ ext.java17PatchDependenciesCfg = configurations.create("java17PatchDependencies"
}
dependencies {
def lwjgl3ifyVersion = '1.3.5'
def lwjgl3ifyVersion = '1.4.0'
def asmVersion = '9.4'
if (modId != 'lwjgl3ify') {
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
}
if (modId != 'hodgepodge') {
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.2.13')
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.2.26')
}
java17PatchDependencies('net.minecraft:launchwrapper:1.15') {transitive = false}
java17PatchDependencies('net.minecraft:launchwrapper:1.17.2') {transitive = false}
java17PatchDependencies("org.ow2.asm:asm:${asmVersion}")
java17PatchDependencies("org.ow2.asm:asm-commons:${asmVersion}")
java17PatchDependencies("org.ow2.asm:asm-tree:${asmVersion}")
@@ -979,6 +1028,9 @@ idea {
}
}
runConfigurations {
"0. Build and Test"(Gradle) {
taskNames = ["build"]
}
"1. Run Client"(Gradle) {
taskNames = ["runClient"]
}
@@ -1098,6 +1150,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
@@ -1118,12 +1178,14 @@ publishing {
}
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()) {
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"
}
}
}
}
@@ -1238,7 +1300,7 @@ def addCurseForgeRelation(String type, String name) {
// Updating
def buildscriptGradleVersion = "8.1.1"
def buildscriptGradleVersion = "8.2.1"
tasks.named('wrapper', Wrapper).configure {
gradleVersion = buildscriptGradleVersion
@@ -1276,12 +1338,14 @@ tasks.register('faq') {
description = 'Prints frequently asked questions about building a project'
doLast {
print("If your build fails to fetch dependencies, they might have been deleted and replaced by newer " +
"versions.\nCheck if the versions you try to fetch are still on the distributing sites.\n" +
"The links can be found in repositories.gradle and build.gradle:repositories, " +
"not build.gradle:buildscript.repositories - this one is for gradle plugin metadata.\n\n" +
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.")
"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.")
}
}
@@ -1342,8 +1406,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
@@ -1508,3 +1578,17 @@ def getSecondaryArtifacts() {
if (apiPackage) secondaryArtifacts += [apiJar]
return secondaryArtifacts
}
// 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'
}
+6 -6
View File
@@ -1,10 +1,10 @@
// Add your dependencies here
dependencies {
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-216-GTNH:dev")
api("com.github.GTNewHorizons:Baubles:1.0.1.14:dev")
api("curse.maven:cofh-core-69162:2388751")
api("com.github.GTNewHorizons:NotEnoughItems:2.3.51-GTNH:dev")
compileOnly("com.github.GTNewHorizons:MouseTweaks:2.4.8-GTNH:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:EnderIO:2.4.17:dev") { transitive = false }
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-247-GTNH:dev")
implementation("com.github.GTNewHorizons:Baubles:1.0.1.16:dev")
compileOnly("curse.maven:cofh-core-69162:2388751")
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.3.81-GTNH:dev")
compileOnly("com.github.GTNewHorizons:MouseTweaks:2.4.9-GTNH:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:EnderIO:2.4.24:dev") { transitive = false }
}
+4
View File
@@ -21,6 +21,10 @@ forgeVersion = 10.13.4.1614
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
developmentEnvironmentUserName = Developer
# Enables using modern java syntax (up to version 17) via Jabel, while still targetting JVM 8.
# See https://github.com/bsideup/jabel for details on how this works.
enableModernJavaSyntax = true
# Define a source file of your project with:
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mods version when compiled. You should use this to specify your mod's
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
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
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+6 -5
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
@@ -144,7 +141,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 +149,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 +194,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
-10
View File
@@ -1,14 +1,4 @@
// Add any additional repositories for your dependencies here
repositories {
maven {
name = "GTNH Maven"
url = "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
}
maven {
url "https://cursemaven.com"
}
maven {
url = "https://jitpack.io"
}
}
@@ -30,70 +30,61 @@ public class WCTGuiHandler implements IGuiHandler {
@Override
public Object getServerGuiElement(int guiId, EntityPlayer player, World world, int x, int y, int z) {
final IWirelessCraftingTermHandler wh = (IWirelessCraftingTermHandler) AEApi.instance().registries().wireless()
.getWirelessTerminalHandler(RandomUtils.getWirelessTerm(player.inventory));
if (wh != null) {
final WirelessTerminalGuiObject obj = new WirelessTerminalGuiObject(
wh,
RandomUtils.getWirelessTerm(player.inventory),
player,
world,
x,
y,
z);
if (obj != null) {
final IPortableCell terminal = obj;
if (guiId == Reference.GUI_WCT) {
return updateGui(
new ContainerWirelessCraftingTerminal(player, player.inventory),
world,
x,
y,
z,
ForgeDirection.UNKNOWN,
obj);
}
if (guiId == Reference.GUI_CRAFTING_STATUS) {
return updateGui(
new ContainerCraftingStatus(player.inventory, terminal),
world,
x,
y,
z,
ForgeDirection.UNKNOWN,
obj);
}
if (guiId == Reference.GUI_CRAFT_AMOUNT) {
return updateGui(
new ContainerCraftAmount(player, terminal),
world,
x,
y,
z,
ForgeDirection.UNKNOWN,
obj);
}
if (guiId == Reference.GUI_CRAFT_CONFIRM) {
return updateGui(
new ContainerCraftConfirm(player, terminal),
world,
x,
y,
z,
ForgeDirection.UNKNOWN,
obj);
}
}
}
if (guiId == Reference.GUI_MAGNET) {
return new ContainerMagnet(player, player.inventory);
}
return null;
final IWirelessCraftingTermHandler wh = (IWirelessCraftingTermHandler) AEApi.instance().registries().wireless()
.getWirelessTerminalHandler(RandomUtils.getWirelessTerm(player.inventory));
if (wh == null) {
return null;
}
final WirelessTerminalGuiObject term = new WirelessTerminalGuiObject(
wh,
RandomUtils.getWirelessTerm(player.inventory),
player,
world,
x,
y,
z);
return switch (guiId) {
case Reference.GUI_WCT -> updateGui(
new ContainerWirelessCraftingTerminal(player, player.inventory),
world,
x,
y,
z,
ForgeDirection.UNKNOWN,
term);
case Reference.GUI_CRAFTING_STATUS -> updateGui(
new ContainerCraftingStatus(player.inventory, term),
world,
x,
y,
z,
ForgeDirection.UNKNOWN,
term);
case Reference.GUI_CRAFT_AMOUNT -> updateGui(
new ContainerCraftAmount(player, term),
world,
x,
y,
z,
ForgeDirection.UNKNOWN,
term);
case Reference.GUI_CRAFT_CONFIRM -> updateGui(
new ContainerCraftConfirm(player, term),
world,
x,
y,
z,
ForgeDirection.UNKNOWN,
term);
default -> null;
};
}
@Override
@@ -30,9 +30,9 @@ public class KeybindHandler {
public static KeyBinding changeMagnetMode;
public static void registerKeybinds() {
openTerminal = new KeyBinding("ae2wct.OpenTerminal", Keyboard.CHAR_NONE, "key.categories.ae2wct");
openMagnetFilter = new KeyBinding("ae2wct.OpenMagnetFilter", Keyboard.CHAR_NONE, "key.categories.ae2wct");
changeMagnetMode = new KeyBinding("ae2wct.SwitchMagnetMode", Keyboard.CHAR_NONE, "key.categories.ae2wct");
openTerminal = new KeyBinding("key.OpenTerminal", Keyboard.CHAR_NONE, "key.categories.ae2wct");
openMagnetFilter = new KeyBinding("key.OpenMagnetFilter", Keyboard.CHAR_NONE, "key.categories.ae2wct");
changeMagnetMode = new KeyBinding("key.SwitchMagnetMode", Keyboard.CHAR_NONE, "key.categories.ae2wct");
ClientRegistry.registerKeyBinding(openTerminal);
ClientRegistry.registerKeyBinding(openMagnetFilter);
ClientRegistry.registerKeyBinding(changeMagnetMode);
@@ -219,7 +219,7 @@ public class ItemWirelessCraftingTerminal extends AERootPoweredItem
@Override
public boolean canHandle(final ItemStack is) {
return is.getItem() instanceof IWirelessCraftingTerminalItem;
return is != null && is.getItem() instanceof IWirelessCraftingTerminalItem;
}
@Override
@@ -22,10 +22,9 @@ public class Reference {
public static boolean WCT_HASCHECKEDVERSION = false;
// Gui IDs
private static int ae2wctGuiIndex = 0;
public static final int GUI_WCT = ++ae2wctGuiIndex;
public static final int GUI_CRAFTING_STATUS = ++ae2wctGuiIndex;
public static final int GUI_CRAFT_AMOUNT = ++ae2wctGuiIndex;
public static final int GUI_CRAFT_CONFIRM = ++ae2wctGuiIndex;
public static final int GUI_MAGNET = ++ae2wctGuiIndex;
public static final int GUI_WCT = 0;
public static final int GUI_CRAFTING_STATUS = 1;
public static final int GUI_CRAFT_AMOUNT = 2;
public static final int GUI_CRAFT_CONFIRM = 3;
public static final int GUI_MAGNET = 4;
}
@@ -1,14 +1,10 @@
//**************************//
//WIRELESS CRAFTING TEMRINAL//
//**************************//
//Items
#Items
item.wirelessCraftingTerminal.name=Drahtlose Fertigungskonsole
item.infinityBoosterCard.name=Unendliche Drahtlosverstärkerkarte
item.magnetCard.name=Magnetkarte
itemGroup.ae2wct=§9AE2 Wireless Crafting Terminal
//Tooltips
#Tooltips
gui.tooltips.ae2wct.PressShift=Infos via Shiftklick
gui.tooltips.ae2wct.OnlyWorks=Funktioniert nur im Slot der drahtlosen Fertigungskonsole
gui.tooltips.ae2wct.TitleDesc=Beschreibung
@@ -41,10 +37,10 @@ gui.tooltips.ae2wct.OrPress=or press
gui.tooltips.ae2wct.Press=Press
gui.tooltips.ae2wct.ToSwitchMode=to switch magnet mode
//Labels
#Labels
gui.labels.ae2wct.WirelessTermLabel=Drahtloskonsole
//Config Descriptions
#Config Descriptions
config.ae2wct.MaxPowerDesc=In der Drahtloskonsole maximal speicherbare Energie in AE
config.ae2wct.InfinityBoosterCfgDesc=Erlaube das unendliche Drahtlosverstärkerupgrade
config.ae2wct.EasyModeDesc=Aktiviere den "Einfachen Modus" (Einfachere Rezepte + Rezept für unendlichen Drahtlosverstärker)
@@ -55,7 +51,7 @@ config.ae2wct.DoVersionCheck=Check for updates
config.ae2wct.NewVersionAvailable=New version of Wireless Crafting Terminal is available!
config.ae2wct.ClickString=["Click here to go to download page [",{"text":"Download","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to download the latest version","color":"green"}},"clickEvent":{"action":"open_url","value":"http://minecraft.curseforge.com/projects/wireless-crafting-terminal"}},"]"]
//Achievements
#Achievements
achievement.wctAchievement=Digitales Fertigen über WLAN
achievement.wctAchievement.desc=Fertige eine drahtlose Fertigungskonsole
achievement.boosterAchievement=Interdimensionales Fertigen
@@ -63,14 +59,14 @@ achievement.boosterAchievement.desc=Erwerbe eine unendliche Drahtlosverstärkerk
achievement.magnetAchievement=Digitales Staubsaugen!
achievement.magnetAchievement.desc=Fertige eine Magnetkarte
//Chat Messages
#Chat Messages
chatmessages.ae2wct.NoNetworkPower=Netzwerk hat keine Energie!
chatmessages.ae2wct.MagnetMode1=Magnetkarte deaktiviert
chatmessages.ae2wct.MagnetMode2=Magnetkarte aktiviert - Items, die nicht im AE-Netzwerk gespeichert sind, werden im Inventar platziert
chatmessages.ae2wct.MagnetMode3=Magnetkarte aktiviert - Items, die nicht im AE-Netzwerk gespeichert sind, werden auf dem Boden liegen gelassen
chatmessages.ae2wct.InitializeMagnet=Vor dem Benutzen des Tastenkürzels muss zuerst mit der Magnetkarte in der Hand ein Rechtsklick ausgeführt werden!
//Keybindings
#Keybindings
key.OpenTerminal=Öffne drahtlose Fertigungskonsole
key.OpenMagnetFilter=Öffne Magnetkartenfilter-GUI
key.SwitchMagnetMode=Aktiviere/Deaktiviere Magnetkarte
@@ -1,14 +1,10 @@
//**************************//
//WIRELESS CRAFTING TEMRINAL//
//**************************//
//Items
#Items
item.wirelessCraftingTerminal.name=Wireless Crafting Terminal
item.infinityBoosterCard.name=Infinity Booster Card
item.magnetCard.name=Magnet Card
itemGroup.ae2wct=§9AE2 Wireless Crafting Terminal
//Tooltips
#Tooltips
gui.tooltips.ae2wct.PressShift=Hold Shift for Info
gui.tooltips.ae2wct.OnlyWorks=Only works when in Wireless Crafting Terminal slot!
gui.tooltips.ae2wct.TitleDesc=Description
@@ -41,10 +37,10 @@ gui.tooltips.ae2wct.OrPress=or press
gui.tooltips.ae2wct.Press=Press
gui.tooltips.ae2wct.ToSwitchMode=to switch magnet mode
//Labels
#Labels
gui.labels.ae2wct.WirelessTermLabel=Wireless Term
//Config Descriptions
#Config Descriptions
config.ae2wct.MaxPowerDesc=Maximum Power in AE units the wireless terminal can hold
config.ae2wct.InfinityBoosterCfgDesc=Enable Infinite Range Booster Upgrade
config.ae2wct.EasyModeDesc=Enable Easy Mode (Easier Recipes+Infinity Booster Recipe)
@@ -54,7 +50,7 @@ config.ae2wct.MineTweakerOverride=Enable MineTweaker Override (true=disables all
config.ae2wct.DoVersionCheck=Check for updates
config.ae2wct.ClickString=["Click here to go to download page [",{"text":"Download","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to download the latest version","color":"green"}},"clickEvent":{"action":"open_url","value":"http://minecraft.curseforge.com/projects/wireless-crafting-terminal"}},"]"]
//Achievements
#Achievements
achievement.wctAchievement=Digital Crafting Over WiFi
achievement.wctAchievement.desc=Craft a Wireless Crafting Terminal
achievement.boosterAchievement=Interdimensional Crafting Sack
@@ -62,15 +58,15 @@ achievement.boosterAchievement.desc=Aquire an Infinity Booster Card
achievement.magnetAchievement=Digital Hoover
achievement.magnetAchievement.desc=Craft a Magnet Card
//Chat Messages
#Chat Messages
chatmessages.ae2wct.NoNetworkPower=Network has no power!
chatmessages.ae2wct.MagnetMode1=Magnet Card Deactivated
chatmessages.ae2wct.MagnetMode2=Magnet Card Activated - Items not stored in AE network will be placed in inventory
chatmessages.ae2wct.MagnetMode3=Magnet Card Activated - Items not stored in AE network will be left on ground
chatmessages.ae2wct.InitializeMagnet=You must first right-click with the Magnet Card in hand before using the keybind!
//Keybindings
#Keybindings
key.OpenTerminal=Open Wireless Crafting Terminal
key.OpenMagnetFilter=Open Magnet Card Filter GUI
key.SwitchMagnetMode=Activate/Deactivate Magnet Card
key.categories.ae2wct=Wireless Crafting Terminal
key.categories.ae2wct=Wireless Crafting Terminal
@@ -1,14 +1,10 @@
//**************************//
//WIRELESS CRAFTING TEMRINAL//
//**************************//
//Items
#Items
item.wirelessCraftingTerminal.name=Wireless Crafting Terminal
item.infinityBoosterCard.name=Infinity Booster Card
item.magnetCard.name=Magnet Card
itemGroup.ae2wct=§9AE2 Wireless Crafting Terminal
//Tooltips
#Tooltips
gui.tooltips.ae2wct.PressShift=Hold Shift for Info
gui.tooltips.ae2wct.OnlyWorks=Only works when in Wireless Crafting Terminal slot!
gui.tooltips.ae2wct.TitleDesc=Description
@@ -41,10 +37,10 @@ gui.tooltips.ae2wct.OrPress=or press
gui.tooltips.ae2wct.Press=Press
gui.tooltips.ae2wct.ToSwitchMode=to switch magnet mode
//Labels
#Labels
gui.labels.ae2wct.WirelessTermLabel=Wireless Term
//Config Descriptions
#Config Descriptions
config.ae2wct.MaxPowerDesc=Maximum Power in AE units the wireless terminal can hold
config.ae2wct.InfinityBoosterCfgDesc=Enable Infinite Range Booster Upgrade
config.ae2wct.EasyModeDesc=Enable Easy Mode (Easier Recipes+Infinity Booster Recipe)
@@ -54,7 +50,7 @@ config.ae2wct.MineTweakerOverride=Enable MineTweaker Override (true=disables all
config.ae2wct.DoVersionCheck=Check for updates
config.ae2wct.ClickString=["Click here to go to download page [",{"text":"Download","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to download the latest version","color":"green"}},"clickEvent":{"action":"open_url","value":"http://minecraft.curseforge.com/projects/wireless-crafting-terminal"}},"]"]
//Achievements
#Achievements
achievement.wctAchievement=Digital Crafting Over WiFi
achievement.wctAchievement.desc=Craft a Wireless Crafting Terminal
achievement.boosterAchievement=Interdimensional Crafting Sack
@@ -62,15 +58,15 @@ achievement.boosterAchievement.desc=Aquire an Infinity Booster Card
achievement.magnetAchievement=Digital Hoover
achievement.magnetAchievement.desc=Craft a Magnet Card
//Chat Messages
#Chat Messages
chatmessages.ae2wct.NoNetworkPower=Network has no power!
chatmessages.ae2wct.MagnetMode1=Magnet Card Deactivated
chatmessages.ae2wct.MagnetMode2=Magnet Card Activated - Items not stored in AE network will be placed in inventory
chatmessages.ae2wct.MagnetMode3=Magnet Card Activated - Items not stored in AE network will be left on ground
chatmessages.ae2wct.InitializeMagnet=You must first right-click with the Magnet Card in hand before using the keybind!
//Keybindings
#Keybindings
key.OpenTerminal=Open Wireless Crafting Terminal
key.OpenMagnetFilter=Open Magnet Card Filter GUI
key.SwitchMagnetMode=Activate/Deactivate Magnet Card
key.categories.ae2wct=Wireless Crafting Terminal
key.categories.ae2wct=Wireless Crafting Terminal
@@ -1,14 +1,10 @@
//**************************//
//WIRELESS CRAFTING TEMRINAL//
//**************************//
//Items
#Items
item.wirelessCraftingTerminal.name=Wireless Crafting Terminal
item.infinityBoosterCard.name=Infinity Booster Card
item.magnetCard.name=Magnet Card
itemGroup.ae2wct=§9AE2 Wireless Crafting Terminal
//Tooltips
#Tooltips
gui.tooltips.ae2wct.PressShift=Hold Shift for Info
gui.tooltips.ae2wct.OnlyWorks=Only works when in Wireless Crafting Terminal slot!
gui.tooltips.ae2wct.TitleDesc=Description
@@ -41,10 +37,10 @@ gui.tooltips.ae2wct.OrPress=or press
gui.tooltips.ae2wct.Press=Press
gui.tooltips.ae2wct.ToSwitchMode=to switch magnet mode
//Labels
#Labels
gui.labels.ae2wct.WirelessTermLabel=Wireless Term
//Config Descriptions
#Config Descriptions
config.ae2wct.MaxPowerDesc=Maximum Power in AE units the wireless terminal can hold
config.ae2wct.InfinityBoosterCfgDesc=Enable Infinite Range Booster Upgrade
config.ae2wct.EasyModeDesc=Enable Easy Mode (Easier Recipes+Infinity Booster Recipe)
@@ -56,7 +52,7 @@ config.ae2wct.NewVersionAvailable=New version of Wireless Crafting Terminal is a
config.ae2wct.ClickString=["Click here to go to download page [",{"text":"Download","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to download the latest version","color":"green"}},"clickEvent":{"action":"open_url","value":"http://minecraft.curseforge.com/projects/wireless-crafting-terminal"}},"]"]
config.ae2wct.SaveSearchString=Persist terminal search string between sessions
//Achievements
#Achievements
achievement.wctAchievement=Digital Crafting Over WiFi
achievement.wctAchievement.desc=Craft a Wireless Crafting Terminal
achievement.boosterAchievement=Interdimensional Crafting Sack
@@ -64,15 +60,15 @@ achievement.boosterAchievement.desc=Aquire an Infinity Booster Card
achievement.magnetAchievement=Digital Hoover
achievement.magnetAchievement.desc=Craft a Magnet Card
//Chat Messages
#Chat Messages
chatmessages.ae2wct.NoNetworkPower=Network has no power!
chatmessages.ae2wct.MagnetMode1=Magnet Card Deactivated
chatmessages.ae2wct.MagnetMode2=Magnet Card Activated - Items not stored in AE network will be placed in inventory
chatmessages.ae2wct.MagnetMode3=Magnet Card Activated - Items not stored in AE network will be left on ground
chatmessages.ae2wct.InitializeMagnet=You must first right-click with the Magnet Card in hand before using the keybind!
//Keybindings
#Keybindings
key.OpenTerminal=Open Wireless Crafting Terminal
key.OpenMagnetFilter=Open Magnet Card Filter GUI
key.SwitchMagnetMode=Activate/Deactivate Magnet Card
key.categories.ae2wct=Wireless Crafting Terminal
key.categories.ae2wct=Wireless Crafting Terminal
@@ -1,14 +1,10 @@
//**************************//
//WIRELESS CRAFTING TEMRINAL//
//**************************//
//Items
#Items
item.wirelessCraftingTerminal.name=Terminal Inal?mbrico de Fabricaci?n
item.infinityBoosterCard.name=Tarjeta de Acelerador de Infinito
item.magnetCard.name=Tarjeta de im?n
itemGroup.ae2wct=§9AE2 Terminal Inal?mbrico de Fabricaci?n
//Tooltips
#Tooltips
gui.tooltips.ae2wct.PressShift=Presionada la Tecla May?s para Informaci?n
gui.tooltips.ae2wct.OnlyWorks=S?lo funciona cuando en la ranura de la Terminal de trabajo inal?mbrica!
gui.tooltips.ae2wct.TitleDesc=la Descripci?n
@@ -16,11 +12,11 @@ gui.tooltips.ae2wct.InfinityBoosterDesc=Permite un vinculado AE2 elaboraci?n Ter
gui.tooltips.ae2wct.MagnetDesc=Un im?n que autom?ticamente inserta elementos en la red AE.
gui.tooltips.ae2wct.MagnetDesc2=Haga clic en establecer filtro
gui.tooltips.ae2wct.LinkStatus=El estado de enlace
gui.tooltips.ae2wct.Installed=Instalar
gui.tooltips.ae2wct.Installed=Instalar
gui.tooltips.ae2wct.NotInstalled=Instalado
gui.tooltips.ae2wct.Active=Activo
gui.tooltips.ae2wct.Inactive=Inactivo
gui.tooltips.ae2wct.Status=Condici?n
gui.tooltips.ae2wct.Status=Condici?n
gui.tooltips.ae2wct.EmptyTrash=Vaciar Papelera
gui.tooltips.ae2wct.EmptyTrashDesc=Elimine el contenido de la papelera de la ranura
gui.tooltips.ae2wct.MagnetFilterTitle=Filtro de im?n
@@ -41,10 +37,10 @@ gui.tooltips.ae2wct.OrPress=or press
gui.tooltips.ae2wct.Press=Press
gui.tooltips.ae2wct.ToSwitchMode=to switch magnet mode
//Labels
#Labels
gui.labels.ae2wct.WirelessTermLabel=T?rmino Inal?mbrico
//Config Descriptions
#Config Descriptions
config.ae2wct.MaxPowerDesc=Potencia m?xima en unidades AE que puede sostener el terminal inal?mbrico
config.ae2wct.InfinityBoosterCfgDesc=Activar infinita gama Booster mejora
config.ae2wct.EasyModeDesc=Activar el modo f?cil (Recetas m?s f?ciles y Infinity Booster receta)
@@ -54,7 +50,7 @@ config.ae2wct.MineTweakerOverride=Enable MineTweaker Override (true=disables all
config.ae2wct.DoVersionCheck=Check for updates
config.ae2wct.ClickString=["Click here to go to download page [",{"text":"Download","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to download the latest version","color":"green"}},"clickEvent":{"action":"open_url","value":"http://minecraft.curseforge.com/projects/wireless-crafting-terminal"}},"]"]
//Achievements
#Achievements
achievement.wctAchievement=Digital elaboraci?n sobre WLAN
achievement.wctAchievement.desc=Un Wireless Terminal de elaboraci?n del arte
achievement.boosterAchievement=Saco de fabricaci?n interdimensional
@@ -62,14 +58,14 @@ achievement.boosterAchievement.desc=Adquirir una tarjeta de acelerador de infini
achievement.magnetAchievement=Aspiradora digital
achievement.magnetAchievement.desc=Elaborar una tarjeta de im?n
//Chat Messages
#Chat Messages
chatmessages.ae2wct.NoNetworkPower=Red no tiene poder!
chatmessages.ae2wct.MagnetMode1=Imanes tarjeta desactivada
chatmessages.ae2wct.MagnetMode2=Tarjeta im?n activado - Art?culos no almacenados en red AE se colocar? en el inventario
chatmessages.ae2wct.MagnetMode3=Tarjeta im?n activado - Art?culos no almacenados en red AE se quedar?n en la tierra
//Keybindings
#Keybindings
key.OpenTerminal=Abierto Terminal Inal?mbrico de Fabricaci?n
key.OpenMagnetFilter=Filtro tarjeta de im?n abierto GUI
key.SwitchMagnetMode=Activar/desactivar tarjeta im?n
key.categories.ae2wct=Terminal Inal?mbrico de Fabricaci?n
key.categories.ae2wct=Terminal Inal?mbrico de Fabricaci?n
@@ -1,14 +1,10 @@
//**************************//
//WIRELESS CRAFTING TEMRINAL//
//**************************//
//Items
#Items
item.wirelessCraftingTerminal.name=无线合成终端
item.infinityBoosterCard.name=量子增幅器
item.magnetCard.name=磁场增幅卡
itemGroup.ae2wct=AE2无线合成终端
//Tooltips
#Tooltips
gui.tooltips.ae2wct.PressShift=按住Shift查看详细信息
gui.tooltips.ae2wct.OnlyWorks=只能安装在无线合成终端中使用!
gui.tooltips.ae2wct.TitleDesc=介绍
@@ -41,10 +37,10 @@ gui.tooltips.ae2wct.OrPress=或按
gui.tooltips.ae2wct.Press=按
gui.tooltips.ae2wct.ToSwitchMode=切换磁场模式
//Labels
#Labels
gui.labels.ae2wct.WirelessTermLabel=无线合成终端
//Config Descriptions
#Config Descriptions
config.ae2wct.MaxPowerDesc=Maximum Power in AE units the wireless terminal can hold
config.ae2wct.InfinityBoosterCfgDesc=Enable Infinite Range Booster Upgrade
config.ae2wct.EasyModeDesc=Enable Easy Mode (Easier Recipes+Infinity Booster Recipe)
@@ -55,7 +51,7 @@ config.ae2wct.DoVersionCheck=Check for updates
config.ae2wct.NewVersionAvailable=New version of Wireless Crafting Terminal is available!
config.ae2wct.ClickString=["Click here to go to download page [",{"text":"Download","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Click this to download the latest version","color":"green"}},"clickEvent":{"action":"open_url","value":"http://minecraft.curseforge.com/projects/wireless-crafting-terminal"}},"]"]
//Achievements
#Achievements
achievement.wctAchievement=Digital Crafting Over WiFi
achievement.wctAchievement.desc=Craft a Wireless Crafting Terminal
achievement.boosterAchievement=Interdimensional Crafting Sack
@@ -63,14 +59,14 @@ achievement.boosterAchievement.desc=Aquire an Infinity Booster Card
achievement.magnetAchievement=Digital Hoover
achievement.magnetAchievement.desc=Craft a Magnet Card
//Chat Messages
#Chat Messages
chatmessages.ae2wct.NoNetworkPower=网络供能中断!
chatmessages.ae2wct.MagnetMode1=磁场增幅卡关闭
chatmessages.ae2wct.MagnetMode2=磁场增幅卡激活 - 未存储于AE网络中的物品将被放置在背包中
chatmessages.ae2wct.MagnetMode3=磁场增幅卡激活 - 未存储于AE网络中的物品将不会被拾取
chatmessages.ae2wct.InitializeMagnet=在使用绑定按键前,你必须手持磁场增幅卡先右键!
//Keybindings
#Keybindings
key.OpenTerminal=打开无线合成终端
key.OpenMagnetFilter=打开磁场增幅卡过滤GUI
key.SwitchMagnetMode=激活/关闭磁场增幅卡