aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBass <tudurap.com@gmail.com>2020-02-29 09:56:19 +0000
committerBass <tudurap.com@gmail.com>2020-02-29 09:56:19 +0000
commitce145855b02e91912877923de0c84baa7389ca00 (patch)
treecfcb6fb5f176af53820e6dab5b919c9b6e1a8874
parente0bfe85329d11c676e88c059418b3f05f72477da (diff)
parent27201ee05f4641a1904ed5ffaa6c44ed1b48370c (diff)
downloadGT5-Unofficial-ce145855b02e91912877923de0c84baa7389ca00.tar.gz
GT5-Unofficial-ce145855b02e91912877923de0c84baa7389ca00.tar.bz2
GT5-Unofficial-ce145855b02e91912877923de0c84baa7389ca00.zip
Merge remote-tracking branch 'origin/BassAddons' into BassAddons
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_proccessingStack.java142
1 files changed, 142 insertions, 0 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_proccessingStack.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_proccessingStack.java
new file mode 100644
index 0000000000..9466d9df46
--- /dev/null
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_TM_proccessingStack.java
@@ -0,0 +1,142 @@
+package com.github.technus.tectech.thing.metaTileEntity.multi;
+
+import com.github.technus.tectech.CommonValues;
+import com.github.technus.tectech.Reference;
+import com.github.technus.tectech.thing.metaTileEntity.IConstructable;
+import com.github.technus.tectech.thing.metaTileEntity.multi.base.*;
+import com.github.technus.tectech.thing.metaTileEntity.multi.base.render.TT_RenderedTexture;
+import gregtech.api.enums.Textures;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.EnumChatFormatting;
+
+import java.util.ArrayList;
+import java.util.HashSet;
+
+import static com.github.technus.tectech.Util.StructureBuilderExtreme;
+import static com.github.technus.tectech.loader.MainLoader.microwaving;
+import static com.github.technus.tectech.recipe.TT_recipeAdder.nullItem;
+import static com.github.technus.tectech.thing.metaTileEntity.multi.base.LedStatus.*;
+import static gregtech.api.GregTech_API.sBlockCasings4;
+import static net.minecraft.util.StatCollector.translateToLocal;
+
+public class GT_MetaTileEntity_TM_proccessingStack extends GT_MetaTileEntity_MultiblockBase_EM implements IConstructable {
+ //region variables
+ private boolean hasBeenPausedThisCycle = false;
+ //endregion
+
+ //region structure
+ //use multi A energy inputs, use less power the longer it runs
+ private static final String[][] base = new String[][]{
+ {" ",},
+ {" 0 ",},
+ {" ",},
+ };
+ private static final String[][] slice = new String[][]{
+ {"111",},
+ {"101",},
+ {"111",},
+ };
+ private static final String[][] cap = new String[][]{
+ {" ",},
+ {" 0 ",},
+ {" ",},
+ };
+ private static final Block[] blockType = new Block[]{sBlockCasings4};
+ private static final byte[] blockMeta = new byte[]{1};
+
+ private final IHatchAdder[] addingMethods = new IHatchAdder[]{this::addClassicToMachineList};
+ private static final short[] casingTextures = new short[]{49};
+ private static final Block[] blockTypeFallback = new Block[]{sBlockCasings4};
+ private static final byte[] blockMetaFallback = new byte[]{1};
+ private static final String[] description = new String[]{
+ EnumChatFormatting.AQUA + translateToLocal("tt.keyphrase.Hint_Details") + ":",
+ translateToLocal("gt.blockmachines.multimachine.tm.proccessingStack.hint.0"),
+ translateToLocal("gt.blockmachines.multimachine.tm.proccessingStack.hint.1"),
+ };
+ //endregion
+
+ public GT_MetaTileEntity_TM_proccessingStack(int aID, String aName, String aNameRegional) {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_TM_proccessingStack(String aName) {
+ super(aName);
+ }
+
+ @Override
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
+ return new GT_MetaTileEntity_TM_proccessingStack(mName);
+ }
+
+ @Override
+ public boolean checkMachine_EM(IGregTechTileEntity iGregTechTileEntity, ItemStack itemStack) {
+ return false;
+ //return structureCheck_EM(shape, blockType, blockMeta, addingMethods, casingTextures, blockTypeFallback, blockMetaFallback, 1, 0, 0);
+ }
+
+ @Override
+ public boolean checkRecipe_EM(ItemStack itemStack) {
+ return true;
+ }
+
+ @Override
+ public void outputAfterRecipe_EM() {
+
+ }
+
+ @Override
+ public String[] getDescription() {
+ return new String[]{
+ CommonValues.BASS_MARK,
+ translateToLocal("gt.blockmachines.multimachine.tm.proccessingStack.desc.0"),
+ EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD + translateToLocal("gt.blockmachines.multimachine.tm.proccessingStack.desc.1"),
+ EnumChatFormatting.BLUE + translateToLocal("gt.blockmachines.multimachine.tm.proccessingStack.desc.2"),
+ };
+ }
+
+ @Override
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
+ return new GT_Container_MultiMachineEM(aPlayerInventory, aBaseMetaTileEntity, false, true, true);
+ }
+
+ @Override
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
+ return new GT_GUIContainer_MultiMachineEM(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "EMDisplay.png", false, true, true);
+ }
+
+ @Override
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) {
+ if (aSide == aFacing) {
+ return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[49], new TT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE)};
+ } else if (aSide == GT_Utility.getOppositeSide(aFacing)) {
+ return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[49], aActive ? Textures.BlockIcons.CASING_BLOCKS[52] : Textures.BlockIcons.CASING_BLOCKS[53]};
+ }
+ return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[49]};
+ }
+
+ @Override
+ public boolean onRunningTick(ItemStack aStack) {
+ return true;
+ }
+
+ @Override
+ public void construct(int stackSize, boolean hintsOnly) {
+ //StructureBuilderExtreme(shape, blockType, blockMeta, 2, 2, 0, getBaseMetaTileEntity(), this, hintsOnly);
+ }
+
+ @Override
+ public String[] getStructureDescription(int stackSize) {
+ return description;
+ }
+} \ No newline at end of file