@Override
@Optional.Method(modid = ModIds.NEI)
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility){
for(IGuiWidget w : widgets) {
if(w instanceof IGuiAnimatedStat) {
IGuiAnimatedStat stat = (IGuiAnimatedStat)w;
if(stat.isLeftSided()) {
if(stat.getWidth() > 20) {
currentVisibility.showUtilityButtons = false;
currentVisibility.showStateButtons = false;
}
} else {
if(stat.getAffectedY() < 10) {
currentVisibility.showWidgets = false;
}
}
}
}