diff --git a/build.gradle b/build.gradle index f599d938..5d6f07a9 100644 --- a/build.gradle +++ b/build.gradle @@ -4,10 +4,10 @@ buildscript { dirs 'libs' } maven { url "https://plugins.gradle.org/m2/" } - maven { url "https://files.minecraftforge.net/maven"} +// maven { url "https://files.minecraftforge.net/maven"} } dependencies { - classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' +// classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' // classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true classpath 'gradle.plugin.com.matthewprenger:CurseGradle:1.4.0' } @@ -15,9 +15,11 @@ buildscript { plugins { id "org.jetbrains.kotlin.jvm" version "1.3.50" + id 'net.minecraftforge.gradle' version '5.1.+' + id 'wtf.gofancy.fancygradle' version '1.1.+' } -apply plugin: 'net.minecraftforge.gradle.forge' +//apply plugin: 'net.minecraftforge.gradle.forge' //apply plugin: 'net.minecraftforge.gradle' apply plugin: 'idea' apply plugin: 'com.matthewprenger.cursegradle' @@ -42,19 +44,69 @@ compileJava { logger.lifecycle "$archivesBaseName-$version" logger.lifecycle "" + version +//version = "${config.version.minecraft}-${config.version.forge}" minecraft { - version = "${config.version.minecraft}-${config.version.forge}" - runDir = "run" - mappings = 'snapshot_20180814' + // the mappings can be changed at any time, and must be in the following format. + // snapshot_YYYYMMDD snapshot are built nightly. + // stable_# stables are built at the discretion of the MCP team. + // Use non-default mappings at your own risk. they may not always work. + // simply re-run your setup task after changing the mappings to update your workspace. + mappings channel: 'stable', version: '39-1.12' +// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. - replace "@VERSION@", actualVersion +// replace '@VERSION@', actualVersion + + // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') + + // Default run configurations. + // These can be tweaked, removed, or duplicated as needed. + runs { + client { + workingDirectory project.file('run') + + // Recommended logging data for a userdev environment + property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' + + // Recommended logging level for the console + property 'forge.logging.console.level', 'debug' + + //JvmArgs += "-Dfml.coreMods.load=com.github.vfyjxf.nee.asm.NEELoadingPlugin" + } + + server { + workingDirectory project.file('run') + + // Recommended logging data for a userdev environment + property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' + + // Recommended logging level for the console + property 'forge.logging.console.level', 'debug' + + //JvmArgs += "-Dfml.coreMods.load=com.github.vfyjxf.nee.asm.NEELoadingPlugin" + } + } } +//minecraft { +// version = "${config.version.minecraft}-${config.version.forge}" +// runDir = "run" +// mappings = 'snapshot_20180814' +// +// replace "@VERSION@", actualVersion +//} + +//minecraft { +// version = "1.12.2-14.23.5.2847" +// runDir = "run" +// mappings = "stable_39" +// useDepAts = true +// makeObfSourceJar = false +//} repositories { gradlePluginPortal() maven { - url "http://maven.shadowfacts.net/" + url "https://maven.shadowfacts.net/" } maven { name 'Mobius Repo' @@ -102,44 +154,50 @@ repositories { } maven { url = "https://www.cursemaven.com" } maven { url = "https://maven.hypherionmc.me/" } + maven { url 'https://jitpack.io' } + flatDir { + dirs 'libs' + } } dependencies { + minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860' compileOnly "org.jetbrains.kotlin:kotlin-reflect:${config.kotlin_version}" compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${config.kotlin_version}" compile group: "net.shadowfacts", name: "Forgelin", version: "1.8.4" - deobfProvided ("mcp.mobius.waila:Hwyla:${config.version.waila}:api") { + compileOnly ("mcp.mobius.waila:Hwyla:${config.version.waila}:api") { transitive = false } - deobfCompile "cofh:RedstoneFlux:${config.version.rf}:universal" + compileOnly "cofh:RedstoneFlux:${config.version.rf}:universal" compileOnly ("cofh:CoFHCore:${config.version.cofh}:deobf") { transitive = false } //deobfProvided ("li.cil.oc:OpenComputers:${config.version.oc}:api") - deobfProvided ("li.cil.oc:OpenComputers:${config.version.oc}") + compileOnly ("li.cil.oc:OpenComputers:${config.version.oc}") - deobfProvided "mezz.jei:jei_${config.version.minecraft}:${config.version.jei}:api" + compileOnly "mezz.jei:jei_${config.version.minecraft}:${config.version.jei}:api" // runtime "mezz.jei:jei_${config.version.minecraft}:${config.version.jei}" - deobfProvided "com.mod-buildcraft:buildcraft-api:${config.version.bc}" + compileOnly "com.mod-buildcraft:buildcraft-api:${config.version.bc}" runtime "com.mod-buildcraft:buildcraft:${config.version.bc}" // deobfCompile "igwmod:IGW-Mod-${config.version.minecraft}:${config.version.igw}:universal" // deobfCompile "mekanism:Mekanism:${config.version.me}" - deobfCompile "curse.maven:mekanism-268560:${config.version.me}" - deobfCompile "p455w0rd:p455w0rdslib:${config.version.pl}" - deobfCompile "p455w0rd:AE2WTLib:${config.version.wt}:api" + compileOnly "curse.maven:mekanism-268560:${config.version.me}" + compileOnly "p455w0rd:p455w0rdslib:${config.version.pl}" + compileOnly "p455w0rd:AE2WTLib:${config.version.wt}:api" runtime "p455w0rd:AE2WTLib:${config.version.wt}" compileOnly "p455w0rd:WirelessCraftingTerminal:${config.version.wc}:api" runtime "p455w0rd:WirelessCraftingTerminal:${config.version.wc}" + runtime "p455w0rd:MouseTweaks:2.10" - deobfProvided "curse.maven:gas-conduits-309756:3328809" + compileOnly "curse.maven:gas-conduits-309756:3328809" // deobfCompile ("appeng:appliedenergistics2:${config.version.ae}:api"){ // transitive = false @@ -148,29 +206,32 @@ dependencies { deobfCompile "MCMultiPart2:MCMultiPart:${config.version.mcmp}" // deobfCompile "baubles:Baubles:1.12:${config.version.baubles}" - deobfCompile "curse.maven:baubles-227083:${config.version.baubles}" + compileOnly "curse.maven:baubles-227083:${config.version.baubles}" - deobfProvided ("com.enderio:EnderIO:1.12.2-5.3.70:api") { + compileOnly ("com.enderio:EnderIO:1.12.2-5.3.70:api") { transitive = false } - deobfProvided ("com.enderio:EnderIO:1.12.2-5.3.70") { + compileOnly ("com.enderio:EnderIO:1.12.2-5.3.70") { transitive = false } - deobfProvided "com.enderio.core:EnderCore:1.12.2-0.5.76" + compileOnly "com.enderio.core:EnderCore:1.12.2-0.5.76" compile "info.loenwind.autoconfig:AutoConfig:1.12.2-1.0.2" compile "info.loenwind.autosave:AutoSave:1.12.2-1.0.11" } processResources { + inputs.property "version", project.version + duplicatesStrategy = DuplicatesStrategy.INCLUDE + from(sourceSets.main.resources.srcDirs) { include '**/*.lang' include '**/*.info' include '**/*.properties' - expand 'version': project.version, 'mcversion': project.minecraft.version +// expand 'version': project.version, 'mc_version': project.minecraft.version } from(sourceSets.main.resources.srcDirs) { @@ -187,6 +248,7 @@ compileKotlin { } task apiJar(type: Jar) { +// duplicatesStrategy = DuplicatesStrategy.INCLUDE classifier = 'api' from sourceSets.main.output from sourceSets.main.java @@ -223,7 +285,7 @@ if (System.getenv("CURSEFORGE_API_KEY") != null) { } } -sourceJar.duplicatesStrategy = DuplicatesStrategy.EXCLUDE +//sourceJar.duplicatesStrategy = DuplicatesStrategy.EXCLUDE apiJar.duplicatesStrategy = DuplicatesStrategy.EXCLUDE jar.duplicatesStrategy = DuplicatesStrategy.EXCLUDE diff --git a/gradle.properties b/gradle.properties index 36408423..b4300dad 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ version.minecraft=1.12.2 version.mappings=snapshot_20171212 #version.forge=14.23.5.2855 version.forge=14.23.5.2847 -version.ae=rv6-stable-7 +version.ae=rv6.stable.7 version.oc=MC1.12.2-1.7.5.192 version.baubles=2518667 version.bc=7.99.15 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8e02afe6..ae04661e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,5 @@ -#Thu Oct 17 23:45:09 SGT 2019 -distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/src/main/java/com/the9grounds/aeadditions/crafting/CraftingPattern.java b/src/main/java/com/the9grounds/aeadditions/crafting/CraftingPattern.java index b7cd8d2e..bcf48b91 100644 --- a/src/main/java/com/the9grounds/aeadditions/crafting/CraftingPattern.java +++ b/src/main/java/com/the9grounds/aeadditions/crafting/CraftingPattern.java @@ -73,11 +73,20 @@ public IAEFluidStack[] getCondensedFluidInputs() { @Override public IAEItemStack[] getCondensedInputs() { + if (this.pattern == null) + { + return new IAEItemStack[0]; + } return removeFluidContainers(this.pattern.getCondensedInputs(), true); } @Override public IAEItemStack[] getCondensedOutputs() { + if (this.pattern == null) + { + return new IAEItemStack[0]; + } + return this.pattern.getCondensedOutputs(); } diff --git a/src/main/java/com/the9grounds/aeadditions/util/GasUtil.java b/src/main/java/com/the9grounds/aeadditions/util/GasUtil.java index be2ca1df..902a25f0 100644 --- a/src/main/java/com/the9grounds/aeadditions/util/GasUtil.java +++ b/src/main/java/com/the9grounds/aeadditions/util/GasUtil.java @@ -15,6 +15,7 @@ import mekanism.api.gas.Gas; import mekanism.api.gas.GasStack; import mekanism.api.gas.IGasItem; +import org.jetbrains.annotations.Nullable; public class GasUtil { @@ -22,6 +23,7 @@ public static IAEFluidStack createAEFluidStack(Gas gas) { return createAEFluidStack(new FluidStack(MekanismGas.fluidGas.get(gas),1000)); } + @Nullable public static IAEFluidStack createAEFluidStack(GasStack gasStack) { return gasStack == null ? null : createAEFluidStack(new FluidStack(MekanismGas.fluidGas.get(gasStack.getGas()), gasStack.amount)); } @@ -36,6 +38,7 @@ public static IAEFluidStack createAEFluidStack(Gas gas, long amount) { amount); } + @Nullable public static IAEFluidStack createAEFluidStack(IAEGasStack gasStack){ if (gasStack == null || gasStack.getGas() == null) return null; @@ -54,6 +57,7 @@ public static IAEGasStack createAEGasStack(Gas gas, long amount) { return createAEGasStack(gas).setStackSize(amount); } + @Nullable public static IAEGasStack createAEGasStack(IAEFluidStack fluidStack) { if (fluidStack == null || fluidStack.getFluid() == null || !isGas(fluidStack.getFluid())) return null; @@ -173,6 +177,7 @@ public static GasStack getGasStack(FluidStack fluidStack) { return null; } + @Nullable public static GasStack getGasStack(IAEFluidStack fluidStack) { if (fluidStack == null) { return null; @@ -184,6 +189,7 @@ public static GasStack getGasStack(IAEFluidStack fluidStack) { return null; } + @Nullable public static FluidStack getFluidStack(GasStack gasStack) { if (gasStack == null) { return null; @@ -203,6 +209,7 @@ public static boolean isGas(Fluid fluid) { return fluid != null && fluid instanceof MekanismGas.GasFluid; } + @Nullable public static Gas getGas(Fluid fluid) { if (fluid == null) { return null; diff --git a/src/main/java/com/the9grounds/aeadditions/wireless/AEWirelessTermHandler.java b/src/main/java/com/the9grounds/aeadditions/wireless/AEWirelessTermHandler.java index ddef247f..e5e96087 100644 --- a/src/main/java/com/the9grounds/aeadditions/wireless/AEWirelessTermHandler.java +++ b/src/main/java/com/the9grounds/aeadditions/wireless/AEWirelessTermHandler.java @@ -1,11 +1,13 @@ package com.the9grounds.aeadditions.wireless; +import appeng.core.sync.GuiBridge; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import appeng.api.features.IWirelessTermHandler; import appeng.api.util.IConfigManager; import com.the9grounds.aeadditions.api.IWirelessGasFluidTermHandler; +import net.minecraftforge.fml.common.network.IGuiHandler; public class AEWirelessTermHandler implements IWirelessTermHandler { @@ -24,6 +26,9 @@ public IConfigManager getConfigManager(ItemStack is) { return new ConfigManager(); } + public IGuiHandler getGuiHandler(ItemStack itemStack){ return GuiBridge.GUI_WIRELESS_TERM; + } + @Override public String getEncryptionKey(ItemStack item) { IWirelessGasFluidTermHandler handler = WirelessTermRegistry diff --git a/src/main/kotlin/com/the9grounds/aeadditions/AEAdditions.kt b/src/main/kotlin/com/the9grounds/aeadditions/AEAdditions.kt index 7977ecde..1ac4bc58 100644 --- a/src/main/kotlin/com/the9grounds/aeadditions/AEAdditions.kt +++ b/src/main/kotlin/com/the9grounds/aeadditions/AEAdditions.kt @@ -26,6 +26,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent import net.minecraftforge.fml.common.event.FMLPostInitializationEvent import net.minecraftforge.fml.common.event.FMLPreInitializationEvent import net.minecraftforge.fml.common.network.NetworkRegistry +import org.apache.logging.log4j.Logger import java.io.File @Mod( @@ -41,6 +42,8 @@ object AEAdditions { @JvmField val integration = Integration() private var configFolder: File? = null + + @JvmStatic var logger: Logger? = null @JvmStatic var packetHandler: PacketHandler? = null get() { Preconditions.checkNotNull(field) @@ -54,6 +57,7 @@ object AEAdditions { @Mod.EventHandler fun preInit(event: FMLPreInitializationEvent) { + logger = event.modLog packetHandler = PacketHandler() NetworkRegistry.INSTANCE.registerGuiHandler(this, GuiHandler) diff --git a/src/main/kotlin/com/the9grounds/aeadditions/integration/mekanism/gas/MEMonitorFluidGasWrapper.kt b/src/main/kotlin/com/the9grounds/aeadditions/integration/mekanism/gas/MEMonitorFluidGasWrapper.kt index 40dd07cd..1a889b89 100644 --- a/src/main/kotlin/com/the9grounds/aeadditions/integration/mekanism/gas/MEMonitorFluidGasWrapper.kt +++ b/src/main/kotlin/com/the9grounds/aeadditions/integration/mekanism/gas/MEMonitorFluidGasWrapper.kt @@ -17,11 +17,11 @@ class MEMonitorFluidGasWrapper(val gasMonitor: IMEMonitor) : IMEMon final val listeners = mutableMapOf, Any?>() - override fun injectItems(fluidStack: IAEFluidStack?, actionable: Actionable?, actionSource: IActionSource?): IAEFluidStack { + override fun injectItems(fluidStack: IAEFluidStack?, actionable: Actionable?, actionSource: IActionSource?): IAEFluidStack? { return GasUtil.createAEFluidStack(gasMonitor.injectItems(GasUtil.createAEGasStack(fluidStack), actionable, actionSource)) } - override fun extractItems(fluidStack: IAEFluidStack?, actionable: Actionable?, actionSource: IActionSource?): IAEFluidStack { + override fun extractItems(fluidStack: IAEFluidStack?, actionable: Actionable?, actionSource: IActionSource?): IAEFluidStack? { return GasUtil.createAEFluidStack(gasMonitor.extractItems(GasUtil.createAEGasStack(fluidStack), actionable, actionSource)) } @@ -65,7 +65,11 @@ class MEMonitorFluidGasWrapper(val gasMonitor: IMEMonitor) : IMEMon val changes = mutableListOf() iterable.forEach { - changes.add(GasUtil.createAEFluidStack(it)) + var aeFluidStack = GasUtil.createAEFluidStack(it) + if (aeFluidStack != null){ + changes.add(aeFluidStack) + } + } this.listeners.forEach { (k, _) -> diff --git a/src/main/kotlin/com/the9grounds/aeadditions/integration/opencomputers/WirelessHandlerUpgradeAE.kt b/src/main/kotlin/com/the9grounds/aeadditions/integration/opencomputers/WirelessHandlerUpgradeAE.kt index c4366463..eb53c8d0 100644 --- a/src/main/kotlin/com/the9grounds/aeadditions/integration/opencomputers/WirelessHandlerUpgradeAE.kt +++ b/src/main/kotlin/com/the9grounds/aeadditions/integration/opencomputers/WirelessHandlerUpgradeAE.kt @@ -2,6 +2,7 @@ package com.the9grounds.aeadditions.integration.opencomputers import appeng.api.features.IWirelessTermHandler import appeng.api.util.IConfigManager +import appeng.core.sync.GuiBridge import com.the9grounds.aeadditions.registries.ItemEnum import li.cil.oc.common.item.data.DroneData import li.cil.oc.common.item.data.MicrocontrollerData @@ -9,6 +10,7 @@ import li.cil.oc.common.item.data.RobotData import net.minecraft.entity.player.EntityPlayer import net.minecraft.item.ItemStack import net.minecraft.nbt.NBTTagCompound +import net.minecraftforge.fml.common.network.IGuiHandler object WirelessHandlerUpgradeAE : IWirelessTermHandler { override fun getEncryptionKey(itemStack: ItemStack?): String { @@ -111,4 +113,6 @@ object WirelessHandlerUpgradeAE : IWirelessTermHandler { override fun hasPower(entityPlayer: EntityPlayer?, v: Double, itemStack: ItemStack?): Boolean = true override fun getConfigManager(itemStack: ItemStack?): IConfigManager? = null + + fun getGuiHandler(itemStack: ItemStack):IGuiHandler = GuiBridge.GUI_WIRELESS_TERM } \ No newline at end of file diff --git a/src/main/kotlin/com/the9grounds/aeadditions/item/ItemWirelessTerminalUniversal.kt b/src/main/kotlin/com/the9grounds/aeadditions/item/ItemWirelessTerminalUniversal.kt index e88f3a57..82a8aa30 100644 --- a/src/main/kotlin/com/the9grounds/aeadditions/item/ItemWirelessTerminalUniversal.kt +++ b/src/main/kotlin/com/the9grounds/aeadditions/item/ItemWirelessTerminalUniversal.kt @@ -4,6 +4,7 @@ import appeng.api.AEApi import appeng.api.config.Actionable import appeng.api.features.IWirelessTermHandler import appeng.api.util.IConfigManager +import appeng.core.sync.GuiBridge import baubles.api.BaubleType import com.the9grounds.aeadditions.Constants import com.the9grounds.aeadditions.api.AEAApi @@ -25,6 +26,7 @@ import net.minecraft.util.* import net.minecraft.util.text.translation.I18n import net.minecraft.world.World import net.minecraftforge.fml.common.Optional +import net.minecraftforge.fml.common.network.IGuiHandler import net.minecraftforge.fml.relauncher.Side import net.minecraftforge.fml.relauncher.SideOnly import p455w0rd.ae2wtlib.api.client.IBaubleRender @@ -61,6 +63,10 @@ class ItemWirelessTerminalUniversal : WirelessTermBase(), IWirelessFluidTermHand return ConfigManager(nbt.getCompoundTag("settings")) } + fun getGuiHandler(item: ItemStack): IGuiHandler { + return GuiBridge.GUI_WIRELESS_TERM + } + override fun getTranslationKey(stack: ItemStack): String { return super.getTranslationKey(stack).replace("item.com.the9grounds.aeadditions", "com.the9grounds.aeadditions.item") } diff --git a/src/main/kotlin/com/the9grounds/aeadditions/part/gas/PartGasTerminal.kt b/src/main/kotlin/com/the9grounds/aeadditions/part/gas/PartGasTerminal.kt index b1aca1e1..93d2110b 100644 --- a/src/main/kotlin/com/the9grounds/aeadditions/part/gas/PartGasTerminal.kt +++ b/src/main/kotlin/com/the9grounds/aeadditions/part/gas/PartGasTerminal.kt @@ -221,7 +221,7 @@ class PartGasTerminal : PartECBase(), IGridTickable, IInventoryListener { val gasStack = GasUtil.getGasFromContainer(container) - if (GasUtil.isEmpty(container) || (gasStack.amount < GasUtil.getCapacity(container) && GasUtil.getFluidStack(gasStack).fluid == currentFluid && doNextFill)) { + if (GasUtil.isEmpty(container) || (gasStack.amount < GasUtil.getCapacity(container) && GasUtil.getFluidStack(gasStack)?.fluid == currentFluid && doNextFill)) { if (currentFluid == null) { return } diff --git a/src/main/kotlin/com/the9grounds/aeadditions/tileentity/TileEntityFluidCrafter.kt b/src/main/kotlin/com/the9grounds/aeadditions/tileentity/TileEntityFluidCrafter.kt index 8d2b73be..cd846ed7 100644 --- a/src/main/kotlin/com/the9grounds/aeadditions/tileentity/TileEntityFluidCrafter.kt +++ b/src/main/kotlin/com/the9grounds/aeadditions/tileentity/TileEntityFluidCrafter.kt @@ -155,8 +155,9 @@ class TileEntityFluidCrafter : TileBase(), IActionHost, ICraftingProvider, ICraf override fun provideCrafting(craftingTracker: ICraftingProviderHelper) { craftingList.forEach { - if (it.condensedInputs.size == 0) { - craftingTracker.setEmitable(it.condensedOutputs[0]) + if (it.condensedInputs.isEmpty()) { + return; +// craftingTracker.setEmitable(it.condensedOutputs[0]) } else { craftingTracker.addCraftingOption(this, it) } @@ -356,7 +357,11 @@ class TileEntityFluidCrafter : TileBase(), IActionHost, ICraftingProvider, ICraf } for (patter in craftingList) { watcher!!.reset() - if (patter.condensedInputs.size == 0) { + if (patter.condensedInputs.isEmpty()) { + return; + } + else + { watcher!!.add(patter.condensedOutputs[0]) if (crafting != null) { if (crafting.isRequesting(patter.condensedOutputs[0])) { diff --git a/src/main/kotlin/com/the9grounds/aeadditions/util/HandlerUniversalWirelessTerminal.kt b/src/main/kotlin/com/the9grounds/aeadditions/util/HandlerUniversalWirelessTerminal.kt index 7f6e8be6..99c5fbf0 100644 --- a/src/main/kotlin/com/the9grounds/aeadditions/util/HandlerUniversalWirelessTerminal.kt +++ b/src/main/kotlin/com/the9grounds/aeadditions/util/HandlerUniversalWirelessTerminal.kt @@ -8,6 +8,7 @@ import com.the9grounds.aeadditions.item.ItemWirelessTerminalUniversal import com.the9grounds.aeadditions.registries.ItemEnum import net.minecraft.entity.player.EntityPlayer import net.minecraft.item.ItemStack +import net.minecraftforge.fml.common.network.IGuiHandler object HandlerUniversalWirelessTerminal : IWirelessTermHandler, IWirelessFluidTermHandler, IWirelessGasTermHandler { private val terminal @@ -23,6 +24,8 @@ object HandlerUniversalWirelessTerminal : IWirelessTermHandler, IWirelessFluidTe override fun getConfigManager(itemStack: ItemStack?): IConfigManager = terminal.getConfigManager(itemStack) + fun getGuiHandler(itemStack: ItemStack):IGuiHandler = terminal.getGuiHandler(itemStack) + override fun isItemNormalWirelessTermToo(itemStack: ItemStack?): Boolean = terminal.isItemNormalWirelessTermToo(itemStack) override fun usePower(player: EntityPlayer, amount: Double, itemStack: ItemStack): Boolean = terminal.usePower(player, amount, itemStack)