mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 02:04:59 +00:00
* Update build script * Update build script to import fix for shadow in dev and sources artifacts * Update fixed build script to shadow csv dependency in dev jar as well * Moved jitpack * Move new files
23 lines
742 B
Java
23 lines
742 B
Java
package codechicken.nei;
|
|
|
|
import codechicken.nei.api.INEIGuiAdapter;
|
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
|
import net.minecraft.client.gui.inventory.GuiContainerCreative;
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
|
|
public class NEICreativeGuiHandler extends INEIGuiAdapter
|
|
{
|
|
@Override
|
|
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility)
|
|
{
|
|
if(!(gui instanceof GuiContainerCreative))
|
|
return currentVisibility;
|
|
|
|
if(((GuiContainerCreative)gui).func_147056_g() != CreativeTabs.tabInventory.getTabIndex())
|
|
currentVisibility.showItemSection = currentVisibility.enableDeleteMode = false;
|
|
|
|
return currentVisibility;
|
|
}
|
|
|
|
}
|