/** Updates the flow for the BlockFlowing object. */ private void updateFlow(World par1World, int par2, int par3, int par4) { int var5 = par1World.getBlockMetadata(par2, par3, par4); par1World.setBlockAndMetadata(par2, par3, par4, LAPI.getPairedBlockID(this.blockID), var5); par1World.markBlockRangeForRenderUpdate(par2, par3, par4, par2, par3, par4); }
public BlockFlowingLAPI(int par1, int liqID, Material par2Material) { super(par1, liqID, par2Material); this.liquidID = liqID; blockIndexInTexture = LAPI.getTextureIDFromLiquidID(liqID, true); }