• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Architecture类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: architectures

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * A list of all <em>registered</em> architectures.
 */
public static Collection<Class<? extends Architecture>> architectures() {
    if (API.machine != null)
        return API.machine.architectures();
    return Collections.emptyList();
}
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:9,代码来源:Machine.java


示例2: architecture

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
@Override
public Architecture architecture() {
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:6,代码来源:FakeMachine.java


示例3: add

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * Register an architecture that can be used to create new machines.
 * <p/>
 * Registering an architecture will make it possible to configure CPUs to
 * run that architecture. This allows providing architectures without
 * implementing a custom CPU item.
 *
 * @param architecture the architecture to register.
 */
public static void add(Class<? extends Architecture> architecture) {
    if (API.machine != null)
        API.machine.add(architecture);
}
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:14,代码来源:Machine.java


示例4: getArchitectureName

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * Get the name of the specified architecture.
 *
 * @param architecture the architecture to get the name for.
 * @return the name of the specified architecture.
 */
public static String getArchitectureName(Class<? extends Architecture> architecture) {
    if (API.machine != null)
        return API.machine.getArchitectureName(architecture);
    return null;
}
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:12,代码来源:Machine.java


示例5: allArchitectures

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * Get a list of all architectures supported by this processor.
 */
java.util.Collection<Class<? extends Architecture>> allArchitectures();
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:5,代码来源:MutableProcessor.java


示例6: setArchitecture

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * Set the architecture to use for the specified processor.
 *
 * @param stack        the processor to set the architecture for.
 * @param architecture the architecture to use on the processor.
 */
void setArchitecture(ItemStack stack, Class<? extends Architecture> architecture);
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:8,代码来源:MutableProcessor.java


示例7: architecture

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * The architecture of this CPU.
 * <p/>
 * This usually controls which architecture is created for a machine the
 * CPU is installed in (this is true for all computers built into OC, such
 * as computer cases, server racks and robots, it my not be true for third-
 * party computers).
 *
 * @param stack the stack representing the CPU to get the architecture for.
 * @return the type of this CPU's architecture.
 */
Class<? extends Architecture> architecture(ItemStack stack);
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:13,代码来源:Processor.java


示例8: add

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * Register an architecture that can be used to create new machines.
 * <p/>
 * Note that although registration is optional, it is strongly recommended
 * to allow {@link #architectures()} to be useful.
 *
 * @param architecture the architecture to register.
 * @throws IllegalArgumentException if the specified architecture is invalid.
 */
void add(Class<? extends Architecture> architecture);
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:11,代码来源:MachineAPI.java


示例9: architectures

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * A list of all <em>registered</em> architectures.
 * <p/>
 * Note that registration is optional, although automatic when calling
 * {@link #create(li.cil.oc.api.machine.MachineHost)} with a not yet
 * registered architecture. What this means is that unless a mod providing
 * a custom architecture also registers it, you may not see it in this list
 * until it also created a new machine using that architecture.
 */
Collection<Class<? extends Architecture>> architectures();
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:11,代码来源:MachineAPI.java


示例10: getArchitectureName

import li.cil.oc.api.machine.Architecture; //导入依赖的package包/类
/**
 * Get the name of the specified architecture.
 *
 * @param architecture the architecture to get the name for.
 * @return the name of the specified architecture.
 */
String getArchitectureName(Class<? extends Architecture> architecture);
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:8,代码来源:MachineAPI.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DNotAllowedPattern类代码示例发布时间:2022-05-23
下一篇:
Java XSDeclarationPool类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap