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


Java Visibility类代码示例

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


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

示例1: TileEntityExternalMonitor

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public TileEntityExternalMonitor()
{
	r = (new Random()).nextFloat();
	g = (new Random()).nextFloat();
	b = (new Random()).nextFloat();
	node = Network.newNode(this, Visibility.Neighbors).withComponent("gxmonitor").create();
}
 
开发者ID:ds84182,项目名称:OpenGX,代码行数:8,代码来源:TileEntityExternalMonitor.java

示例2: PeripheralEnvironmentBase

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public PeripheralEnvironmentBase(Object target) {
	this.type = PeripheralTypeProvider.INSTANCE.generateType(target);

	setNode(Network.newNode(this, Visibility.Network)
			.withComponent(this.type)
			.create());
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral,代码行数:8,代码来源:PeripheralEnvironmentBase.java

示例3: setupOpenComputersApiMock

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
private static Node setupOpenComputersApiMock() {
	final Component node = mock(Component.class);
	final NodeBuilder nodeBuilderMock = mock(NodeBuilder.class);
	final ComponentBuilder componentBuilderMock = mock(ComponentBuilder.class);
	final NetworkAPI networkMock = mock(NetworkAPI.class);
	li.cil.oc.api.API.network = networkMock;
	when(networkMock.newNode(any(Environment.class), any(Visibility.class))).thenReturn(nodeBuilderMock);
	when(nodeBuilderMock.withComponent(anyString())).thenReturn(componentBuilderMock);
	when(componentBuilderMock.create()).thenReturn(node);

	return node;
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral,代码行数:13,代码来源:EnvironmentGeneratorTest.java

示例4: InternalManagedEnvironment

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
InternalManagedEnvironment(TileEntityBase tile) {
    this.tile = tile;
    setNode(Network.newNode(this, Visibility.Network).withComponent(this.tile.getType(), Visibility.Network).create());
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:5,代码来源:DriverPneumaticCraft.java

示例5: Environment

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public Environment(EnvironmentHost host)
{
	this.host = host;
	setNode(Network.newNode(this, Visibility.Neighbors).withComponent("simpledimensions").create());
}
 
开发者ID:lumien231,项目名称:Simple-Dimensions,代码行数:6,代码来源:SimpleDimensionsCardDriver.java

示例6: ManagedEnvironmentOCTile

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public ManagedEnvironmentOCTile(final T tile, final String name) {
    this.tile = tile;
    this.name = name;
    this.setNode(Network.newNode(this, Visibility.Network).withComponent(name, Visibility.Network).create());
}
 
开发者ID:Lordmau5,项目名称:FFS,代码行数:6,代码来源:ManagedEnvironmentOCTile.java

示例7: ManagedEnvironmentOCTile

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public ManagedEnvironmentOCTile(final T tile, final String name) {
	this.tile = tile;
	this.name = name;
	this.setNode(Network.newNode(this, Visibility.Network).withComponent(name, Visibility.Network).create());
}
 
开发者ID:Lordmau5,项目名称:FFS,代码行数:6,代码来源:ManagedEnvironmentOCTile.java

示例8: reachability

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

示例9: visibility

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

示例10: setVisibility

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
@Override
public void setVisibility(Visibility value) {
	// TODO Auto-generated method stub

}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:6,代码来源:SimComponent.java

示例11: EnvRadarUpgrade

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public EnvRadarUpgrade(EnvironmentHost host) {
    this.container = host;
    setNode(Network.newNode(this, Visibility.Network).withComponent("radar").withConnector().create());
}
 
开发者ID:Avaja,项目名称:OpenTechnology,代码行数:5,代码来源:EnvRadarUpgrade.java

示例12: EnvNRUpgrade

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public EnvNRUpgrade(EnvironmentHost container) {
    this.container = container;
    setNode(Network.newNode(this, Visibility.Network).withComponent("reactor").withConnector().create());
    isEmpty = true;
}
 
开发者ID:Avaja,项目名称:OpenTechnology,代码行数:6,代码来源:EnvNRUpgrade.java

示例13: EnvTeslaUpgrade

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public EnvTeslaUpgrade(EnvironmentHost host) {
    this.setNode(Network.newNode(this, Visibility.Network).withComponent("tesla").withConnector().create());
    this.host = host;
    isHeat = false;
    heat = 0;
}
 
开发者ID:Avaja,项目名称:OpenTechnology,代码行数:7,代码来源:EnvTeslaUpgrade.java

示例14: node

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
@Optional.Method(modid = "OpenComputers")
@Override
public Node node() {
	if (node == null) node = Network.newNode(this, Visibility.Network).create();
	return node;
}
 
开发者ID:PC-Logix,项目名称:OpenFM,代码行数:7,代码来源:TileEntitySpeaker.java

示例15: ManagedTileEntityEnvironment

import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
public ManagedTileEntityEnvironment(T tileEntity, String name) {

        this.te = tileEntity;
        setNode(Network.newNode(this, Visibility.Network).withComponent(name).create());
    }
 
开发者ID:amadornes,项目名称:Framez,代码行数:6,代码来源:ManagedTileEntityEnvironment.java


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