Steam extractor and compressor fix
This commit is contained in:
parent
37ca6746e3
commit
ba0a0ba4d4
4 changed files with 20 additions and 40 deletions
|
@ -33,21 +33,16 @@ public class GT_MetaTileEntity_Compressor_Bronze
|
|||
}
|
||||
|
||||
public int checkRecipe() {
|
||||
if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0)))) {
|
||||
this.mEUt = 2;
|
||||
this.mMaxProgresstime = 800;
|
||||
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sCompressorRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
|
||||
if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs()))) {
|
||||
this.mOutputItems[0] = tRecipe.getOutput(0);
|
||||
this.mEUt = tRecipe.mEUt;
|
||||
this.mMaxProgresstime = (tRecipe.mDuration * 2);
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {
|
||||
return false;
|
||||
}
|
||||
return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[]{aStack}), false, null) != null;
|
||||
}
|
||||
|
||||
public void startSoundLoop(byte aIndex, double aX, double aY, double aZ) {
|
||||
super.startSoundLoop(aIndex, aX, aY, aZ);
|
||||
if (aIndex == 1) {
|
||||
|
|
|
@ -33,21 +33,16 @@ public class GT_MetaTileEntity_Compressor_Steel
|
|||
}
|
||||
|
||||
public int checkRecipe() {
|
||||
if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0)))) {
|
||||
this.mEUt = 6;
|
||||
this.mMaxProgresstime = 400;
|
||||
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sCompressorRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
|
||||
if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs()))) {
|
||||
this.mOutputItems[0] = tRecipe.getOutput(0);
|
||||
this.mEUt = (tRecipe.mEUt * 3);
|
||||
this.mMaxProgresstime = tRecipe.mDuration;
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {
|
||||
return false;
|
||||
}
|
||||
return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[]{aStack}), false, null) != null;
|
||||
}
|
||||
|
||||
public void startSoundLoop(byte aIndex, double aX, double aY, double aZ) {
|
||||
super.startSoundLoop(aIndex, aX, aY, aZ);
|
||||
if (aIndex == 1) {
|
||||
|
|
|
@ -33,21 +33,16 @@ public class GT_MetaTileEntity_Extractor_Bronze
|
|||
}
|
||||
|
||||
public int checkRecipe() {
|
||||
if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0)))) {
|
||||
this.mEUt = 2;
|
||||
this.mMaxProgresstime = 800;
|
||||
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sExtractorRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
|
||||
if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs()))) {
|
||||
this.mOutputItems[0] = tRecipe.getOutput(0);
|
||||
this.mEUt = tRecipe.mEUt;
|
||||
this.mMaxProgresstime = (tRecipe.mDuration * 2);
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {
|
||||
return false;
|
||||
}
|
||||
return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[]{aStack}), false, null) != null;
|
||||
}
|
||||
|
||||
public void startSoundLoop(byte aIndex, double aX, double aY, double aZ) {
|
||||
super.startSoundLoop(aIndex, aX, aY, aZ);
|
||||
if (aIndex == 1) {
|
||||
|
|
|
@ -33,21 +33,16 @@ public class GT_MetaTileEntity_Extractor_Steel
|
|||
}
|
||||
|
||||
public int checkRecipe() {
|
||||
if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0)))) {
|
||||
this.mEUt = 6;
|
||||
this.mMaxProgresstime = 400;
|
||||
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sExtractorRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
|
||||
if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs()))) {
|
||||
this.mOutputItems[0] = tRecipe.getOutput(0);
|
||||
this.mEUt = (tRecipe.mEUt * 3);
|
||||
this.mMaxProgresstime = tRecipe.mDuration;
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {
|
||||
return false;
|
||||
}
|
||||
return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[]{aStack}), false, null) != null;
|
||||
}
|
||||
|
||||
public void startSoundLoop(byte aIndex, double aX, double aY, double aZ) {
|
||||
super.startSoundLoop(aIndex, aX, aY, aZ);
|
||||
if (aIndex == 1) {
|
||||
|
|
Loading…
Reference in a new issue