Compare commits

..
10 Commits
Author SHA1 Message Date
Martin Robertz 2f00f8d5d8 update 2024-10-02 22:40:05 +02:00
Alexdoru 0a761be328 Merge pull request #36 from GTNewHorizons/log
Remove logging that logs time it takes to load each part of the mod
2024-10-02 16:21:37 +02:00
Alexdoru c8fee02cdc remove timing logging 2024-09-30 22:30:57 +02:00
Martin Robertz 9d1e6e9310 Merge pull request #34 from pashabou/master
setItemToCraft (crash fix)
2024-08-04 19:04:36 +07:00
Martin Robertz cbad80517a Merge branch 'master' into master 2024-08-04 19:00:32 +07:00
Martin Robertz 095924d6e5 Merge pull request #35 from Demiu/master
Adjust to AE2 api changes
2024-07-30 23:56:16 +07:00
Dream Master d109fcc774 update 2024-07-30 23:51:48 +07:00
pashabou 76aa7af49b Properly Setup GUI
Don't override away setting the item to craft
2024-07-26 23:40:11 -07:00
Martin Robertz a63db463a7 Merge branch 'master' into master 2024-07-27 09:16:05 +07:00
Demiu e605503e74 Adjust to AE2 api changes 2024-07-26 21:11:43 +02:00
11 changed files with 20 additions and 46 deletions

No files matched your search

+4 -3
View File
@@ -1,10 +1,11 @@
// Add your dependencies here
dependencies {
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-416-GTNH-pre:dev")
api("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-464-GTNH:dev")
implementation("com.github.GTNewHorizons:Baubles:1.0.4:dev")
compileOnly("curse.maven:cofh-core-69162:2388751")
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.5.25-GTNH:dev")
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.6.39-GTNH:dev")
compileOnly("com.github.GTNewHorizons:MouseTweaks:2.4.17-GTNH:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:EnderIO:2.7.1:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:EnderIO:2.8.18:dev") { transitive = false }
}
+5
View File
@@ -85,6 +85,11 @@ accessTransformersFile =
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
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.
usesMixinDebug = false
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.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+4 -1
View File
@@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
@@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# 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
' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Vendored
+2
View File
@@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.24'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.27'
}
@@ -3,7 +3,6 @@ package net.p455w0rd.wirelesscraftingterminal.common;
import java.io.File;
import net.minecraft.creativetab.CreativeTabs;
import net.p455w0rd.wirelesscraftingterminal.common.utils.WCTLog;
import net.p455w0rd.wirelesscraftingterminal.core.sync.network.NetworkHandler;
import net.p455w0rd.wirelesscraftingterminal.creativetab.CreativeTabWCT;
import net.p455w0rd.wirelesscraftingterminal.handlers.AchievementHandler;
@@ -57,7 +56,6 @@ public class WirelessCraftingTerminal {
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
long stopwatch = WCTLog.beginSection("PreInit");
WirelessCraftingTerminal.WCTState = LoaderState.PREINITIALIZATION;
WirelessCraftingTerminal.INSTANCE = this;
creativeTab = new CreativeTabWCT(CreativeTabs.getNextID(), Reference.MODID).setNoScrollbar();
@@ -66,29 +64,24 @@ public class WirelessCraftingTerminal {
FMLCommonHandler.instance().bus().register(proxy);
AEApi.instance().registries().wireless()
.registerWirelessHandler((IWirelessTermHandler) ItemEnum.WIRELESS_CRAFTING_TERMINAL.getItem());
WCTLog.endSection("PreInit", stopwatch);
}
@EventHandler
public void init(FMLInitializationEvent event) {
long stopwatch = WCTLog.beginSection("Init");
IntegrationRegistry.INSTANCE.init();
WirelessCraftingTerminal.WCTState = LoaderState.INITIALIZATION;
if (!Loader.isModLoaded("dreamcraft")) {
RecipeHandler.loadRecipes(!Reference.WCT_MINETWEAKER_OVERRIDE);
}
AchievementHandler.init();
WCTLog.endSection("Init", stopwatch);
}
@EventHandler
public void postInit(final FMLPostInitializationEvent event) {
long stopwatch = WCTLog.beginSection("PostInit");
IntegrationRegistry.INSTANCE.postInit();
NetworkRegistry.INSTANCE.registerGuiHandler(WirelessCraftingTerminal.INSTANCE, new WCTGuiHandler());
NetworkHandler.instance = new NetworkHandler("WCT");
WirelessCraftingTerminal.proxy.removeItemsFromNEI();
WCTLog.endSection("PostInit", stopwatch);
}
public static LoaderState getLoaderState() {
@@ -19,5 +19,6 @@ public class ContainerCraftAmount extends appeng.container.implementations.Conta
int y = (int) player.posY;
int z = (int) player.posZ;
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");
/**
* 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.
*
* @param format
* @param data
*/
public static void debug(final String format, final Object... 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.
*
* @param format
* @param data
*/
public static void info(final String format, final Object... data) {
log.info(String.format(format, data));
@@ -50,9 +25,6 @@ public class WCTLog {
/**
* Logs an error.
*
* @param format
* @param data
*/
public static void severe(final String format, final Object... data) {
log.error(String.format(format, data));
@@ -60,9 +32,6 @@ public class WCTLog {
/**
* Logs a warning.
*
* @param format
* @param data
*/
public static void warning(final String format, final Object... data) {
log.warn(String.format(format, data));
@@ -130,9 +130,9 @@ public class WirelessTerminalGuiObject
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public IItemList<IAEItemStack> getAvailableItems(final IItemList out) {
public IItemList<IAEItemStack> getAvailableItems(final IItemList out, int iteration) {
if (this.itemStorage != null) {
return this.itemStorage.getAvailableItems(out);
return this.itemStorage.getAvailableItems(out, iteration);
}
return out;
}