本文整理汇总了Java中codechicken.nei.VisiblityData类的典型用法代码示例。如果您正苦于以下问题:Java VisiblityData类的具体用法?Java VisiblityData怎么用?Java VisiblityData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VisiblityData类属于codechicken.nei包,在下文中一共展示了VisiblityData类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: modifyVisiblity
import codechicken.nei.VisiblityData; //导入依赖的package包/类
@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;
}
}
}
}
return currentVisibility;
}
示例2: modifyVisiblity
import codechicken.nei.VisiblityData; //导入依赖的package包/类
@Override
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility)
{
if (gui instanceof AccessUnitGUI)
{
if (currentVisibility.showSearchSection)
{
currentVisibility.showSearchSection = false;
}
}
return null;
}
示例3: modifyVisiblity
import codechicken.nei.VisiblityData; //导入依赖的package包/类
@Override
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility)
{
return currentVisibility;
}
示例4: modifyVisiblity
import codechicken.nei.VisiblityData; //导入依赖的package包/类
@Override
@Optional.Method(modid = "NotEnoughItems")
public VisiblityData modifyVisiblity(GuiContainer gc, VisiblityData vd) {
return vd;
}
示例5: modifyVisiblity
import codechicken.nei.VisiblityData; //导入依赖的package包/类
@Override
@Optional.Method(modid = ModIds.NEI)
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility){
currentVisibility.showNEI = false;
return currentVisibility;
}
示例6: modifyVisiblity
import codechicken.nei.VisiblityData; //导入依赖的package包/类
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility);
示例7: layout
import codechicken.nei.VisiblityData; //导入依赖的package包/类
public abstract void layout(GuiContainer gui, VisiblityData visibility);