本文整理汇总了Java中buildcraft.transport.TileGenericPipe类的典型用法代码示例。如果您正苦于以下问题:Java TileGenericPipe类的具体用法?Java TileGenericPipe怎么用?Java TileGenericPipe使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TileGenericPipe类属于buildcraft.transport包,在下文中一共展示了TileGenericPipe类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findConnectable
import buildcraft.transport.TileGenericPipe; //导入依赖的package包/类
@Override
public IConnected findConnectable(IBlockAccess world, int x, int y, int z, int side) {
if (world instanceof FacadeBlockAccess)
return ConnectedApi.findConnectable(Minecraft.getMinecraft().theWorld, x, y, z, side);
TileEntity te = world.getTileEntity(x, y, z);
if (te != null && te instanceof TileGenericPipe)
return new ConnectedBCFacadeAdvanced((TileGenericPipe) te);
return null;
}
示例2: getPipe
import buildcraft.transport.TileGenericPipe; //导入依赖的package包/类
private Pipe getPipe(World world, int x, int y, int z) {
TileEntity tile = world.getBlockTileEntity(x, y, z);
if (tile == null)
return null;
if (!(tile instanceof TileGenericPipe))
return null;
return ((TileGenericPipe) tile).pipe;
}
示例3: canPipeConnect
import buildcraft.transport.TileGenericPipe; //导入依赖的package包/类
@Override
public boolean canPipeConnect(TileEntity tile, ForgeDirection side)
{
if (tile instanceof TileGenericPipe)
{
if (((TileGenericPipe)tile).pipe instanceof PipePowerWood || ((TileGenericPipe)tile).pipe instanceof HighThroughputPowerPipe)
{
return false;
}
}
return true;
}
示例4: ConnectedBCFacade
import buildcraft.transport.TileGenericPipe; //导入依赖的package包/类
public ConnectedBCFacade(TileGenericPipe tile) {
this.tile = tile;
}
示例5: ConnectedBCFacadeAdvanced
import buildcraft.transport.TileGenericPipe; //导入依赖的package包/类
public ConnectedBCFacadeAdvanced(TileGenericPipe tile) {
super(tile);
}