当前位置: 首页>>代码示例>>Java>>正文


Java VisiblityData类代码示例

本文整理汇总了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;
}
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:21,代码来源:GuiPneumaticContainerBase.java

示例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;
}
 
开发者ID:SneakyTactician,项目名称:BIGB,代码行数:14,代码来源:ModNEIGUIHandler.java

示例3: modifyVisiblity

import codechicken.nei.VisiblityData; //导入依赖的package包/类
@Override
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility)
{
    return currentVisibility;
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:6,代码来源:INEIGuiAdapter.java

示例4: modifyVisiblity

import codechicken.nei.VisiblityData; //导入依赖的package包/类
@Override
@Optional.Method(modid = "NotEnoughItems")
public VisiblityData modifyVisiblity(GuiContainer gc, VisiblityData vd) {
  return vd;
}
 
开发者ID:SleepyTrousers,项目名称:EnderCore,代码行数:6,代码来源:GuiContainerBase.java

示例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;
}
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:7,代码来源:GuiProgrammer.java

示例6: modifyVisiblity

import codechicken.nei.VisiblityData; //导入依赖的package包/类
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility); 
开发者ID:4Space,项目名称:4Space-5,代码行数:2,代码来源:INEIGuiHandler.java

示例7: layout

import codechicken.nei.VisiblityData; //导入依赖的package包/类
public abstract void layout(GuiContainer gui, VisiblityData visibility); 
开发者ID:4Space,项目名称:4Space-5,代码行数:2,代码来源:LayoutStyle.java


注:本文中的codechicken.nei.VisiblityData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。