本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}