use of logisticspipes.proxy.td.LPItemDuct in project LogisticsPipes by RS485.
the class TDPart method getInternalDuctForSide.
@Override
public TileEntity getInternalDuctForSide(ForgeDirection opposite) {
if (opposite.ordinal() < 6) {
LPItemDuct duct = thermalDynamicsDucts[opposite.ordinal()];
if (duct == null) {
duct = thermalDynamicsDucts[opposite.ordinal()] = new LPItemDuct(pipe, opposite);
if (MainProxy.isServer(pipe.getWorldObj())) {
TickHandler.addMultiBlockToCalculate(duct);
}
duct.setWorldObj(pipe.getWorldObj());
duct.xCoord = pipe.xCoord;
duct.yCoord = pipe.yCoord;
duct.zCoord = pipe.zCoord;
duct.validate();
DoubleCoordinates pos = CoordinateUtils.add(new DoubleCoordinates((TileEntity) pipe), opposite);
duct.onNeighborTileChange(pos.getXInt(), pos.getYInt(), pos.getZInt());
}
return duct;
}
return null;
}
Aggregations