Merge remote-tracking branch 'remotes/JohannesGaessler/SteamProductionImprovement' into unstable
This commit is contained in:
commit
19a5320f00
71 changed files with 547 additions and 526 deletions
|
@ -29,7 +29,7 @@ public class GT_MetaTileEntity_E_Furnace extends GT_MetaTileEntity_BasicMachine
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_E_Furnace(mName, mTier, mDescription, mTextures, mGUIName, mNEIName);
|
return new GT_MetaTileEntity_E_Furnace(mName, mTier, mDescriptionArray, mTextures, mGUIName, mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -43,9 +43,9 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
String[] desc = new String[mDescription.length + 1];
|
String[] desc = new String[mDescriptionArray.length + 1];
|
||||||
System.arraycopy(mDescription, 0, desc, 0, mDescription.length);
|
System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length);
|
||||||
desc[mDescription.length] = mInventory.length + " Slots";
|
desc[mDescriptionArray.length] = mInventory.length + " Slots";
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_BasicBatteryBuffer(mName, mTier, mDescription, mTextures, mInventory.length);
|
return new GT_MetaTileEntity_BasicBatteryBuffer(mName, mTier, mDescriptionArray, mTextures, mInventory.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -59,9 +59,9 @@ public abstract class GT_MetaTileEntity_BasicGenerator extends GT_MetaTileEntity
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
String[] desc = new String[mDescription.length + 1];
|
String[] desc = new String[mDescriptionArray.length + 1];
|
||||||
System.arraycopy(mDescription, 0, desc, 0, mDescription.length);
|
System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length);
|
||||||
desc[mDescription.length] = "Fuel Efficiency: " + getEfficiency() + "%";
|
desc[mDescriptionArray.length] = "Fuel Efficiency: " + getEfficiency() + "%";
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class GT_MetaTileEntity_BasicHull extends GT_MetaTileEntity_BasicTank {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_BasicHull(mName, mTier, mInventory.length, mDescription, mTextures);
|
return new GT_MetaTileEntity_BasicHull(mName, mTier, mInventory.length, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_
|
||||||
private final String mSound;
|
private final String mSound;
|
||||||
private final boolean mSharedTank, mRequiresFluidForFiltering;
|
private final boolean mSharedTank, mRequiresFluidForFiltering;
|
||||||
private final byte mGUIParameterA, mGUIParameterB;
|
private final byte mGUIParameterA, mGUIParameterB;
|
||||||
|
|
||||||
public GT_MetaTileEntity_BasicMachine_GT_Recipe(int aID, String aName, String aNameRegional, int aTier, String aDescription, GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, int aGUIParameterA, int aGUIParameterB, String aGUIName, String aSound, boolean aSharedTank, boolean aRequiresFluidForFiltering, int aSpecialEffect, String aOverlays, Object[] aRecipe) {
|
public GT_MetaTileEntity_BasicMachine_GT_Recipe(int aID, String aName, String aNameRegional, int aTier, String aDescription, GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, int aGUIParameterA, int aGUIParameterB, String aGUIName, String aSound, boolean aSharedTank, boolean aRequiresFluidForFiltering, int aSpecialEffect, String aOverlays, Object[] aRecipe) {
|
||||||
super(aID, aName, aNameRegional, aTier, aRecipes.mAmperage, aDescription, aInputSlots, aOutputSlots, aGUIName, aRecipes.mNEIName, new ITexture[]{new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM"))});
|
super(aID, aName, aNameRegional, aTier, aRecipes.mAmperage, aDescription, aInputSlots, aOutputSlots, aGUIName, aRecipes.mNEIName, new ITexture[]{new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM"))});
|
||||||
mSharedTank = aSharedTank;
|
mSharedTank = aSharedTank;
|
||||||
|
@ -621,7 +622,7 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_BasicMachine_GT_Recipe(mName, mTier, mDescription, mRecipes, mInputSlotCount, mOutputItems == null ? 0 : mOutputItems.length, mTankCapacity, mAmperage, mGUIParameterA, mGUIParameterB, mTextures, mGUIName, mNEIName, mSound, mSharedTank, mRequiresFluidForFiltering, mSpecialEffect);
|
return new GT_MetaTileEntity_BasicMachine_GT_Recipe(mName, mTier, mDescriptionArray, mRecipes, mInputSlotCount, mOutputItems == null ? 0 : mOutputItems.length, mTankCapacity, mAmperage, mGUIParameterA, mGUIParameterB, mTextures, mGUIName, mNEIName, mSound, mSharedTank, mRequiresFluidForFiltering, mSpecialEffect);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -639,10 +640,14 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_
|
||||||
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) return false;
|
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) return false;
|
||||||
if (mInventory[aIndex] != null) return true;
|
if (mInventory[aIndex] != null) return true;
|
||||||
switch (mInputSlotCount) {
|
switch (mInputSlotCount) {
|
||||||
case 0: return false;
|
case 0:
|
||||||
case 1: return getFillableStack() == null ? !mRequiresFluidForFiltering && getRecipeList().containsInput(aStack) : null!=getRecipeList().findRecipe(getBaseMetaTileEntity(), mLastRecipe, true, V[mTier], new FluidStack[] {getFillableStack()}, getSpecialSlot(), new ItemStack[] {aStack});
|
return false;
|
||||||
case 2: return (!mRequiresFluidForFiltering || getFillableStack() != null) && (((getInputAt(0)!=null&&getInputAt(1)!=null) || (getInputAt(0)==null&&getInputAt(1)==null?getRecipeList().containsInput(aStack):(getRecipeList().containsInput(aStack)&&null!=getRecipeList().findRecipe(getBaseMetaTileEntity(), mLastRecipe, true, V[mTier], new FluidStack[] {getFillableStack()}, getSpecialSlot(), aIndex == getInputSlot() ? new ItemStack[] {aStack, getInputAt(1)} : new ItemStack[] {getInputAt(0), aStack})))));
|
case 1:
|
||||||
default: return getRecipeList().containsInput(aStack);
|
return getFillableStack() == null ? !mRequiresFluidForFiltering && getRecipeList().containsInput(aStack) : null != getRecipeList().findRecipe(getBaseMetaTileEntity(), mLastRecipe, true, V[mTier], new FluidStack[]{getFillableStack()}, getSpecialSlot(), new ItemStack[]{aStack});
|
||||||
|
case 2:
|
||||||
|
return (!mRequiresFluidForFiltering || getFillableStack() != null) && (((getInputAt(0) != null && getInputAt(1) != null) || (getInputAt(0) == null && getInputAt(1) == null ? getRecipeList().containsInput(aStack) : (getRecipeList().containsInput(aStack) && null != getRecipeList().findRecipe(getBaseMetaTileEntity(), mLastRecipe, true, V[mTier], new FluidStack[]{getFillableStack()}, getSpecialSlot(), aIndex == getInputSlot() ? new ItemStack[]{aStack, getInputAt(1)} : new ItemStack[]{getInputAt(0), aStack})))));
|
||||||
|
default:
|
||||||
|
return getRecipeList().containsInput(aStack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class GT_MetaTileEntity_Hatch_Dynamo extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Hatch_Dynamo(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_Hatch_Dynamo(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -84,7 +84,7 @@ public class GT_MetaTileEntity_Hatch_Energy extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Hatch_Energy(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_Hatch_Energy(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class GT_MetaTileEntity_Hatch_Input extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Hatch_Input(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_Hatch_Input(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class GT_MetaTileEntity_Hatch_InputBus extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Hatch_InputBus(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_Hatch_InputBus(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
package gregtech.api.metatileentity.implementations;
|
package gregtech.api.metatileentity.implementations;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import gregtech.GT_Mod;
|
import gregtech.GT_Mod;
|
||||||
import gregtech.api.GregTech_API;
|
import gregtech.api.GregTech_API;
|
||||||
import gregtech.api.enums.ItemList;
|
import gregtech.api.enums.ItemList;
|
||||||
|
@ -28,6 +25,8 @@ import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import scala.actors.threadpool.Arrays;
|
import scala.actors.threadpool.Arrays;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch {
|
public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch {
|
||||||
public boolean mWrench = false, mScrewdriver = false, mSoftHammer = false, mHardHammer = false, mSolderingTool = false, mCrowbar = false, mAuto;
|
public boolean mWrench = false, mScrewdriver = false, mSoftHammer = false, mHardHammer = false, mSolderingTool = false, mCrowbar = false, mAuto;
|
||||||
|
|
||||||
|
@ -54,16 +53,16 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch
|
||||||
@Override
|
@Override
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
if (mAuto) {
|
if (mAuto) {
|
||||||
String[] desc = new String[mDescription.length + 3];
|
String[] desc = new String[mDescriptionArray.length + 3];
|
||||||
System.arraycopy(mDescription, 0, desc, 0, mDescription.length);
|
System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length);
|
||||||
desc[mDescription.length] = "4 Ducttape, 2 Lubricant Cells";
|
desc[mDescriptionArray.length] = "4 Ducttape, 2 Lubricant Cells";
|
||||||
desc[mDescription.length + 1] = "4 Steel Screws, 2 Adv Circuits";
|
desc[mDescriptionArray.length + 1] = "4 Steel Screws, 2 Adv Circuits";
|
||||||
desc[mDescription.length + 2] = "For each autorepair";
|
desc[mDescriptionArray.length + 2] = "For each autorepair";
|
||||||
return desc;
|
return desc;
|
||||||
} else {
|
} else {
|
||||||
String[] desc = new String[mDescription.length + 1];
|
String[] desc = new String[mDescriptionArray.length + 1];
|
||||||
System.arraycopy(mDescription, 0, desc, 0, mDescription.length);
|
System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length);
|
||||||
desc[mDescription.length] = "Cannot be shared between Multiblocks!";
|
desc[mDescriptionArray.length] = "Cannot be shared between Multiblocks!";
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -105,8 +104,9 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
if(aTileEntity.getMetaTileID()==111) return new GT_MetaTileEntity_Hatch_Maintenance(mName, mTier, mDescription, mTextures, true);
|
if (aTileEntity.getMetaTileID() == 111)
|
||||||
return new GT_MetaTileEntity_Hatch_Maintenance(mName, mTier, mDescription, mTextures, false);
|
return new GT_MetaTileEntity_Hatch_Maintenance(mName, mTier, mDescriptionArray, mTextures, true);
|
||||||
|
return new GT_MetaTileEntity_Hatch_Maintenance(mName, mTier, mDescriptionArray, mTextures, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -199,7 +199,10 @@ public class GT_MetaTileEntity_Hatch_Maintenance extends GT_MetaTileEntity_Hatch
|
||||||
}
|
}
|
||||||
if (mSolderingTool && aPlayer instanceof EntityPlayerMP) {
|
if (mSolderingTool && aPlayer instanceof EntityPlayerMP) {
|
||||||
EntityPlayerMP tPlayer = (EntityPlayerMP) aPlayer;
|
EntityPlayerMP tPlayer = (EntityPlayerMP) aPlayer;
|
||||||
try{GT_Mod.instance.achievements.issueAchievement(tPlayer, "maintainance");}catch(Exception e){}
|
try {
|
||||||
|
GT_Mod.achievements.issueAchievement(tPlayer, "maintainance");
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,10 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
String[] desc = new String[mDescription.length + 2];
|
String[] desc = new String[mDescriptionArray.length + 2];
|
||||||
System.arraycopy(mDescription, 0, desc, 0, mDescription.length);
|
System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length);
|
||||||
desc[mDescription.length] = "DO NOT OBSTRUCT THE OUTPUT!";
|
desc[mDescriptionArray.length] = "DO NOT OBSTRUCT THE OUTPUT!";
|
||||||
desc[mDescription.length + 1] = "Reduces Pollution to "+calculatePollutionReduction(100)+"%";
|
desc[mDescriptionArray.length + 1] = "Reduces Pollution to " + calculatePollutionReduction(100) + "%";
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Hatch_Muffler(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_Hatch_Muffler(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean polluteEnvironment() {
|
public boolean polluteEnvironment() {
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class GT_MetaTileEntity_Hatch_Output extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Hatch_Output(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_Hatch_Output(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class GT_MetaTileEntity_Hatch_OutputBus extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Hatch_OutputBus(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_Hatch_OutputBus(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -222,7 +222,8 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
||||||
for (GT_MetaTileEntity_Hatch_Maintenance tHatch : mMaintenanceHatches) {
|
for (GT_MetaTileEntity_Hatch_Maintenance tHatch : mMaintenanceHatches) {
|
||||||
if (isValidMetaTileEntity(tHatch)) {
|
if (isValidMetaTileEntity(tHatch)) {
|
||||||
if (!GT_MetaTileEntity_MultiBlockBase.disableMaintenance) {
|
if (!GT_MetaTileEntity_MultiBlockBase.disableMaintenance) {
|
||||||
if(tHatch.mAuto && (!mWrench||!mScrewdriver||!mSoftHammer||!mHardHammer||!mSolderingTool||!mCrowbar))tHatch.autoMaintainance();
|
if (tHatch.mAuto && (!mWrench || !mScrewdriver || !mSoftHammer || !mHardHammer || !mSolderingTool || !mCrowbar))
|
||||||
|
tHatch.autoMaintainance();
|
||||||
if (tHatch.mWrench) mWrench = true;
|
if (tHatch.mWrench) mWrench = true;
|
||||||
if (tHatch.mScrewdriver) mScrewdriver = true;
|
if (tHatch.mScrewdriver) mScrewdriver = true;
|
||||||
if (tHatch.mSoftHammer) mSoftHammer = true;
|
if (tHatch.mSoftHammer) mSoftHammer = true;
|
||||||
|
@ -255,7 +256,10 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
||||||
if (mMaxProgresstime > 0 && ++mProgresstime >= mMaxProgresstime) {
|
if (mMaxProgresstime > 0 && ++mProgresstime >= mMaxProgresstime) {
|
||||||
if (mOutputItems != null) for (ItemStack tStack : mOutputItems)
|
if (mOutputItems != null) for (ItemStack tStack : mOutputItems)
|
||||||
if (tStack != null) {
|
if (tStack != null) {
|
||||||
try{GT_Mod.achievements.issueAchivementHatch(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), tStack);}catch(Exception e){}
|
try {
|
||||||
|
GT_Mod.achievements.issueAchivementHatch(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), tStack);
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
addOutput(tStack);
|
addOutput(tStack);
|
||||||
}
|
}
|
||||||
if (mOutputFluids != null && mOutputFluids.length == 1) {
|
if (mOutputFluids != null && mOutputFluids.length == 1) {
|
||||||
|
@ -276,7 +280,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
||||||
if (mOutputFluids.length > 1) {
|
if (mOutputFluids.length > 1) {
|
||||||
try {
|
try {
|
||||||
GT_Mod.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "oilplant");
|
GT_Mod.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "oilplant");
|
||||||
} catch (Exception e) {
|
} catch (Exception ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,13 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit
|
||||||
*/
|
*/
|
||||||
public final byte mTier;
|
public final byte mTier;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public final String mDescription;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simple Description.
|
* A simple Description.
|
||||||
*/
|
*/
|
||||||
public final String[] mDescription;
|
public final String[] mDescriptionArray;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains all Textures used by this Block.
|
* Contains all Textures used by this Block.
|
||||||
|
@ -24,8 +27,8 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit
|
||||||
public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String aDescription, ITexture... aTextures) {
|
public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String aDescription, ITexture... aTextures) {
|
||||||
super(aID, aName, aNameRegional, aInvSlotCount);
|
super(aID, aName, aNameRegional, aInvSlotCount);
|
||||||
mTier = (byte) Math.max(0, Math.min(aTier, 9));
|
mTier = (byte) Math.max(0, Math.min(aTier, 9));
|
||||||
mDescription = aDescription == null ? new String[0] : new String[]{aDescription};
|
mDescriptionArray = aDescription == null ? new String[0] : new String[]{aDescription};
|
||||||
|
mDescription = mDescriptionArray.length > 0 ? mDescriptionArray[0] : "";
|
||||||
// must always be the last call!
|
// must always be the last call!
|
||||||
if (GT.isClientSide()) mTextures = getTextureSet(aTextures);
|
if (GT.isClientSide()) mTextures = getTextureSet(aTextures);
|
||||||
else mTextures = null;
|
else mTextures = null;
|
||||||
|
@ -34,7 +37,8 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit
|
||||||
public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String[] aDescription, ITexture... aTextures) {
|
public GT_MetaTileEntity_TieredMachineBlock(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String[] aDescription, ITexture... aTextures) {
|
||||||
super(aID, aName, aNameRegional, aInvSlotCount);
|
super(aID, aName, aNameRegional, aInvSlotCount);
|
||||||
mTier = (byte) Math.max(0, Math.min(aTier, 9));
|
mTier = (byte) Math.max(0, Math.min(aTier, 9));
|
||||||
mDescription = aDescription == null ? new String[0] : aDescription;
|
mDescriptionArray = aDescription == null ? new String[0] : aDescription;
|
||||||
|
mDescription = mDescriptionArray.length > 0 ? mDescriptionArray[0] : "";
|
||||||
|
|
||||||
// must always be the last call!
|
// must always be the last call!
|
||||||
if (GT.isClientSide()) mTextures = getTextureSet(aTextures);
|
if (GT.isClientSide()) mTextures = getTextureSet(aTextures);
|
||||||
|
@ -44,14 +48,16 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit
|
||||||
public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures) {
|
||||||
super(aName, aInvSlotCount);
|
super(aName, aInvSlotCount);
|
||||||
mTier = (byte) aTier;
|
mTier = (byte) aTier;
|
||||||
mDescription = aDescription == null ? new String[0] : new String[]{aDescription};
|
mDescriptionArray = aDescription == null ? new String[0] : new String[]{aDescription};
|
||||||
|
mDescription = mDescriptionArray.length > 0 ? mDescriptionArray[0] : "";
|
||||||
mTextures = aTextures;
|
mTextures = aTextures;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String[] aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_TieredMachineBlock(String aName, int aTier, int aInvSlotCount, String[] aDescription, ITexture[][][] aTextures) {
|
||||||
super(aName, aInvSlotCount);
|
super(aName, aInvSlotCount);
|
||||||
mTier = (byte) aTier;
|
mTier = (byte) aTier;
|
||||||
mDescription = aDescription == null ? new String[0] : aDescription;
|
mDescriptionArray = aDescription == null ? new String[0] : aDescription;
|
||||||
|
mDescription = mDescriptionArray.length > 0 ? mDescriptionArray[0] : "";
|
||||||
mTextures = aTextures;
|
mTextures = aTextures;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +78,7 @@ public abstract class GT_MetaTileEntity_TieredMachineBlock extends MetaTileEntit
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
return mDescription;
|
return mDescriptionArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Transformer(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_Transformer(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -93,6 +93,7 @@ public class GT_Recipe implements Comparable<GT_Recipe> {
|
||||||
mEnabled = aRecipe.mEnabled;
|
mEnabled = aRecipe.mEnabled;
|
||||||
mHidden = aRecipe.mHidden;
|
mHidden = aRecipe.mHidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected GT_Recipe(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecialItems, int[] aChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) {
|
protected GT_Recipe(boolean aOptimize, ItemStack[] aInputs, ItemStack[] aOutputs, Object aSpecialItems, int[] aChances, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aSpecialValue) {
|
||||||
if (aInputs == null) aInputs = new ItemStack[0];
|
if (aInputs == null) aInputs = new ItemStack[0];
|
||||||
if (aOutputs == null) aOutputs = new ItemStack[0];
|
if (aOutputs == null) aOutputs = new ItemStack[0];
|
||||||
|
@ -443,6 +444,7 @@ public class GT_Recipe implements Comparable<GT_Recipe> {
|
||||||
public String[] getNeiDesc() {
|
public String[] getNeiDesc() {
|
||||||
return neiDesc;
|
return neiDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setNeiDesc(String... neiDesc) {
|
protected void setNeiDesc(String... neiDesc) {
|
||||||
this.neiDesc = neiDesc;
|
this.neiDesc = neiDesc;
|
||||||
}
|
}
|
||||||
|
@ -1406,25 +1408,18 @@ public class GT_Recipe implements Comparable<GT_Recipe> {
|
||||||
|
|
||||||
private GT_Recipe addRecipe(GT_Recipe recipe, double baseBurnTime) {
|
private GT_Recipe addRecipe(GT_Recipe recipe, double baseBurnTime) {
|
||||||
recipe = new GT_Recipe(recipe);
|
recipe = new GT_Recipe(recipe);
|
||||||
//Some recipes will have a burn time like 15.9999999 and % always rounds down
|
|
||||||
double floatErrorCorrection = 0.0001;
|
|
||||||
|
|
||||||
double bronzeBurnTime = baseBurnTime * 2 + floatErrorCorrection;
|
double bronzeBurnTime = baseBurnTime * 2;
|
||||||
bronzeBurnTime -= bronzeBurnTime % 0.05;
|
double steelBurnTime = baseBurnTime * 1.5;
|
||||||
double steelBurnTime = baseBurnTime * 1.5 + floatErrorCorrection;
|
double titaniumBurnTime = baseBurnTime * 1.3;
|
||||||
steelBurnTime -= steelBurnTime % 0.05;
|
double tungstensteelBurnTime = baseBurnTime * 1.2;
|
||||||
double titaniumBurnTime = baseBurnTime * 1.3 + floatErrorCorrection;
|
|
||||||
titaniumBurnTime -= titaniumBurnTime % 0.05;
|
|
||||||
double tungstensteelBurnTime = baseBurnTime * 1.2 + floatErrorCorrection;
|
|
||||||
tungstensteelBurnTime -= tungstensteelBurnTime % 0.05;
|
|
||||||
|
|
||||||
recipe.setNeiDesc("Burn time in seconds:",
|
recipe.setNeiDesc("Burn time in seconds:",
|
||||||
String.format("Bronze Boiler: %.2f", bronzeBurnTime),
|
String.format("Bronze Boiler: %.4f", bronzeBurnTime),
|
||||||
String.format("Steel Boiler: %.2f", steelBurnTime),
|
String.format("Steel Boiler: %.4f", steelBurnTime),
|
||||||
String.format("Titanium Boiler: %.2f", titaniumBurnTime),
|
String.format("Titanium Boiler: %.4f", titaniumBurnTime),
|
||||||
String.format("Tungstensteel Boiler: %.2f", tungstensteelBurnTime));
|
String.format("Tungstensteel Boiler: %.4f", tungstensteelBurnTime));
|
||||||
return super.addRecipe(recipe);
|
return super.addRecipe(recipe);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class GT_MetaTileEntity_ChestBuffer
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_ChestBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_ChestBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture getOverlayIcon() {
|
public ITexture getOverlayIcon() {
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class GT_MetaTileEntity_Filter
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Filter(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Filter(this.mName, this.mTier, this.mInventory.length, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture getOverlayIcon() {
|
public ITexture getOverlayIcon() {
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class GT_MetaTileEntity_Regulator
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Regulator(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Regulator(this.mName, this.mTier, this.mInventory.length, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture getOverlayIcon() {
|
public ITexture getOverlayIcon() {
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class GT_MetaTileEntity_SuperBuffer
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_SuperBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_SuperBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture getOverlayIcon() {
|
public ITexture getOverlayIcon() {
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class GT_MetaTileEntity_TypeFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_TypeFilter(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_TypeFilter(this.mName, this.mTier, this.mInventory.length, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture getOverlayIcon() {
|
public ITexture getOverlayIcon() {
|
||||||
|
|
|
@ -25,12 +25,13 @@ public class GT_MetaTileEntity_Boiler_Bronze
|
||||||
super(aID, aName, aNameRegional, new String[]{
|
super(aID, aName, aNameRegional, new String[]{
|
||||||
"An early way to get Steam Power",
|
"An early way to get Steam Power",
|
||||||
"Produces 120L of Steam per second",
|
"Produces 120L of Steam per second",
|
||||||
"Causes 20 Pollution per second"}, new ITexture[0]);
|
"Causes 20 Pollution per second"});
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_MetaTileEntity_Boiler_Bronze(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_Boiler_Bronze(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
||||||
super(aName, aTier, aDescription, aTextures);
|
super(aName, aTier, aDescription, aTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_MetaTileEntity_Boiler_Bronze(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_Boiler_Bronze(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) {
|
||||||
super(aName, aTier, aDescription, aTextures);
|
super(aName, aTier, aDescription, aTextures);
|
||||||
}
|
}
|
||||||
|
@ -60,7 +61,7 @@ public class GT_MetaTileEntity_Boiler_Bronze
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Boiler_Bronze(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Boiler_Bronze(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class GT_MetaTileEntity_Boiler_Lava
|
||||||
super(aID, aName, aNameRegional, new String[]{
|
super(aID, aName, aNameRegional, new String[]{
|
||||||
"A Boiler running off Lava",
|
"A Boiler running off Lava",
|
||||||
"Produces 600L of Steam per second",
|
"Produces 600L of Steam per second",
|
||||||
"Causes 20 Pollution per second"}, new ITexture[0]);
|
"Causes 20 Pollution per second"});
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_MetaTileEntity_Boiler_Lava(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_Boiler_Lava(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
||||||
|
@ -61,7 +61,7 @@ public class GT_MetaTileEntity_Boiler_Lava
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Boiler_Lava(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Boiler_Lava(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
||||||
|
|
|
@ -22,8 +22,7 @@ public class GT_MetaTileEntity_Boiler_Solar
|
||||||
"Steam Power by the Sun",
|
"Steam Power by the Sun",
|
||||||
"Produces 120L of Steam per second",
|
"Produces 120L of Steam per second",
|
||||||
"Calcifies over time, reducing Steam output to 40L/s",
|
"Calcifies over time, reducing Steam output to 40L/s",
|
||||||
"Break and replace to decalcify"},
|
"Break and replace to decalcify"});
|
||||||
new ITexture[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_MetaTileEntity_Boiler_Solar(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_Boiler_Solar(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
||||||
|
@ -66,7 +65,7 @@ public class GT_MetaTileEntity_Boiler_Solar
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Boiler_Solar(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Boiler_Solar(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int mRunTime = 0;
|
private int mRunTime = 0;
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class GT_MetaTileEntity_Boiler_Steel
|
||||||
super(aID, aName, aNameRegional, new String[]{
|
super(aID, aName, aNameRegional, new String[]{
|
||||||
"Faster than the Bronze Boiler",
|
"Faster than the Bronze Boiler",
|
||||||
"Produces 300L of Steam per second",
|
"Produces 300L of Steam per second",
|
||||||
"Causes 20 Pollution per second"}, new ITexture[0]);
|
"Causes 20 Pollution per second"});
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_MetaTileEntity_Boiler_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
public GT_MetaTileEntity_Boiler_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
||||||
|
@ -66,7 +66,7 @@ public class GT_MetaTileEntity_Boiler_Steel
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Boiler_Steel(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Boiler_Steel(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
||||||
|
|
|
@ -25,8 +25,7 @@ public class GT_MetaTileEntity_DieselGenerator
|
||||||
public GT_MetaTileEntity_DieselGenerator(int aID, String aName, String aNameRegional, int aTier) {
|
public GT_MetaTileEntity_DieselGenerator(int aID, String aName, String aNameRegional, int aTier) {
|
||||||
super(aID, aName, aNameRegional, aTier, new String[]{
|
super(aID, aName, aNameRegional, aTier, new String[]{
|
||||||
"Requires liquid Fuel",
|
"Requires liquid Fuel",
|
||||||
"Causes " + (int) (20 * BASE_POLLUTION * Math.pow(2, aTier - 1)) + " Pollution per second"},
|
"Causes " + (int) (20 * BASE_POLLUTION * Math.pow(2, aTier - 1)) + " Pollution per second"});
|
||||||
new ITexture[0]);
|
|
||||||
onConfigLoad();
|
onConfigLoad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +44,7 @@ public class GT_MetaTileEntity_DieselGenerator
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_DieselGenerator(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_DieselGenerator(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class GT_MetaTileEntity_FluidNaquadahReactor
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_FluidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_FluidNaquadahReactor(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class GT_MetaTileEntity_GasTurbine
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_GasTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_GasTurbine(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_LightningRod(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_LightningRod(this.mName, this.mTier, this.mInventory.length, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class GT_MetaTileEntity_MagicEnergyConverter
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_MagicEnergyConverter(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_MagicEnergyConverter(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_MagicalEnergyAbsorber(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_MagicalEnergyAbsorber(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class GT_MetaTileEntity_PlasmaGenerator
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_PlasmaGenerator(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_PlasmaGenerator(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class GT_MetaTileEntity_SolidNaquadahReactor
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_SolidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_SolidNaquadahReactor(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener
|
||||||
public GT_MetaTileEntity_SteamTurbine(int aID, String aName, String aNameRegional, int aTier) {
|
public GT_MetaTileEntity_SteamTurbine(int aID, String aName, String aNameRegional, int aTier) {
|
||||||
super(aID, aName, aNameRegional, aTier, new String[]{
|
super(aID, aName, aNameRegional, aTier, new String[]{
|
||||||
"Converts Steam into EU",
|
"Converts Steam into EU",
|
||||||
"Base rate: 2L of Steam -> 1 EU"}, new ITexture[0]);
|
"Base rate: 2L of Steam -> 1 EU"});
|
||||||
onConfigLoad();
|
onConfigLoad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_SteamTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_SteamTurbine(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
public GT_Recipe.GT_Recipe_Map getRecipes() {
|
||||||
|
@ -47,10 +47,10 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
String[] desc = new String[mDescription.length + 2];
|
String[] desc = new String[mDescriptionArray.length + 2];
|
||||||
System.arraycopy(mDescription, 0, desc, 0, mDescription.length);
|
System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length);
|
||||||
desc[mDescription.length] = "Fuel Efficiency: " + (600 / getEfficiency()) + "%";
|
desc[mDescriptionArray.length] = "Fuel Efficiency: " + (600 / getEfficiency()) + "%";
|
||||||
desc[mDescription.length + 1] = String.format("Consumes up to %sL of Steam per second",
|
desc[mDescriptionArray.length + 1] = String.format("Consumes up to %sL of Steam per second",
|
||||||
(int) (4000 * (8 * Math.pow(4, mTier) + Math.pow(2, mTier)) / (600 / getEfficiency())));
|
(int) (4000 * (8 * Math.pow(4, mTier) + Math.pow(2, mTier)) / (600 / getEfficiency())));
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class GT_MetaTileEntity_BasicHull_Bronze
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_BasicHull_Bronze(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_BasicHull_Bronze(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class GT_MetaTileEntity_BasicHull_BronzeBricks
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_BasicHull_BronzeBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_BasicHull_BronzeBricks(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class GT_MetaTileEntity_BasicHull_Steel
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_BasicHull_Steel(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_BasicHull_Steel(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class GT_MetaTileEntity_BasicHull_SteelBricks
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_BasicHull_SteelBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_BasicHull_SteelBricks(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class GT_MetaTileEntity_AdvSeismicProspector extends GT_MetaTileEntity_Ba
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_AdvSeismicProspector(this.mName, this.mTier, this.mDescription, this.mTextures,
|
return new GT_MetaTileEntity_AdvSeismicProspector(this.mName, this.mTier, this.mDescriptionArray, this.mTextures,
|
||||||
this.mGUIName, this.mNEIName, this.near, this.middle, this.radius, this.step);
|
this.mGUIName, this.mNEIName, this.near, this.middle, this.radius, this.step);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class GT_MetaTileEntity_Boxinator
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Boxinator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_Boxinator(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipeList() {
|
public GT_Recipe.GT_Recipe_Map getRecipeList() {
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class GT_MetaTileEntity_Charger extends GT_MetaTileEntity_BasicBatteryBuf
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Charger(mName, mTier, mDescription, mTextures, mInventory.length);
|
return new GT_MetaTileEntity_Charger(mName, mTier, mDescriptionArray, mTextures, mInventory.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class GT_MetaTileEntity_CuringOven
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_CuringOven(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_CuringOven(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class GT_MetaTileEntity_Disassembler
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Disassembler(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_Disassembler(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class GT_MetaTileEntity_Massfabricator
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Massfabricator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_Massfabricator(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onConfigLoad(GT_Config aConfig) {
|
public void onConfigLoad(GT_Config aConfig) {
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_MicrowaveEnergyTransmitter(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_MicrowaveEnergyTransmitter(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String[] getInfoData() {
|
public String[] getInfoData() {
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class GT_MetaTileEntity_MonsterRepellent extends GT_MetaTileEntity_Tiered
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_MonsterRepellent(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_MonsterRepellent(this.mName, this.mTier, this.mInventory.length, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class GT_MetaTileEntity_PotionBrewer
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_PotionBrewer(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_PotionBrewer(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipeList() {
|
public GT_Recipe.GT_Recipe_Map getRecipeList() {
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Pump(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Pump(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveNBTData(NBTTagCompound aNBT) {
|
public void saveNBTData(NBTTagCompound aNBT) {
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class GT_MetaTileEntity_Replicator
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Replicator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_Replicator(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class GT_MetaTileEntity_RockBreaker
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_RockBreaker(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_RockBreaker(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_Recipe.GT_Recipe_Map getRecipeList() {
|
public GT_Recipe.GT_Recipe_Map getRecipeList() {
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class GT_MetaTileEntity_Scanner
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Scanner(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_Scanner(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class GT_MetaTileEntity_SeismicProspector extends GT_MetaTileEntity_Basic
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_SeismicProspector(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
|
return new GT_MetaTileEntity_SeismicProspector(this.mName, this.mTier, this.mDescriptionArray, this.mTextures, this.mGUIName, this.mNEIName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -162,7 +162,7 @@ public class GT_MetaTileEntity_Teleporter extends GT_MetaTileEntity_BasicTank {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Teleporter(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Teleporter(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -110,10 +110,8 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_MultiBlockBas
|
||||||
mDoorCount++;
|
mDoorCount++;
|
||||||
} else {
|
} else {
|
||||||
if (tTileEntity == null) {
|
if (tTileEntity == null) {
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
IMetaTileEntity aMetaTileEntity = tTileEntity.getMetaTileEntity();
|
IMetaTileEntity aMetaTileEntity = tTileEntity.getMetaTileEntity();
|
||||||
if (aMetaTileEntity == null) {
|
if (aMetaTileEntity == null) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -126,8 +124,6 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_MultiBlockBas
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,8 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
private boolean firstRun = true;
|
private boolean firstRun = true;
|
||||||
private int mSuperEfficencyIncrease = 0;
|
private int mSuperEfficencyIncrease = 0;
|
||||||
private int integratedCircuitConfig = 0; //Steam output is reduced by 1000L per config
|
private int integratedCircuitConfig = 0; //Steam output is reduced by 1000L per config
|
||||||
|
private int excessFuel = 0; //Eliminate rounding errors for fuels that burn half items
|
||||||
|
private int excessProjectedEU = 0; //Eliminate rounding errors from throttling the boiler
|
||||||
|
|
||||||
public GT_MetaTileEntity_LargeBoiler(int aID, String aName, String aNameRegional) {
|
public GT_MetaTileEntity_LargeBoiler(int aID, String aName, String aNameRegional) {
|
||||||
super(aID, aName, aNameRegional);
|
super(aID, aName, aNameRegional);
|
||||||
|
@ -107,12 +109,12 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
this.mSuperEfficencyIncrease = 0;
|
this.mSuperEfficencyIncrease = 0;
|
||||||
for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDieselFuels.mRecipeList) {
|
for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDieselFuels.mRecipeList) {
|
||||||
FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
|
FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
|
||||||
if ((tFluid != null) && (tRecipe.mSpecialValue > 1)) {
|
if (tFluid != null && tRecipe.mSpecialValue > 1) {
|
||||||
tFluid.amount = 1000;
|
tFluid.amount = 1000;
|
||||||
if (depleteInput(tFluid)) {
|
if (depleteInput(tFluid)) {
|
||||||
this.mMaxProgresstime = adjustBurnTimeForConfig(runtimeBoost(tRecipe.mSpecialValue / 2));
|
this.mMaxProgresstime = adjustBurnTimeForConfig(runtimeBoost(tRecipe.mSpecialValue / 2));
|
||||||
this.mEUt = adjustEUtForConfig(getEUt());
|
this.mEUt = adjustEUtForConfig(getEUt());
|
||||||
this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease() * 4);
|
this.mEfficiencyIncrease = this.mMaxProgresstime * getEfficiencyIncrease() * 4;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,7 +126,7 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
if (depleteInput(tFluid)) {
|
if (depleteInput(tFluid)) {
|
||||||
this.mMaxProgresstime = adjustBurnTimeForConfig(Math.max(1, runtimeBoost(tRecipe.mSpecialValue * 2)));
|
this.mMaxProgresstime = adjustBurnTimeForConfig(Math.max(1, runtimeBoost(tRecipe.mSpecialValue * 2)));
|
||||||
this.mEUt = adjustEUtForConfig(getEUt());
|
this.mEUt = adjustEUtForConfig(getEUt());
|
||||||
this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
|
this.mEfficiencyIncrease = this.mMaxProgresstime * getEfficiencyIncrease();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -132,14 +134,20 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
ArrayList<ItemStack> tInputList = getStoredInputs();
|
ArrayList<ItemStack> tInputList = getStoredInputs();
|
||||||
if (!tInputList.isEmpty()) {
|
if (!tInputList.isEmpty()) {
|
||||||
for (ItemStack tInput : tInputList) {
|
for (ItemStack tInput : tInputList) {
|
||||||
if ((GT_Utility.getFluidForFilledItem(tInput, true) == null) && ((this.mMaxProgresstime = runtimeBoost(GT_ModHandler.getFuelValue(tInput) / 80)) > 0)) {
|
if (GT_Utility.getFluidForFilledItem(tInput, true) == null && (this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0) {
|
||||||
this.mMaxProgresstime = adjustBurnTimeForConfig(this.mMaxProgresstime);
|
this.excessFuel += GT_ModHandler.getFuelValue(tInput) % 80;
|
||||||
|
this.mMaxProgresstime += this.excessFuel / 80;
|
||||||
|
this.excessFuel %= 80;
|
||||||
|
this.mMaxProgresstime = adjustBurnTimeForConfig(runtimeBoost(this.mMaxProgresstime));
|
||||||
this.mEUt = adjustEUtForConfig(getEUt());
|
this.mEUt = adjustEUtForConfig(getEUt());
|
||||||
this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
|
this.mEfficiencyIncrease = this.mMaxProgresstime * getEfficiencyIncrease();
|
||||||
this.mOutputItems = new ItemStack[]{GT_Utility.getContainerItem(tInput, true)};
|
this.mOutputItems = new ItemStack[]{GT_Utility.getContainerItem(tInput, true)};
|
||||||
tInput.stackSize -= 1;
|
tInput.stackSize -= 1;
|
||||||
updateSlots();
|
updateSlots();
|
||||||
if(this.mEfficiencyIncrease>5000){ this.mEfficiencyIncrease=0;this.mSuperEfficencyIncrease=20;}
|
if (this.mEfficiencyIncrease > 5000) {
|
||||||
|
this.mEfficiencyIncrease = 0;
|
||||||
|
this.mSuperEfficencyIncrease = 20;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -153,7 +161,8 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
|
|
||||||
public boolean onRunningTick(ItemStack aStack) {
|
public boolean onRunningTick(ItemStack aStack) {
|
||||||
if (this.mEUt > 0) {
|
if (this.mEUt > 0) {
|
||||||
if(this.mSuperEfficencyIncrease>0)this.mEfficiency = Math.min(10000, this.mEfficiency + this.mSuperEfficencyIncrease);
|
if (this.mSuperEfficencyIncrease > 0)
|
||||||
|
this.mEfficiency = Math.min(10000, this.mEfficiency + this.mSuperEfficencyIncrease);
|
||||||
int tGeneratedEU = (int) (this.mEUt * 2L * this.mEfficiency / 10000L);
|
int tGeneratedEU = (int) (this.mEUt * 2L * this.mEfficiency / 10000L);
|
||||||
if (tGeneratedEU > 0) {
|
if (tGeneratedEU > 0) {
|
||||||
long amount = (tGeneratedEU + 160) / 160;
|
long amount = (tGeneratedEU + 160) / 160;
|
||||||
|
@ -185,7 +194,7 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
int tFireboxAmount = 0;
|
int tFireboxAmount = 0;
|
||||||
for (int i = -1; i < 2; i++) {
|
for (int i = -1; i < 2; i++) {
|
||||||
for (int j = -1; j < 2; j++) {
|
for (int j = -1; j < 2; j++) {
|
||||||
if ((i != 0) || (j != 0)) {
|
if (i != 0 || j != 0) {
|
||||||
for (int k = 1; k <= 4; k++) {
|
for (int k = 1; k <= 4; k++) {
|
||||||
if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), getCasingTextureIndex())) {
|
if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), getCasingTextureIndex())) {
|
||||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) {
|
if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) {
|
||||||
|
@ -220,9 +229,9 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
}
|
}
|
||||||
for (int i = -1; i < 2; i++) {
|
for (int i = -1; i < 2; i++) {
|
||||||
for (int j = -1; j < 2; j++) {
|
for (int j = -1; j < 2; j++) {
|
||||||
if ((xDir + i != 0) || (zDir + j != 0)) {
|
if (xDir + i != 0 || zDir + j != 0) {
|
||||||
IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
|
IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
|
||||||
if ((!addMaintenanceToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addInputToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addMufflerToMachineList(tTileEntity, getFireboxTextureIndex()))) {
|
if (!addMaintenanceToMachineList(tTileEntity, getFireboxTextureIndex()) && !addInputToMachineList(tTileEntity, getFireboxTextureIndex()) && !addMufflerToMachineList(tTileEntity, getFireboxTextureIndex())) {
|
||||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != getFireboxBlock()) {
|
if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != getFireboxBlock()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -234,7 +243,7 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (tCasingAmount >= 24) && (tFireboxAmount >= 3);
|
return tCasingAmount >= 24 && tFireboxAmount >= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getMaxEfficiency(ItemStack aStack) {
|
public int getMaxEfficiency(ItemStack aStack) {
|
||||||
|
@ -264,6 +273,10 @@ public abstract class GT_MetaTileEntity_LargeBoiler
|
||||||
return rawBurnTime;
|
return rawBurnTime;
|
||||||
}
|
}
|
||||||
int adjustedEUt = Math.max(25, getEUt() - 25 * integratedCircuitConfig);
|
int adjustedEUt = Math.max(25, getEUt() - 25 * integratedCircuitConfig);
|
||||||
return rawBurnTime * getEUt() / adjustedEUt;
|
int adjustedBurnTime = rawBurnTime * getEUt() / adjustedEUt;
|
||||||
|
this.excessProjectedEU += getEUt() * rawBurnTime - adjustedEUt * adjustedBurnTime;
|
||||||
|
adjustedBurnTime += this.excessProjectedEU / adjustedEUt;
|
||||||
|
this.excessProjectedEU %= adjustedEUt;
|
||||||
|
return adjustedBurnTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -27,7 +27,7 @@ public class GT_MetaTileEntity_AlloySmelter_Bronze
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_AlloySmelter_Bronze(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_AlloySmelter_Bronze(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class GT_MetaTileEntity_AlloySmelter_Steel
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_AlloySmelter_Steel(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_AlloySmelter_Steel(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class GT_MetaTileEntity_Compressor_Bronze
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Compressor_Bronze(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Compressor_Bronze(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class GT_MetaTileEntity_Compressor_Steel
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Compressor_Steel(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Compressor_Steel(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class GT_MetaTileEntity_Extractor_Bronze
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Extractor_Bronze(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Extractor_Bronze(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class GT_MetaTileEntity_Extractor_Steel
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Extractor_Steel(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Extractor_Steel(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class GT_MetaTileEntity_ForgeHammer_Bronze
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_ForgeHammer_Bronze(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_ForgeHammer_Bronze(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class GT_MetaTileEntity_ForgeHammer_Steel
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_ForgeHammer_Steel(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_ForgeHammer_Steel(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class GT_MetaTileEntity_Furnace_Bronze
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Furnace_Bronze(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Furnace_Bronze(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class GT_MetaTileEntity_Furnace_Steel
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Furnace_Steel(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Furnace_Steel(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkRecipe() {
|
public int checkRecipe() {
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class GT_MetaTileEntity_Macerator_Bronze
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Macerator_Bronze(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Macerator_Bronze(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class GT_MetaTileEntity_Macerator_Steel
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Macerator_Steel(this.mName, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Macerator_Steel(this.mName, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
||||||
|
|
|
@ -30,9 +30,9 @@ public class GT_MetaTileEntity_Locker
|
||||||
}
|
}
|
||||||
|
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
String[] desc = new String[mDescription.length + 1];
|
String[] desc = new String[mDescriptionArray.length + 1];
|
||||||
System.arraycopy(mDescription, 0, desc, 0, mDescription.length);
|
System.arraycopy(mDescriptionArray, 0, desc, 0, mDescriptionArray.length);
|
||||||
desc[mDescription.length] = "Click with Screwdriver to change Style";
|
desc[mDescriptionArray.length] = "Click with Screwdriver to change Style";
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ public class GT_MetaTileEntity_Locker
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_Locker(this.mName, this.mTier, this.mDescription, this.mTextures);
|
return new GT_MetaTileEntity_Locker(this.mName, this.mTier, this.mDescriptionArray, this.mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSimpleMachine() {
|
public boolean isSimpleMachine() {
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class GT_MetaTileEntity_QuantumChest extends GT_MetaTileEntity_TieredMach
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_QuantumChest(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_QuantumChest(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -126,7 +126,7 @@ public class GT_MetaTileEntity_QuantumTank
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||||
return new GT_MetaTileEntity_QuantumTank(mName, mTier, mDescription, mTextures);
|
return new GT_MetaTileEntity_QuantumTank(mName, mTier, mDescriptionArray, mTextures);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue