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
Add debug uncertainty #267
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5090a9d
Add debug uncertainty
HoleFish 07330c4
tier
HoleFish a079547
recipe and text
HoleFish a9cfc0e
Add debug uncertainty
HoleFish faa46a2
tier
HoleFish e44f067
recipe and text
HoleFish c38e68d
Merge branch 'GTNewHorizons:master' into debugcertain
HoleFish 9cabe73
Merge branch 'debugcertain' of https://github.com/HoleFish/TecTech in…
HoleFish e578f81
adjust recipe
HoleFish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put “debug” or “creative” in the localized name to make it easy to search.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creative maintenance has no "creative" in the name too isn't it? Can easily search for it by "uncertainty" so it's enough imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not make this block craftable in endgame? that's when multiple quantum computers are needed and the uncertainty minigame is not really fun after doing it for the n-th time
In that case the name would be fine