mirror of
https://github.com/GTNewHorizons/WirelessCraftingTerminal.git
synced 2026-11-26 06:42:55 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c568f2dd29 | ||
|
|
0755a0d5f5 | ||
|
|
4e757686c6 | ||
|
|
4c491ba2cb | ||
|
|
2f00f8d5d8 | ||
|
|
0a761be328 | ||
|
|
c8fee02cdc | ||
|
|
9d1e6e9310 | ||
|
|
cbad80517a | ||
|
|
095924d6e5 | ||
|
|
d109fcc774 | ||
|
|
76aa7af49b | ||
|
|
a63db463a7 | ||
|
|
e605503e74 | ||
|
|
d26e3cf04b | ||
|
|
12b3381ae5 |
No files matched your search
+6
-5
@@ -1,10 +1,11 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-346-GTNH:dev")
|
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-608-GTNH:dev")
|
||||||
implementation("com.github.GTNewHorizons:Baubles:1.0.4:dev")
|
|
||||||
|
implementation("com.github.GTNewHorizons:Baubles-Expanded:2.1.7-GTNH:dev")
|
||||||
compileOnly("curse.maven:cofh-core-69162:2388751")
|
compileOnly("curse.maven:cofh-core-69162:2388751")
|
||||||
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.5.25-GTNH:dev")
|
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.7.44-GTNH:dev")
|
||||||
compileOnly("com.github.GTNewHorizons:MouseTweaks:2.4.17-GTNH:dev") { transitive = false }
|
compileOnly("com.github.GTNewHorizons:MouseTweaks:2.4.20-GTNH:dev") { transitive = false }
|
||||||
compileOnly("com.github.GTNewHorizons:EnderIO:2.7.1:dev") { transitive = false }
|
compileOnly("com.github.GTNewHorizons:EnderIO:2.9.12:dev") { transitive = false }
|
||||||
}
|
}
|
||||||
+13
-2
@@ -14,7 +14,7 @@ modId = ae2wct
|
|||||||
modGroup = net.p455w0rd.wirelesscraftingterminal
|
modGroup = net.p455w0rd.wirelesscraftingterminal
|
||||||
|
|
||||||
# Whether to use modGroup as the maven publishing group.
|
# Whether to use modGroup as the maven publishing group.
|
||||||
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
# When false, com.github.GTNewHorizons is used.
|
||||||
useModGroupForPublishing = false
|
useModGroupForPublishing = false
|
||||||
|
|
||||||
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||||
@@ -85,6 +85,11 @@ accessTransformersFile =
|
|||||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||||
usesMixins = false
|
usesMixins = false
|
||||||
|
|
||||||
|
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
|
||||||
|
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
|
||||||
|
# Mixin classes will have access to "main" classes, but not the other way around.
|
||||||
|
separateMixinSourceSet =
|
||||||
|
|
||||||
# Adds some debug arguments like verbose output and class export.
|
# Adds some debug arguments like verbose output and class export.
|
||||||
usesMixinDebug = false
|
usesMixinDebug = false
|
||||||
|
|
||||||
@@ -117,9 +122,15 @@ minimizeShadowedDependencies = true
|
|||||||
# If disabled, won't rename the shadowed classes.
|
# If disabled, won't rename the shadowed classes.
|
||||||
relocateShadowedDependencies = true
|
relocateShadowedDependencies = true
|
||||||
|
|
||||||
# Adds the GTNH maven, CurseMaven, IC2/Player maven, and some more well-known 1.7.10 repositories.
|
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||||
includeWellKnownRepositories = true
|
includeWellKnownRepositories = true
|
||||||
|
|
||||||
|
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
|
||||||
|
# list of strings, with the acceptable keys being(case does not matter):
|
||||||
|
# cursemaven
|
||||||
|
# modrinth
|
||||||
|
excludeWellKnownRepositories =
|
||||||
|
|
||||||
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||||
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||||
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||||
|
|||||||
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.6-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
@@ -55,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
@@ -84,7 +86,7 @@ done
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||||
|
|
||||||
# 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
|
||||||
@@ -203,7 +205,7 @@ fi
|
|||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Collect all arguments for the java command:
|
# Collect all arguments for the java command:
|
||||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
# and any embedded shellness will be escaped.
|
# and any embedded shellness will be escaped.
|
||||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
# treated as '${Hostname}' itself on the command line.
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|||||||
Vendored
+2
@@ -13,6 +13,8 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.19'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
+14
-1
@@ -37,6 +37,7 @@ import appeng.api.config.TerminalFontSize;
|
|||||||
import appeng.api.config.TerminalStyle;
|
import appeng.api.config.TerminalStyle;
|
||||||
import appeng.api.config.YesNo;
|
import appeng.api.config.YesNo;
|
||||||
import appeng.api.storage.data.IAEItemStack;
|
import appeng.api.storage.data.IAEItemStack;
|
||||||
|
import appeng.api.storage.data.IDisplayRepo;
|
||||||
import appeng.api.util.IConfigManager;
|
import appeng.api.util.IConfigManager;
|
||||||
import appeng.api.util.IConfigurableObject;
|
import appeng.api.util.IConfigurableObject;
|
||||||
import appeng.client.ActionKey;
|
import appeng.client.ActionKey;
|
||||||
@@ -88,7 +89,7 @@ public class GuiWirelessCraftingTerminal extends AEBaseGui
|
|||||||
public static int craftingGridOffsetX = 80;
|
public static int craftingGridOffsetX = 80;
|
||||||
public static int craftingGridOffsetY;
|
public static int craftingGridOffsetY;
|
||||||
private static String memoryText = "";
|
private static String memoryText = "";
|
||||||
private final ItemRepo repo;
|
private final IDisplayRepo repo;
|
||||||
private final int offsetX = 8;
|
private final int offsetX = 8;
|
||||||
private final IConfigManager configSrc;
|
private final IConfigManager configSrc;
|
||||||
private GuiTabButton craftingStatusBtn;
|
private GuiTabButton craftingStatusBtn;
|
||||||
@@ -654,6 +655,18 @@ public class GuiWirelessCraftingTerminal extends AEBaseGui
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void handleKeyboardInput() {
|
||||||
|
super.handleKeyboardInput();
|
||||||
|
|
||||||
|
// Pause the terminal when holding shift
|
||||||
|
this.repo.setPaused(hasShiftDown());
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean hasShiftDown() {
|
||||||
|
return Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
|
||||||
|
}
|
||||||
|
|
||||||
protected boolean isPowered() {
|
protected boolean isPowered() {
|
||||||
return this.repo.hasPower();
|
return this.repo.hasPower();
|
||||||
}
|
}
|
||||||
|
|||||||
-7
@@ -3,7 +3,6 @@ package net.p455w0rd.wirelesscraftingterminal.common;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.p455w0rd.wirelesscraftingterminal.common.utils.WCTLog;
|
|
||||||
import net.p455w0rd.wirelesscraftingterminal.core.sync.network.NetworkHandler;
|
import net.p455w0rd.wirelesscraftingterminal.core.sync.network.NetworkHandler;
|
||||||
import net.p455w0rd.wirelesscraftingterminal.creativetab.CreativeTabWCT;
|
import net.p455w0rd.wirelesscraftingterminal.creativetab.CreativeTabWCT;
|
||||||
import net.p455w0rd.wirelesscraftingterminal.handlers.AchievementHandler;
|
import net.p455w0rd.wirelesscraftingterminal.handlers.AchievementHandler;
|
||||||
@@ -57,7 +56,6 @@ public class WirelessCraftingTerminal {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void preInit(FMLPreInitializationEvent event) {
|
public void preInit(FMLPreInitializationEvent event) {
|
||||||
long stopwatch = WCTLog.beginSection("PreInit");
|
|
||||||
WirelessCraftingTerminal.WCTState = LoaderState.PREINITIALIZATION;
|
WirelessCraftingTerminal.WCTState = LoaderState.PREINITIALIZATION;
|
||||||
WirelessCraftingTerminal.INSTANCE = this;
|
WirelessCraftingTerminal.INSTANCE = this;
|
||||||
creativeTab = new CreativeTabWCT(CreativeTabs.getNextID(), Reference.MODID).setNoScrollbar();
|
creativeTab = new CreativeTabWCT(CreativeTabs.getNextID(), Reference.MODID).setNoScrollbar();
|
||||||
@@ -66,29 +64,24 @@ public class WirelessCraftingTerminal {
|
|||||||
FMLCommonHandler.instance().bus().register(proxy);
|
FMLCommonHandler.instance().bus().register(proxy);
|
||||||
AEApi.instance().registries().wireless()
|
AEApi.instance().registries().wireless()
|
||||||
.registerWirelessHandler((IWirelessTermHandler) ItemEnum.WIRELESS_CRAFTING_TERMINAL.getItem());
|
.registerWirelessHandler((IWirelessTermHandler) ItemEnum.WIRELESS_CRAFTING_TERMINAL.getItem());
|
||||||
WCTLog.endSection("PreInit", stopwatch);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void init(FMLInitializationEvent event) {
|
public void init(FMLInitializationEvent event) {
|
||||||
long stopwatch = WCTLog.beginSection("Init");
|
|
||||||
IntegrationRegistry.INSTANCE.init();
|
IntegrationRegistry.INSTANCE.init();
|
||||||
WirelessCraftingTerminal.WCTState = LoaderState.INITIALIZATION;
|
WirelessCraftingTerminal.WCTState = LoaderState.INITIALIZATION;
|
||||||
if (!Loader.isModLoaded("dreamcraft")) {
|
if (!Loader.isModLoaded("dreamcraft")) {
|
||||||
RecipeHandler.loadRecipes(!Reference.WCT_MINETWEAKER_OVERRIDE);
|
RecipeHandler.loadRecipes(!Reference.WCT_MINETWEAKER_OVERRIDE);
|
||||||
}
|
}
|
||||||
AchievementHandler.init();
|
AchievementHandler.init();
|
||||||
WCTLog.endSection("Init", stopwatch);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void postInit(final FMLPostInitializationEvent event) {
|
public void postInit(final FMLPostInitializationEvent event) {
|
||||||
long stopwatch = WCTLog.beginSection("PostInit");
|
|
||||||
IntegrationRegistry.INSTANCE.postInit();
|
IntegrationRegistry.INSTANCE.postInit();
|
||||||
NetworkRegistry.INSTANCE.registerGuiHandler(WirelessCraftingTerminal.INSTANCE, new WCTGuiHandler());
|
NetworkRegistry.INSTANCE.registerGuiHandler(WirelessCraftingTerminal.INSTANCE, new WCTGuiHandler());
|
||||||
NetworkHandler.instance = new NetworkHandler("WCT");
|
NetworkHandler.instance = new NetworkHandler("WCT");
|
||||||
WirelessCraftingTerminal.proxy.removeItemsFromNEI();
|
WirelessCraftingTerminal.proxy.removeItemsFromNEI();
|
||||||
WCTLog.endSection("PostInit", stopwatch);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LoaderState getLoaderState() {
|
public static LoaderState getLoaderState() {
|
||||||
|
|||||||
+1
@@ -19,5 +19,6 @@ public class ContainerCraftAmount extends appeng.container.implementations.Conta
|
|||||||
int y = (int) player.posY;
|
int y = (int) player.posY;
|
||||||
int z = (int) player.posZ;
|
int z = (int) player.posZ;
|
||||||
WCTGuiHandler.launchGui(Reference.GUI_CRAFT_CONFIRM, player, player.worldObj, x, y, z);
|
WCTGuiHandler.launchGui(Reference.GUI_CRAFT_CONFIRM, player, player.worldObj, x, y, z);
|
||||||
|
setupConfirmationGUI(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,40 +9,15 @@ public class WCTLog {
|
|||||||
|
|
||||||
public static final Logger log = LogManager.getLogger("Wireless Crafting Terminal");
|
public static final Logger log = LogManager.getLogger("Wireless Crafting Terminal");
|
||||||
|
|
||||||
/**
|
|
||||||
* Displays the section header.
|
|
||||||
*/
|
|
||||||
public static long beginSection(final String section) {
|
|
||||||
log.info(String.format("-=-=-=-=-=-=-=[START] %s=-=-=-=-=-=-=-", section));
|
|
||||||
return System.currentTimeMillis();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs a debug statement.
|
* Logs a debug statement.
|
||||||
*
|
|
||||||
* @param format
|
|
||||||
* @param data
|
|
||||||
*/
|
*/
|
||||||
public static void debug(final String format, final Object... data) {
|
public static void debug(final String format, final Object... data) {
|
||||||
log.debug(String.format(format, data));
|
log.debug(String.format(format, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Displays the section footer.
|
|
||||||
*/
|
|
||||||
public static void endSection(final String section, final long sectionStartTime) {
|
|
||||||
log.info(
|
|
||||||
String.format(
|
|
||||||
"-=-=-=-=-=-=-=[FINISH] %s in %dms=-=-=-=-=-=-=-",
|
|
||||||
section,
|
|
||||||
(System.currentTimeMillis() - sectionStartTime)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs basic info.
|
* Logs basic info.
|
||||||
*
|
|
||||||
* @param format
|
|
||||||
* @param data
|
|
||||||
*/
|
*/
|
||||||
public static void info(final String format, final Object... data) {
|
public static void info(final String format, final Object... data) {
|
||||||
log.info(String.format(format, data));
|
log.info(String.format(format, data));
|
||||||
@@ -50,9 +25,6 @@ public class WCTLog {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs an error.
|
* Logs an error.
|
||||||
*
|
|
||||||
* @param format
|
|
||||||
* @param data
|
|
||||||
*/
|
*/
|
||||||
public static void severe(final String format, final Object... data) {
|
public static void severe(final String format, final Object... data) {
|
||||||
log.error(String.format(format, data));
|
log.error(String.format(format, data));
|
||||||
@@ -60,9 +32,6 @@ public class WCTLog {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs a warning.
|
* Logs a warning.
|
||||||
*
|
|
||||||
* @param format
|
|
||||||
* @param data
|
|
||||||
*/
|
*/
|
||||||
public static void warning(final String format, final Object... data) {
|
public static void warning(final String format, final Object... data) {
|
||||||
log.warn(String.format(format, data));
|
log.warn(String.format(format, data));
|
||||||
|
|||||||
+1
@@ -71,6 +71,7 @@ public class PacketCraftRequest extends WCTPacket {
|
|||||||
|
|
||||||
if (player.openContainer instanceof ContainerCraftConfirm) {
|
if (player.openContainer instanceof ContainerCraftConfirm) {
|
||||||
final ContainerCraftConfirm ccc = (ContainerCraftConfirm) player.openContainer;
|
final ContainerCraftConfirm ccc = (ContainerCraftConfirm) player.openContainer;
|
||||||
|
ccc.setItemToCraft(cca.getItemToCraft());
|
||||||
ccc.setAutoStart(this.heldShift);
|
ccc.setAutoStart(this.heldShift);
|
||||||
ccc.setJob(futureJob);
|
ccc.setJob(futureJob);
|
||||||
cca.detectAndSendChanges();
|
cca.detectAndSendChanges();
|
||||||
|
|||||||
+2
-2
@@ -130,9 +130,9 @@ public class WirelessTerminalGuiObject
|
|||||||
|
|
||||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
@Override
|
@Override
|
||||||
public IItemList<IAEItemStack> getAvailableItems(final IItemList out) {
|
public IItemList<IAEItemStack> getAvailableItems(final IItemList out, int iteration) {
|
||||||
if (this.itemStorage != null) {
|
if (this.itemStorage != null) {
|
||||||
return this.itemStorage.getAvailableItems(out);
|
return this.itemStorage.getAvailableItems(out, iteration);
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user