diff options
author | unknown <gtandemmodding@gmail.com> | 2022-04-13 19:38:49 +1000 |
---|---|---|
committer | unknown <gtandemmodding@gmail.com> | 2022-04-13 19:38:49 +1000 |
commit | 02854ae35e6064788c8ad16d0b2035d555ad35ad (patch) | |
tree | 91becdfb415520aba4eb8f3f01403bba40d38988 | |
parent | 6841a0b2c6770e530f52497176f34c08329a52bb (diff) | |
download | GT5-Unofficial-02854ae35e6064788c8ad16d0b2035d555ad35ad.tar.gz GT5-Unofficial-02854ae35e6064788c8ad16d0b2035d555ad35ad.tar.bz2 GT5-Unofficial-02854ae35e6064788c8ad16d0b2035d555ad35ad.zip |
Later version of GTpp and GT5U, fix tooltip for Dissolution Tank
-rw-r--r-- | dependencies.gradle | 4 | ||||
-rw-r--r-- | src/main/java/com/elisis/gtnhlanth/common/tileentity/DissolutionTank.java | 26 |
2 files changed, 10 insertions, 20 deletions
diff --git a/dependencies.gradle b/dependencies.gradle index 2314f8d404..ebb1589267 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,10 +1,10 @@ // Add your dependencies here dependencies { - compile('com.github.GTNewHorizons:GT5-Unofficial:5.09.40.39:dev') + compile('com.github.GTNewHorizons:GT5-Unofficial:5.09.40.41:dev') compile('com.github.GTNewHorizons:NewHorizonsCoreMod:1.9.21:dev') compile('com.github.GTNewHorizons:StructureLib:1.0.16:dev') - compile('com.github.GTNewHorizons:GTplusplus:1.7.28:dev') + compile('com.github.GTNewHorizons:GTplusplus:1.7.30:dev') compile('com.github.GTNewHorizons:GoodGenerator:0.4.1:dev') compile('com.github.GTNewHorizons:TecTech:5.0.6:dev') compile('com.github.GTNewHorizons:ForestryMC:4.4.6:dev') diff --git a/src/main/java/com/elisis/gtnhlanth/common/tileentity/DissolutionTank.java b/src/main/java/com/elisis/gtnhlanth/common/tileentity/DissolutionTank.java index 6662f02ebe..2497e3196d 100644 --- a/src/main/java/com/elisis/gtnhlanth/common/tileentity/DissolutionTank.java +++ b/src/main/java/com/elisis/gtnhlanth/common/tileentity/DissolutionTank.java @@ -27,6 +27,7 @@ import com.gtnewhorizon.structurelib.structure.StructureDefinition; import gregtech.api.GregTech_API; import gregtech.api.gui.GT_GUIContainer_MultiMachine; +import gregtech.api.interfaces.ISecondaryDescribable; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; @@ -40,7 +41,7 @@ import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidStack; -public class DissolutionTank extends GT_MetaTileEntity_EnhancedMultiBlockBase<DissolutionTank> implements IConstructable { +public class DissolutionTank extends GT_MetaTileEntity_EnhancedMultiBlockBase<DissolutionTank> implements IConstructable, ISecondaryDescribable { private IStructureDefinition<DissolutionTank> multiDefinition = StructureDefinition.<DissolutionTank>builder() .addShape(mName, transpose(new String[][] { @@ -225,21 +226,7 @@ public class DissolutionTank extends GT_MetaTileEntity_EnhancedMultiBlockBase<Di return new GT_GUIContainer_MultiMachine(playerInventory, metaTileEntity, getLocalName(), "Disstank.png"); } - @Override - public String[] getDescription() { - final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); - tt.addMachineType("Heat Exchanger") - .addInfo("Controller Block for the Dissolution Tank") - .addInfo("Input Water and Fluid, output Fluid") - .addInfo("You must input the Fluids at the correct Ratio") - .addInfo("(Not currently working)") - .toolTipFinisher("GTNH: Lanthanides"); - if (!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { - return tt.getInformation(); - } else { - return tt.getStructureInformation(); - } - } + @Override public IMetaTileEntity newMetaEntity(IGregTechTileEntity arg0) { @@ -272,12 +259,15 @@ public class DissolutionTank extends GT_MetaTileEntity_EnhancedMultiBlockBase<Di return new ITexture[]{casingTexturePages[0][49]}; } - + @Override protected GT_Multiblock_Tooltip_Builder createTooltip() { final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Dissolution Tank") .addInfo("Controller block for the Dissolution Tank") + .addInfo("Input Water and Fluid, output Fluid") + .addInfo("You must input the Fluids at the correct Ratio") + .addInfo("(^Not currently working)") .addInfo(BLUEPRINT_INFO) .addSeparator() .addController("Front bottom") @@ -290,7 +280,7 @@ public class DissolutionTank extends GT_MetaTileEntity_EnhancedMultiBlockBase<Di return tt; } - + @Override public boolean explodesOnComponentBreak(ItemStack arg0) { return false; |