This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add debug uncertainty * tier * recipe and text * Add debug uncertainty * tier * recipe and text * adjust recipe
- Loading branch information
Showing
5 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...chnus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_CreativeUncertainty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.github.technus.tectech.thing.metaTileEntity.hatch; | ||
|
||
import static net.minecraft.util.StatCollector.translateToLocal; | ||
|
||
import net.minecraft.util.EnumChatFormatting; | ||
|
||
import com.github.technus.tectech.util.CommonValues; | ||
|
||
import gregtech.api.interfaces.ITexture; | ||
import gregtech.api.interfaces.metatileentity.IMetaTileEntity; | ||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity; | ||
|
||
public class GT_MetaTileEntity_Hatch_CreativeUncertainty extends GT_MetaTileEntity_Hatch_Uncertainty { | ||
|
||
public GT_MetaTileEntity_Hatch_CreativeUncertainty(int aID, String aName, String aNameRegional, int aTier) { | ||
super(aID, aName, aNameRegional, aTier); | ||
} | ||
|
||
public GT_MetaTileEntity_Hatch_CreativeUncertainty(String aName, int aTier, String[] aDescription, | ||
ITexture[][][] aTextures) { | ||
super(aName, aTier, aDescription, aTextures); | ||
} | ||
|
||
@Override | ||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity iGregTechTileEntity) { | ||
return new GT_MetaTileEntity_Hatch_CreativeUncertainty(mName, mTier, mDescriptionArray, mTextures); | ||
} | ||
|
||
@Override | ||
public String[] getDescription() { | ||
return new String[] { CommonValues.TEC_MARK_EM, translateToLocal("gt.blockmachines.debug.tt.certain.desc.0"), // Feeling | ||
// certain, | ||
// for | ||
// sure | ||
EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD | ||
+ translateToLocal("gt.blockmachines.debug.tt.certain.desc.1") // Schrödinger's cat escaped the | ||
// box | ||
}; | ||
} | ||
|
||
@Override | ||
public void regenerate() { | ||
// no-op | ||
} | ||
|
||
@Override | ||
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { | ||
if (aBaseMetaTileEntity.isServerSide() && (aTick % 100) == 0) { | ||
if (mode == 0) { | ||
aBaseMetaTileEntity.setActive(false); | ||
status = -128; | ||
} else { | ||
aBaseMetaTileEntity.setActive(true); | ||
compute(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters