use of gregtech.common.pipelike.itempipe.tile.TileEntityItemPipe in project GregTech by GregTechCEu.
the class CoverConveyor method setTransferRate.
protected void setTransferRate(int transferRate) {
this.transferRate = transferRate;
coverHolder.markDirty();
if (coverHolder.getWorld() != null && coverHolder.getWorld().isRemote) {
// tile at cover holder pos
TileEntity te = coverHolder.getWorld().getTileEntity(coverHolder.getPos());
if (te instanceof TileEntityItemPipe) {
((TileEntityItemPipe) te).resetTransferred();
}
// tile neighbour to holder pos at attached side
te = coverHolder.getWorld().getTileEntity(coverHolder.getPos().offset(attachedSide));
if (te instanceof TileEntityItemPipe) {
((TileEntityItemPipe) te).resetTransferred();
}
}
}
Aggregations