diff options
author | Technus <daniel112092@gmail.com> | 2016-11-22 21:57:55 +0100 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2016-11-22 21:57:55 +0100 |
commit | a650dc425c7294d1a1963a41302611e2dd07f08d (patch) | |
tree | a33f6ab0abd760d3ff02bfd3b8777c3d6dea51ee /src/main/java/gregtech | |
parent | 2b854dbe1d84fe1c93711d6189c235131343ec8e (diff) | |
download | GT5-Unofficial-a650dc425c7294d1a1963a41302611e2dd07f08d.tar.gz GT5-Unofficial-a650dc425c7294d1a1963a41302611e2dd07f08d.tar.bz2 GT5-Unofficial-a650dc425c7294d1a1963a41302611e2dd07f08d.zip |
Documentation on how to toggle recipe visibility
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r-- | src/main/java/gregtech/common/GT_Client.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/GT_Client.java b/src/main/java/gregtech/common/GT_Client.java index fe2d3c71d7..9db8786767 100644 --- a/src/main/java/gregtech/common/GT_Client.java +++ b/src/main/java/gregtech/common/GT_Client.java @@ -76,6 +76,8 @@ public class GT_Client extends GT_Proxy private final List mMoltenNegB; private final List mMoltenNegA = Arrays.asList(new Object[0]); private long mAnimationTick; + /**This is the place to def the value used below**/ + //private long afterSomeTime; private boolean mAnimationDirection; private boolean isFirstClientPlayerTick; private String mMessage; @@ -360,6 +362,17 @@ public class GT_Client extends GT_Proxy public void onClientTickEvent(cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent aEvent) { if (aEvent.phase == cpw.mods.fml.common.gameevent.TickEvent.Phase.END) { mAnimationTick++; + /**Something on the lines of this works for recipe visibility toggling**/ + /**yes just change the mHidden thing, rest is done by custom NEI configurer GT_NEI_AssLineHandler**/ + //if(!isFirstClientPlayerTick)afterSomeTime++; + //if(afterSomeTime>=600L){ + // afterSomeTime=0; + // try { + // for (GT_Recipe recipe : GT_Recipe.GT_Recipe_Map.sAssemblylineFakeRecipes.mRecipeList) { + // recipe.mHidden ^= true; + // } + // }catch (Exception e){} + //} if (mAnimationTick % 50L == 0L) {mAnimationDirection = !mAnimationDirection;} int tDirection = mAnimationDirection ? 1 : -1; |