本文整理汇总了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();
}
示例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());
}
示例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;
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例8: reachability
import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
@Override
public Visibility reachability() {
// TODO Auto-generated method stub
return null;
}
示例9: visibility
import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
@Override
public Visibility visibility() {
// TODO Auto-generated method stub
return null;
}
示例10: setVisibility
import li.cil.oc.api.network.Visibility; //导入依赖的package包/类
@Override
public void setVisibility(Visibility value) {
// TODO Auto-generated method stub
}
示例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());
}
示例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;
}
示例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;
}
示例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;
}
示例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());
}