From a650dc425c7294d1a1963a41302611e2dd07f08d Mon Sep 17 00:00:00 2001 From: Technus Date: Tue, 22 Nov 2016 21:57:55 +0100 Subject: [PATCH] Documentation on how to toggle recipe visibility --- src/main/java/gregtech/common/GT_Client.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/gregtech/common/GT_Client.java b/src/main/java/gregtech/common/GT_Client.java index fe2d3c71..9db87867 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;