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


Java IWailaFMPAccessor类代码示例

本文整理汇总了Java中mcp.mobius.waila.api.IWailaFMPAccessor的典型用法代码示例。如果您正苦于以下问题:Java IWailaFMPAccessor类的具体用法?Java IWailaFMPAccessor怎么用?Java IWailaFMPAccessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IWailaFMPAccessor类属于mcp.mobius.waila.api包,在下文中一共展示了IWailaFMPAccessor类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getWailaBody

import mcp.mobius.waila.api.IWailaFMPAccessor; //导入依赖的package包/类
@SuppressWarnings("UnusedDeclaration")
public static List<String> getWailaBody(List<String> currenttip, IWailaFMPAccessor accessor) {
    NBTTagCompound n = accessor.getNBTData();
    //accessor.getTileEntity().writeToNBT(n);
    if (n != null) {
        currenttip.addAll(JSHandler.getBody(ConfigHandler.tileEntityPattern, n, n.getString("id"), accessor.getPlayer()));
    }
    return currenttip;
}
 
开发者ID:exzhawk,项目名称:OmniOcular,代码行数:10,代码来源:FMPHandler.java

示例2: getWailaBody

import mcp.mobius.waila.api.IWailaFMPAccessor; //导入依赖的package包/类
@Override
public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaFMPAccessor accessor, IWailaConfigHandler config){
    TileEntityPressureTube tube = ModInteractionUtils.getInstance().getTube(accessor.getTileEntity());
    if(tube != null) {
        NBTTagCompound tubeTag = accessor.getNBTData().getCompoundTag("tube");
        tube.currentAir = tubeTag.getInteger("currentAir");
        WailaPneumaticHandler.addTipToMachine(currenttip, tube);
        TubeModule module = BlockPressureTube.getLookedModule(accessor.getWorld(), accessor.getTileEntity().xCoord, accessor.getTileEntity().yCoord, accessor.getTileEntity().zCoord, accessor.getPlayer());
        if(module != null) {
            WailaTubeModuleHandler.addModuleInfo(currenttip, tube, tubeTag, module.getDirection());
        }
    }
    return currenttip;
}
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:15,代码来源:WailaFMPHandler.java

示例3: getWailaHead

import mcp.mobius.waila.api.IWailaFMPAccessor; //导入依赖的package包/类
@Override
public List<String> getWailaHead(ItemStack itemStack, List<String> currenttip, IWailaFMPAccessor accessor, IWailaConfigHandler config){
    return currenttip;
}
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:5,代码来源:WailaFMPHandler.java

示例4: getWailaTail

import mcp.mobius.waila.api.IWailaFMPAccessor; //导入依赖的package包/类
@Override
public List<String> getWailaTail(ItemStack itemStack, List<String> currenttip, IWailaFMPAccessor accessor, IWailaConfigHandler config){
    return currenttip;
}
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:5,代码来源:WailaFMPHandler.java


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