diff options
author | Technus <daniel112092@gmail.com> | 2017-03-12 13:07:50 +0100 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2017-03-12 13:07:50 +0100 |
commit | 4287fb48bce795ffabced4a2570045f40bc6021b (patch) | |
tree | bfcb3fa0c61029180aacf8820a1575fe75502664 /src/main | |
parent | 3fcd68e41238b2800262c123153d1470975751ca (diff) | |
download | GT5-Unofficial-4287fb48bce795ffabced4a2570045f40bc6021b.tar.gz GT5-Unofficial-4287fb48bce795ffabced4a2570045f40bc6021b.tar.bz2 GT5-Unofficial-4287fb48bce795ffabced4a2570045f40bc6021b.zip |
Retexture things, change amps to be long-ererre, fix eu use of junction
Diffstat (limited to 'src/main')
4 files changed, 10 insertions, 11 deletions
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/machine/GT_MetaTileEntity_EMjunction.java b/src/main/java/com/github/technus/tectech/elementalMatter/machine/GT_MetaTileEntity_EMjunction.java index 031f01c816..bbf6081b50 100644 --- a/src/main/java/com/github/technus/tectech/elementalMatter/machine/GT_MetaTileEntity_EMjunction.java +++ b/src/main/java/com/github/technus/tectech/elementalMatter/machine/GT_MetaTileEntity_EMjunction.java @@ -88,7 +88,7 @@ public class GT_MetaTileEntity_EMjunction extends GT_MetaTileEntity_MultiblockBa public boolean EM_checkRecipe(ItemStack itemStack) { for(GT_MetaTileEntity_Hatch_InputElemental in: eInputHatches) if(in.getContainerHandler().hasStacks()) { - mEUt=-(int)V[9]; + mEUt=-(int)V[8]; eAmpereFlow =1+((eInputHatches.size()+eOutputHatches.size())>>1); mMaxProgresstime=20; mEfficiencyIncrease=10000; diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/machine/GT_MetaTileEntity_MultiblockBase_Elemental.java b/src/main/java/com/github/technus/tectech/elementalMatter/machine/GT_MetaTileEntity_MultiblockBase_Elemental.java index 4826474773..582a919282 100644 --- a/src/main/java/com/github/technus/tectech/elementalMatter/machine/GT_MetaTileEntity_MultiblockBase_Elemental.java +++ b/src/main/java/com/github/technus/tectech/elementalMatter/machine/GT_MetaTileEntity_MultiblockBase_Elemental.java @@ -8,7 +8,6 @@ import com.github.technus.tectech.elementalMatter.classes.tElementalException; import com.github.technus.tectech.elementalMatter.commonValues; import com.github.technus.tectech.elementalMatter.gui.GT_Container_MultiMachineEM; import com.github.technus.tectech.elementalMatter.gui.GT_GUIContainer_MultiMachineEM; -import eu.usrv.yamcore.YAMCore; import gregtech.api.GregTech_API; import gregtech.api.enums.Textures; import gregtech.api.interfaces.ITexture; @@ -66,9 +65,9 @@ public abstract class GT_MetaTileEntity_MultiblockBase_Elemental extends GT_Meta public boolean eParameters=true,ePowerPass=false,eSafeVoid=false,eDismatleBoom=false; public byte eCertainMode=0,eCertainStatus=0,minRepairStatus=3; - private int eMaxAmpereFlow =0; + private long eMaxAmpereFlow =0; private long maxEUinputMin=0,maxEUinputMax=0; - public int eAmpereFlow =1; + public long eAmpereFlow =1; //init param states in constructor, or implement it in checkrecipe/outputfunction @@ -141,8 +140,8 @@ public abstract class GT_MetaTileEntity_MultiblockBase_Elemental extends GT_Meta aNBT.setLong("eMaxEUmin", maxEUinputMin); aNBT.setLong("eMaxEUmax", maxEUinputMax); - aNBT.setInteger("eRating", eAmpereFlow); - aNBT.setInteger("eMaxA", eMaxAmpereFlow); + aNBT.setLong("eRating", eAmpereFlow); + aNBT.setLong("eMaxA", eMaxAmpereFlow); aNBT.setByte("eCertainM",eCertainMode); aNBT.setByte("eCertainS",eCertainStatus); aNBT.setByte("eMinRepair",minRepairStatus); @@ -189,8 +188,8 @@ public abstract class GT_MetaTileEntity_MultiblockBase_Elemental extends GT_Meta maxEUinputMin =aNBT.getLong("eMaxEUmin"); maxEUinputMax =aNBT.getLong("eMaxEUmax"); - eAmpereFlow =aNBT.getInteger("eRating"); - eMaxAmpereFlow =aNBT.getInteger("eMaxA"); + eAmpereFlow =aNBT.getLong("eRating"); + eMaxAmpereFlow =aNBT.getLong("eMaxA"); eCertainMode=aNBT.getByte("eCertainM"); eCertainStatus=aNBT.getByte("eCertainS"); minRepairStatus=aNBT.getByte("eMinRepair"); @@ -567,7 +566,7 @@ public abstract class GT_MetaTileEntity_MultiblockBase_Elemental extends GT_Meta } //new method - public final boolean EMaddEnergyOutput(long EU, int Amperes) { + public final boolean EMaddEnergyOutput(long EU, long Amperes) { if(EU <= 0L || Amperes<=0) return true; long euVar=EU*Amperes; long diff; @@ -618,7 +617,7 @@ public abstract class GT_MetaTileEntity_MultiblockBase_Elemental extends GT_Meta } //new method - public final boolean EMdrainEnergyInput(long EU, int Amperes) { + public final boolean EMdrainEnergyInput(long EU, long Amperes) { if(EU <= 0L || Amperes<=0) return true; long euVar=EU*Amperes; if( getEUVar() < euVar || @@ -1109,7 +1108,7 @@ public abstract class GT_MetaTileEntity_MultiblockBase_Elemental extends GT_Meta EnumChatFormatting.YELLOW + Long.toString(maxEnergy) + EnumChatFormatting.RESET +" EU", (mEUt<=0?"Probably uses: ":"Probably makes: ")+ EnumChatFormatting.RED + Integer.toString(Math.abs(mEUt)) + EnumChatFormatting.RESET + " EU/t at "+ - EnumChatFormatting.RED + Integer.toString(eAmpereFlow)+ EnumChatFormatting.RESET +" A", + EnumChatFormatting.RED + eAmpereFlow+ EnumChatFormatting.RESET +" A", "Tier Rating: "+EnumChatFormatting.YELLOW+VN[getMaxEnergyInputTier()]+EnumChatFormatting.RESET+" / "+EnumChatFormatting.GREEN+VN[getMinEnergyInputTier()]+EnumChatFormatting.RESET+ " Amp Rating: "+EnumChatFormatting.GREEN+ eMaxAmpereFlow +EnumChatFormatting.RESET + " A", "Problems: "+EnumChatFormatting.RED+ (getIdealStatus() - getRepairStatus())+EnumChatFormatting.RESET+ diff --git a/src/main/resources/assets/gregtech/textures/blocks/iconsets/EM_CONTROLLER.png b/src/main/resources/assets/gregtech/textures/blocks/iconsets/EM_CONTROLLER.png Binary files differindex fc64d8dbe5..bd0c9c427e 100644 --- a/src/main/resources/assets/gregtech/textures/blocks/iconsets/EM_CONTROLLER.png +++ b/src/main/resources/assets/gregtech/textures/blocks/iconsets/EM_CONTROLLER.png diff --git a/src/main/resources/assets/gregtech/textures/blocks/iconsets/EM_TELE.png b/src/main/resources/assets/gregtech/textures/blocks/iconsets/EM_TELE.png Binary files differindex d9da4f4578..ac5c49380c 100644 --- a/src/main/resources/assets/gregtech/textures/blocks/iconsets/EM_TELE.png +++ b/src/main/resources/assets/gregtech/textures/blocks/iconsets/EM_TELE.png |